Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 01 Sep 2015, 20:33
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Compile palemoon browser
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
01micko


Joined: 11 Oct 2008
Posts: 8026
Location: qld

PostPosted: Wed 08 Jul 2015, 08:40    Post subject:  Compile palemoon browser
Subject description: a doosy - but so is any big browser
 

Sick of the massive ~40MB packages of firefox, seamonkey and +50MB of chromium, chome et al?

Me too.

I haven't compiled a browser in ages. Last one was chromium+-24.?? in slackware that ran well enough on Slacko.

Before that I was religiously (for want of a better term) building seamonkey in old spup-100 (remember that?) and early slacko versions - but soon got tired of it and just ended up using the Pat Volkerding built Firefox official Slackware packages - mainly because it was substantially smaller than Seamonkey.

Anyway, when FF moved to their new 'Australis' UI it grew substantially - as did SM - why(?) who knows? Anyway they are both near 40MB packages these days and that is just plain bullshit in my view. What new do you get? Nothing. 0. ( nada - zero - zilch).

Thankfully 666philb discovered palemoon, which has been described as what Mate as is to Gnome (somewhere on the LQ forum) is Palemoon as is to Firefox. (Yes it is Firefox based).

So.. it comes as a binary Confused .. but is open source Very Happy so I found the source and compiled it. Worked first go Razz (with caveats).

---------------------------------------------------------------------------------------------------------

So I've sold you and you want to build it.

REQUIRED: devx, EDIT: gstreamer (at least for a build time dependency), lots of RAM (2GB min with 6GB swap); a six pack (EDIT: the "configure" out put actually instructs you to check the fridge for beer!) or a few cups of coffee.. it takes ages! (especially the linker - took 35 mins to link on a 3GHz Athlon X2; 4GB RAM, 2GB swap)

Here is a quick and dirty recipe.

    1. get the source.
    Code:
    wget ftp://source:current@ftp.palemoon.org/palemoon-25.5.0-source.7z


    2. Fixup autoconf. If you dont have autoconf-2.13 then get it
    Code:
    wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
    tar -xvzf autoconf-2.13.tar.gz
    cd autoconf-2.13/
    ./configure --program-suffix=2.13
    make
    make install
    . It installs to /usr/local/bin

    3. Extract the source
    Code:
     mkdir palemoon-25.5.0
    7z x -opalemoon-25.5.0  palemoon-25.5.0-source.7z


    4. add this DOTmozconfig (name it .mozconfig - see the preceding DOT?) into your palemoon-25.5.0 src dir.
    CAVEAT 0: No guarantees here! It may (read WILL) need tweaking and coz it takes ages to compile is a royal PITA. YMMV.
    Code:
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj
    mk_add_options AUTOCONF=autoconf2.13
    export MOZILLA_OFFICIAL=1
    ac_add_options --enable-official-branding
    ac_add_options --prefix=/usr
    ac_add_options --libdir=/usr/lib
    ac_add_options --with-default-mozilla-five-home=/usr/lib/palemoon
    ac_add_options --with-system-zlib
    ac_add_options --enable-application=browser
    ac_add_options --enable-default-toolkit=cairo-gtk2
    ac_add_options --enable-startup-notification
    ac_add_options --enable-crypto
    ac_add_options --enable-svg
    ac_add_options --enable-canvas
    ac_add_options --enable-logging
    ac_add_options --enable-xft
    ac_add_options --enable-webm
    ac_add_options --enable-xinerama
    ac_add_options --enable-reorder
    ac_add_options --enable-strip
    ac_add_options --enable-cpp-rtti
    ac_add_options --enable-single-profile
    ac_add_options --disable-tests
    ac_add_options --disable-optimize
    ac_add_options --disable-gnomevfs
    ac_add_options --disable-ldap
    ac_add_options --disable-accessibility
    ac_add_options --disable-crashreporter
    ac_add_options --disable-debug
    ac_add_options --disable-pedantic
    ac_add_options --disable-installer
    ac_add_options --disable-mailnews
    ac_add_options --disable-composer
    ac_add_options --disable-pulseaudio
    ac_add_options --disable-profilesharing
    ac_add_options --disable-tests
    export LDFLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
     
    - note0 @line2 (autoconf)
    - note1 @last line is required for 32 bit builds (thx jamesbond)

    5. This is goofy - run this -
    Code:
    cd palemoon-25.5.0
    chmod -R 777 .
    - permissions are screwed up in the archive, need to figure out a better way.
    EDIT: Nope.. seems that perms must be set executable and I'm not searching the sources for every bad exec so (a bit safer)
    Code:
    cd palemoon-25.5.0
    chmod -R 755 .

    If you are paranoid, disconnect from the net after you download the source.

    6.
    Code:
    mkdir obj


    7. READY!
    Code:
    make -f client.mk build


    8. If it builds (it may or may not) then do this
    Code:
    cd obj
    make package


    9. You should now have palemoon-25.5.0.en-US.linux-x86_64.tar.bz2 in dist!


