Firefox da sorgenti...
Inviato: sab 1 gen 2005, 12:55
Mi sono imbattuto nella compilazione di firefox da sorgenti e ci sono riuscito, l´unica cosa che non mi convince è la dimensione del tgz che è di 14 mb contro gli 8 di linuxpckages e quelli di slacky...
<BR>
<BR>Se Lorys o chiunque altro voglia aiutarmi ad ottimizzare il pacchetto a partire da sorgenti spiego qui di seguito la procedura che non è standard.
<BR>Dentro la directory scompressa dei sorgenti bisagna creare un file chiamato .mozconfig e dentro bisogna metterci le opzioni che verranno passate al configure.
<BR>Ecco il contenuto:
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE> # This file specifies the build flags for Firefox. You can use it by adding:
<BR># . $topsrcdir/browser/config/mozconfig
<BR># to the top of your mozconfig file.
<BR>
<BR>
<BR>mk_add_options MOZ_CO_PROJECT=browser
<BR>ac_add_options --enable-application=browser
<BR>export MOZ_PHOENIX=1
<BR>mk_add_options MOZ_PHOENIX=1
<BR>
<BR>
<BR>ac_add_options --enable-optimize
<BR>ac_add_options --disable-debug
<BR>ac_add_options --prefix=/usr
<BR>ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
<BR>ac_add_options --enable-strip-libs
<BR>ac_add_options --disable-tests
<BR>ac_add_options --disable-short-wchar
<BR>ac_add_options --enable-nspr-autoconf
<BR>ac_add_options --disable-ldap
<BR>ac_add_options --disable-mailnews
<BR>ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,negotiateauth
<BR>ac_add_options --enable-crypto
<BR>ac_add_options --disable-composer
<BR>ac_add_options --enable-single-profile
<BR>ac_add_options --disable-profilesharing
<BR>ac_add_options --disable-xprint
<BR>ac_add_options --without-system-nspr
<BR>ac_add_options --with-system-zlib
<BR>ac_add_options --enable-default-toolkit=gtk2
<BR>ac_add_options --disable-freetype2
<BR>ac_add_options --enable-xft
<BR>ac_add_options --enable-xinerama
<BR>ac_add_options --enable-xterm-updates
<BR>ac_add_options --disable-accessibility
<BR>ac_add_options --disable-activex
<BR>ac_add_options --disable-activex-scripting
<BR>ac_add_options --disable-installer
<BR>ac_add_options --enable-static
<BR>ac_add_options --disable-shared
<BR>ac_add_options --enable-official-branding
<BR> </BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Dopo di che bisogna lanciare di seguito
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR>gmake -f client.mk distclean
<BR>gmake -f client.mk build</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Basta solo l´ultimo volendo.
<BR>Finito il processo di compilazione con il classico make install DESTDIR=/blabla redirigiamo i file nella directory dove abbiamo deciso di creare il pkg.
<BR>
<BR>In rete su linuxpckages ho trovato anche questo dove alla fine da dei piccoli consigli su come allegerire il packages:
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE> First download the source of course. I follow the mozilla build instructions for this.
<BR>First create a file called .mozconfig in the source see below edit to your needs.
<BR>
<BR>
<BR>#### .mozconfig
<BR>
<BR># sh
<BR># Build configuration script
<BR>#
<BR># See <a href="http://www.mozilla.org/build/unix.html" target="_blank" target="_new">http://www.mozilla.org/build/unix.html</a> for build instructions.
<BR>#
<BR># Mozilla FireFox build options:
<BR>
<BR>export MOZ_PHOENIX=1
<BR>mk_add_options MOZ_PHOENIX=1
<BR>
<BR>ac_add_options --enable-optimize
<BR>ac_add_options --disable-debug
<BR>ac_add_options --prefix=/usr
<BR>ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
<BR>ac_add_options --enable-strip-libs
<BR>ac_add_options --disable-tests
<BR>ac_add_options --disable-short-wchar
<BR>ac_add_options --enable-nspr-autoconf
<BR>ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,typeaheadfind,webservices,inspector,gnomevfs,negotiateauth
<BR>ac_add_options --enable-crypto
<BR>ac_add_options --disable-xprint
<BR>ac_add_options --without-system-nspr
<BR>ac_add_options --with-system-zlib
<BR>ac_add_options --enable-default-toolkit=gtk2
<BR>ac_add_options --disable-freetype2
<BR>ac_add_options --enable-xft
<BR>ac_add_options --enable-xinerama
<BR>ac_add_options --enable-xterm-updates
<BR>ac_add_options --disable-accessibility
<BR>ac_add_options --disable-activex
<BR>ac_add_options --disable-activex-scripting
<BR>ac_add_options --disable-composer
<BR>ac_add_options --disable-installer
<BR>ac_add_options --disable-ldap
<BR>ac_add_options --disable-mailnews
<BR>ac_add_options --disable-profilesharing
<BR>ac_add_options --enable-single-profile
<BR>ac_add_options --enable-static
<BR>ac_add_options --disable-shared
<BR>ac_add_options --enable-official-branding
<BR>
<BR>
<BR>Now we issue these commands.
<BR>gmake -f client.mk checkout
<BR>gmake -f client.mk distclean
<BR>gmake -f client.mk build
<BR>
<BR>Now you can either issue a make install or a make install DESTDIR=/tmp/package-firefox
<BR>
<BR>To create the package some of the post install steps are.
<BR>Create the desktop files and put the pixmaps in the correct location.
<BR>Desktop files in /tmp/package-firefox/usr/share/applications
<BR>pixmaps in /tmp/package-firefox/usr/share/pixmaps
<BR>Create a slack-desc file for it and put it in /tmp/package-firefox/install
<BR>
<BR>Additionally
<BR>I remove the pkgconfig files and that folder not needed
<BR>nothing is going to look for firefox anyway.
<BR>
<BR>I also remove the /usr/include folder since we built static
<BR>no need for these and again nothing is going to use these anyway.
<BR>
<BR>I also rename the /tmp/package-firefox/usr/bin files to mozilla-firefox just
<BR>to keep it standard with the other packages I have built.
<BR>
<BR>And to reduce the size I remove the aclocal and idl directories that are </BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Devo dire che con i CFLAGS ottimizzati per la mia cpu ho notato un leggero aumento delle prestazioni del browser, solo che come ho detto non mi convince la dimensione del package confrontandolo con gli altri.
<BR>
<BR>Il primo mozconfig è quello creato da me, secondo le istruzioni di mozilla.org e compila senza problemi su Salck 10.0, il secondo non l´ho mai provato, ci ho solo preso spunto, l´avveo trovato sull´ftp di linuxpackages...
<BR>
<BR>Buon anno a tuttiiiii!!!
<BR><BR><BR>[ Questo Messaggio è stato Modificato da: Trotto_81 il 01-01-2005 12:57 ]<br>
<BR>
<BR>Se Lorys o chiunque altro voglia aiutarmi ad ottimizzare il pacchetto a partire da sorgenti spiego qui di seguito la procedura che non è standard.
<BR>Dentro la directory scompressa dei sorgenti bisagna creare un file chiamato .mozconfig e dentro bisogna metterci le opzioni che verranno passate al configure.
<BR>Ecco il contenuto:
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE> # This file specifies the build flags for Firefox. You can use it by adding:
<BR># . $topsrcdir/browser/config/mozconfig
<BR># to the top of your mozconfig file.
<BR>
<BR>
<BR>mk_add_options MOZ_CO_PROJECT=browser
<BR>ac_add_options --enable-application=browser
<BR>export MOZ_PHOENIX=1
<BR>mk_add_options MOZ_PHOENIX=1
<BR>
<BR>
<BR>ac_add_options --enable-optimize
<BR>ac_add_options --disable-debug
<BR>ac_add_options --prefix=/usr
<BR>ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
<BR>ac_add_options --enable-strip-libs
<BR>ac_add_options --disable-tests
<BR>ac_add_options --disable-short-wchar
<BR>ac_add_options --enable-nspr-autoconf
<BR>ac_add_options --disable-ldap
<BR>ac_add_options --disable-mailnews
<BR>ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,negotiateauth
<BR>ac_add_options --enable-crypto
<BR>ac_add_options --disable-composer
<BR>ac_add_options --enable-single-profile
<BR>ac_add_options --disable-profilesharing
<BR>ac_add_options --disable-xprint
<BR>ac_add_options --without-system-nspr
<BR>ac_add_options --with-system-zlib
<BR>ac_add_options --enable-default-toolkit=gtk2
<BR>ac_add_options --disable-freetype2
<BR>ac_add_options --enable-xft
<BR>ac_add_options --enable-xinerama
<BR>ac_add_options --enable-xterm-updates
<BR>ac_add_options --disable-accessibility
<BR>ac_add_options --disable-activex
<BR>ac_add_options --disable-activex-scripting
<BR>ac_add_options --disable-installer
<BR>ac_add_options --enable-static
<BR>ac_add_options --disable-shared
<BR>ac_add_options --enable-official-branding
<BR> </BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Dopo di che bisogna lanciare di seguito
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR>gmake -f client.mk distclean
<BR>gmake -f client.mk build</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Basta solo l´ultimo volendo.
<BR>Finito il processo di compilazione con il classico make install DESTDIR=/blabla redirigiamo i file nella directory dove abbiamo deciso di creare il pkg.
<BR>
<BR>In rete su linuxpckages ho trovato anche questo dove alla fine da dei piccoli consigli su come allegerire il packages:
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE> First download the source of course. I follow the mozilla build instructions for this.
<BR>First create a file called .mozconfig in the source see below edit to your needs.
<BR>
<BR>
<BR>#### .mozconfig
<BR>
<BR># sh
<BR># Build configuration script
<BR>#
<BR># See <a href="http://www.mozilla.org/build/unix.html" target="_blank" target="_new">http://www.mozilla.org/build/unix.html</a> for build instructions.
<BR>#
<BR># Mozilla FireFox build options:
<BR>
<BR>export MOZ_PHOENIX=1
<BR>mk_add_options MOZ_PHOENIX=1
<BR>
<BR>ac_add_options --enable-optimize
<BR>ac_add_options --disable-debug
<BR>ac_add_options --prefix=/usr
<BR>ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla-firefox
<BR>ac_add_options --enable-strip-libs
<BR>ac_add_options --disable-tests
<BR>ac_add_options --disable-short-wchar
<BR>ac_add_options --enable-nspr-autoconf
<BR>ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,typeaheadfind,webservices,inspector,gnomevfs,negotiateauth
<BR>ac_add_options --enable-crypto
<BR>ac_add_options --disable-xprint
<BR>ac_add_options --without-system-nspr
<BR>ac_add_options --with-system-zlib
<BR>ac_add_options --enable-default-toolkit=gtk2
<BR>ac_add_options --disable-freetype2
<BR>ac_add_options --enable-xft
<BR>ac_add_options --enable-xinerama
<BR>ac_add_options --enable-xterm-updates
<BR>ac_add_options --disable-accessibility
<BR>ac_add_options --disable-activex
<BR>ac_add_options --disable-activex-scripting
<BR>ac_add_options --disable-composer
<BR>ac_add_options --disable-installer
<BR>ac_add_options --disable-ldap
<BR>ac_add_options --disable-mailnews
<BR>ac_add_options --disable-profilesharing
<BR>ac_add_options --enable-single-profile
<BR>ac_add_options --enable-static
<BR>ac_add_options --disable-shared
<BR>ac_add_options --enable-official-branding
<BR>
<BR>
<BR>Now we issue these commands.
<BR>gmake -f client.mk checkout
<BR>gmake -f client.mk distclean
<BR>gmake -f client.mk build
<BR>
<BR>Now you can either issue a make install or a make install DESTDIR=/tmp/package-firefox
<BR>
<BR>To create the package some of the post install steps are.
<BR>Create the desktop files and put the pixmaps in the correct location.
<BR>Desktop files in /tmp/package-firefox/usr/share/applications
<BR>pixmaps in /tmp/package-firefox/usr/share/pixmaps
<BR>Create a slack-desc file for it and put it in /tmp/package-firefox/install
<BR>
<BR>Additionally
<BR>I remove the pkgconfig files and that folder not needed
<BR>nothing is going to look for firefox anyway.
<BR>
<BR>I also remove the /usr/include folder since we built static
<BR>no need for these and again nothing is going to use these anyway.
<BR>
<BR>I also rename the /tmp/package-firefox/usr/bin files to mozilla-firefox just
<BR>to keep it standard with the other packages I have built.
<BR>
<BR>And to reduce the size I remove the aclocal and idl directories that are </BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Devo dire che con i CFLAGS ottimizzati per la mia cpu ho notato un leggero aumento delle prestazioni del browser, solo che come ho detto non mi convince la dimensione del package confrontandolo con gli altri.
<BR>
<BR>Il primo mozconfig è quello creato da me, secondo le istruzioni di mozilla.org e compila senza problemi su Salck 10.0, il secondo non l´ho mai provato, ci ho solo preso spunto, l´avveo trovato sull´ftp di linuxpackages...
<BR>
<BR>Buon anno a tuttiiiii!!!
<BR><BR><BR>[ Questo Messaggio è stato Modificato da: Trotto_81 il 01-01-2005 12:57 ]<br>