Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Edditing Firefox  (gelezen 2419 keer)

Dr Nick^

  • Gast
Edditing Firefox
« Gepost op: 2006/03/29, 19:08:30 »
Heya guys,

I wanted to try to modify some packages so I started with firefox, to change my default bookmarks.

These are the things I've done:
1) Downloaded firefox_1.0.7-0ubuntu20_i386.deb

Then I converted it to a .tgz file with alien
2) sudo alien --to-tgz firefox_1.0.7-0ubuntu20_i386.deb

I extracted the tgz >>
3) tar -zxf firefox-1.0.7.tgz

Then you get 3 directories: usr, etc and var. (for easy i've removed the .tgz file)
I put them together again:
4) tar -czf firefox-1.0.7.tgz {etc,usr,var}
Made a debian file:
5) sudo alien --to-deb firefox-1.0.7.tgz
And I installed the debian file:
6) sudo dpkg -i firefox_1.0.7-2_all.deb

But for reasons this doens't work...
If I just do steps 1, 2, 5 and 6 it does work.

Anybody has an idea why this doesn't work? There aren't any hidden files either...

Greetz

Offline bartek

  • Lid
    • http://bartek.blogsome.com
Edditing Firefox
« Reactie #1 Gepost op: 2006/03/29, 19:44:38 »
What does your terminal say after step 6 ?
| Deliberando saepe perit occasio |

"Car la vie est un bien perdu quand on n'a pas vécu comme on l'aurait voulu"

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #2 Gepost op: 2006/03/29, 19:49:40 »
tinux@tinux:~/packages/firefox/vuur$ sudo dpkg -i firefox_1-2_all.deb
Selecting previously deselected package firefox.
dpkg: regarding firefox_1-2_all.deb containing firefox:
 mozilla-firefox-locale-en-gb conflicts with firefox (<< 1.0-3)
  firefox (version 1-2) is to be installed.
dpkg: error processing firefox_1-2_all.deb (--install):
 conflicting packages - not installing firefox
Errors were encountered while processing:
 firefox_1-2_all.deb
tinux@tinux:~/packages/firefox/vuur$

Edditing Firefox
« Reactie #3 Gepost op: 2006/03/29, 19:56:18 »
Ehrm, that is about the *worst* way to do it...

Do it this way instead:
sudo apt-get build-dep firefox
sudo apt-get install build-essential devscripts
apt-get source firefox
cd into the firefox folder, make your changes
dch -i (this edits the changelog and increases the version number)
dpkg-buildpackage -rfakeroot
Install the newly created .deb file

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #4 Gepost op: 2006/03/29, 20:21:44 »
trying right now!

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #5 Gepost op: 2006/03/29, 21:09:16 »
first i get some question marks with the dch -i,
but after just ignoring that,
because i didn't knew what to edit.

i started to build, but after like 15 min (slow pc) i get some errors:
srry for long copy paste...

*edit*
this was the first error i enqured

rm -f build-stamp configure-stamp debian/stamp-* \
        debian/mozilla-firefox.png debian/debsearch.gif \
        firefox-gnomestripe-0.1.tar.gz
/usr/bin/make distclean
make[1]: Entering directory `/home/tinux/packages/firefox/vuur2/firefox-1.0.7'
make[1]: *** No rule to make target `distclean'.  Stop.
make[1]: Leaving directory `/home/tinux/packages/firefox/vuur2/firefox-1.0.7'
make: [clean] Error 2 (ignored)
rm -fr  browser/themes/gnomestripe
rm -f toolkit/xre/nsWindowCreator.cpp toolkit/xre/showOSAlert.cpp toolkit/xre/nsSigHandlers.cpp extensions/pref/system-pref/src/gconf/nsSystemPrefFactory.cpp
dh_clean

*/edit*


gtk2xtbin.h:44:27: error: X11/Intrinsic.h: No such file or directory
In file included from gtk2xtbin.c:46:
gtk2xtbin.h:68: error: syntax error before

Edditing Firefox
« Reactie #6 Gepost op: 2006/03/29, 22:54:18 »
Are you 100% you did sudo apt-get build-dep firefox?

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #7 Gepost op: 2006/03/29, 23:21:27 »
yep, copy paste,
btw doe maar ff in nl is ff makkelijker ;)

maar ben hem nu weer aan het builden,
maar dan als sudo
en na 45 min (duurt lang :S)
is hij nog steeds bezig.

*btw zonder edits

dus ik wacht nog heel even in spanning

Edditing Firefox
« Reactie #8 Gepost op: 2006/03/29, 23:38:07 »
Als root bouwen is een slecht idee! En firefox is inderdaad een beest om te compilen...

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #9 Gepost op: 2006/03/29, 23:41:13 »
ik denk doe het alleen om te testen..
want waarom zou hij fout gaan als norm user
en nu al zover komen met root?
komt het omdat het voor de 2de keer is?
of hoe wat dat dan :S

of omdat ik niks heb aangepast,
maar als ik dan niks aan passen heb ik er ook niks aan ;)
dus was gewoon ff een test of dit werkt.

Nick

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #10 Gepost op: 2006/03/30, 00:14:28 »
nouja geloof het of niet.
ik had idee dat hij eindelijk klaar was met het maken ervan.
valt me verbinding met die linux bak weg...

doet hij een reboot na het maken ervan ofzo??
want ik zie geen .deb file nog in de dir waar ik in heb gewerkt..

maja ik probeer het morgen nog wel een keer ofzo
nu ff geen tijd denk ik om het nog een keer te doen :S:S

nick

iig bedankt voor de tot dusverre geleverde hulp

Dr Nick^

  • Gast
Edditing Firefox
« Reactie #11 Gepost op: 2006/03/30, 09:57:19 »
oke ik wil even melden dat het gelukt is,
harstikke bedankt voor deze informatie.

alleen hij creerd meerdere .deb file,
terwijl ik eigenlijk alleen de firefox.deb nodig heb.

maar affin het werkt.

Thnx (y)