Posting from it now.
palemoon.png
Description 
png

 Download 
Filename  palemoon.png 
Filesize  57.84 KB 
Downloaded  53 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Fri 10 Jul 2015, 06:56; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
666philb


Joined: 07 Feb 2010
Posts: 2634
Location: wales

PostPosted: Thu 09 Jul 2015, 08:10    Post subject:  

hi 01micko,

there are some licensing restrictions with palemoon which may affect self compiled binaries https://www.palemoon.org/redist.shtml

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8026
Location: qld

PostPosted: Thu 09 Jul 2015, 18:56    Post subject:  

666philb wrote:
hi 01micko,

there are some licensing restrictions with palemoon which may affect self compiled binaries https://www.palemoon.org/redist.shtml


I don't see a problem. I don't add any patches. I will however run it by moonchild anyway. (mainly to see if he approves the .mozconfig).

Also, I note clause 3.d.
Quote:
You have changed supplied default preferences of the browser


I'll ask him if it's possible to add this to /usr/lib/palemoon-${VERSION}/browser/defaults/preferences/local-settings.js
Code:
//
//default home page
pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=file:///usr/share/doc/home.htm");


That just adds the 'jumping off page' as the home page.

If he doesn't allow that to the package then I'll ask if it's allowed to be a separate package included in a puppy build. All distros do it with mozilla browsers, with permission.

EDIT:
Quote:

12. If you wish to distribute binaries for other platforms, building from Pale Moon source code, you may not use official branding unless these builds have also been approved as a contributed build as per point 10 of this license or if they are exempt under points 7 or 8 of this license. Even so, you obtain no rights to the Pale Moon name or logo, merely the permission to use it for the 3rd party build, and only for as long as it is officially endorsed or satisfies the conditions for exemption. In all other cases you must use significantly different branding files/graphics and a significantly different name for the browser.

13. Unofficial branding ("New Moon") as supplied in the source code may be used for unendorsed binaries at all times. Thusly branded binaries with the New Moon logo and product name are not subject to the endorsement and exception rules as set out in previous points of this license and may be freely distributed in altered or unaltered form, subject to the Mozilla Public License as regards source code changes and availability. This permission does, however, not include any rights or license to the Pale Moon name and logo that may still be present in the resulting unofficially branded binaries.


That solves that Smile . I care not for the official branding.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8026
Location: qld

PostPosted: Fri 10 Jul 2015, 05:41    Post subject:  

Here is a package built in slacko-5.9.3. Seems to do everything right so far-

palemoon-25.5.0-i686_slk600_1.pet 22MB xz compressed. (compared with Slackware mozilla-firefox-31.7.0esr-i486-1_slack14.1.txz package @ 34MB xz compressed).

It wont run in older slacko versions!

It will filter through to mirrors soon. It was built with a build script, fully reproducible. Official branding is disabled as I replaced the default home page (a licence requirement) so it will show up as "New Moon" and has the default mozilla icon. No big deal. Seems to work exactly like firefox-24.x to me, but obviously has been updated with security features and other optimisations.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Makoto


Joined: 03 Sep 2009
Posts: 1878
Location: Out wandering... maybe.

PostPosted: Fri 10 Jul 2015, 06:44    Post subject:  

Just curious... can the latest versions of palemoon be compiled for and run under Puppy 4.3.1? (I know, I know, upgrade Puppy, or at least glib. Cool )

I'm mainly wondering whether or not the more recent versions of Firefox, Seamonkey, etc. have higher glib/c requirements simply because they were compiled using a more recent version of glib/c, or do they actually require something present in the newer libs? Laughing

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8026
Location: qld

PostPosted: Fri 10 Jul 2015, 06:53    Post subject:  

Makoto wrote:
Just curious... can the latest versions of palemoon be compiled for and run under Puppy 4.3.1? (I know, I know, upgrade Puppy, or at least glib. Cool )

I'm mainly wondering whether or not the more recent versions of Firefox, Seamonkey, etc. have higher glib/c requirements simply because they were compiled using a more recent version of glib/c, or do they actually require something present in the newer libs? Laughing


I'm afraid gcc>= 4.7.0 (required build depend) is needed making slacko-5.7 as probably as old as it gets.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Makoto


Joined: 03 Sep 2009
Posts: 1878
Location: Out wandering... maybe.

PostPosted: Fri 10 Jul 2015, 07:53    Post subject:  

I'd guessed that was the case, but I knew I'd regret it if I didn't at least ask. Very Happy
_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0578s ][ Queries: 12 (0.0120s) ][ GZIP on ]