LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-01-2008, 02:02 PM   #16
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 50

Yea, I have fontconfig-2.5.0 and freetype-2.3.5 installed on my DIY build and everything built just fine. I do know that a cairo 1.6.x and pixman 0.10.x IS needed, however. pixman should be new enough on Slack (haven't checked) so you should just need a plain old vanilla cairo-1.6.x in order to build xulrunner.

The official cairo.SlackBuild for 1.4.x should work just fine when building a new cairo... Might also want to look into a possible updated pycairo if anyone does that tho... It might still be in the 1.4 range if I'm not mistaken but couldn't hurt to get rebuilt anyway. Same goes for pango.

Last edited by jong357; 07-01-2008 at 03:28 PM.
 
Old 07-01-2008, 02:17 PM   #17
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 50
And, just incase any higher ups are reading this and contemplating xulrunner, it is of course a new API. Might want to let things settle. I have to use a development version of totem to get it to build the plugin.

Stable librsvg seems to like 1.9 just fine but vlc needs CPPFLAGS appended and a --with-mozilla-sdk-path= switch to configure..... Not a big deal but it'll be alot nicer once people catch up and it's all recognized automatically...
 
Old 07-01-2008, 04:13 PM   #18
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-13.37
Posts: 1,115

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by jong357 View Post
Yea, I have fontconfig-2.5.0 and freetype-2.3.5 installed on my DIY build and everything built just fine. I do know that a cairo 1.6.x and pixman 0.10.x IS needed, however. pixman should be new enough on Slack (haven't checked) so you should just need a plain old vanilla cairo-1.6.x in order to build xulrunner.

The official cairo.SlackBuild for 1.4.x should work just fine when building a new cairo... Might also want to look into a possible updated pycairo if anyone does that tho... It might still be in the 1.4 range if I'm not mistaken but couldn't hurt to get rebuilt anyway. Same goes for pango.
Just to clear up a few things, you only need cairo <1.6.0 if you are compiling with the --enable-system-cairo option. Firefox uses it's own internal cairo code which will by pass any system settings you have made. this specifically relates to my beautiful fonts thread because if you want to use sub-pixel renderig with firefox it will have to be compiled with --enable-system-cairo which requires cairo 1.6.0 or higher and the newest patch for sub-pixel rendering with cairo requires a new option in fontconfig to work properly which is why you need fontconfig 2.6.0. However if you don't want or need sub-pixel rendering then just remove the --enable-system-cairo option and it will compile fine

Last edited by Daedra; 07-01-2008 at 07:54 PM.
 
Old 07-02-2008, 03:42 PM   #19
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Or - to complicate things further, you just use the new subpixel patch OR the old one (see the font thread) with a latest cairo 1.6.4, ignore the new fontconfig and still have your fonts looking nice.

As Dugan mentioned the recent fontconfig version is not necessary for the patched (und unpatched) recent Cairo versions and for --enable-system-cairo in FF3, you just need it for certain fontconfig options if you'd like to use them.

I use the more or less same font style as Daedra with patched recent Cairo and FF3 compiled with --enable-system-cairo, but without recent fontconfig, because it's (still) on a Slack 12.0.

Works all nicely.
 
Old 07-02-2008, 09:19 PM   #20
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,436

Original Poster
Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Quote:
Originally Posted by shadowsnipes View Post
What is the advantage of building firefox with XULrunner
Here's another point.

Firefox and Xulrunner are different projects and therefore, updated separately. Release.mozila.org has five versions of Firefox 2 and only four versions of Xulrunner 1.8. Firefox and Xulrunner's releases do not coincide.

What happens when there is a new Firefox but no new Xulrunner? If you built Firefox and Xulrunner separately, then you would only need to spend a five minutes minutes compiling Firefox and linking it against Xulrunner. But if you built Xulrunner into Firefox to get a standalone Firefox, then you would have to spend 50 minutes (45 of which are wasted) compiling both.

I haven't tried your suggestion to try --disable-libxul, but I will. Even if it does create the needed pkgconfig files though, building Xulrunner separately is a better decision.
 
Old 07-02-2008, 09:39 PM   #21
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,408

Rep: Reputation: 65
Quote:
Originally Posted by dugan View Post
Here's another point.

Firefox and Xulrunner are different projects and therefore, updated separately. Release.mozila.org has five versions of Firefox 2 and only four versions of Xulrunner 1.8. Firefox and Xulrunner's releases do not coincide.

What happens when there is a new Firefox but no new Xulrunner? If you built Firefox and Xulrunner separately, then you would only need to spend a five minutes minutes compiling Firefox and linking it against Xulrunner. But if you built Xulrunner into Firefox to get a standalone Firefox, then you would have to spend 50 minutes (45 of which are wasted) compiling both.

I haven't tried your suggestion to try --disable-libxul, but I will. Even if it does create the needed pkgconfig files though, building Xulrunner separately is a better decision.
I totally agree since as you said the compile times are drastically reduced (for more than just firefox). I don't really have a good reason to regularly build firefox at this point in time, but if I do this in the future I will definitely be building xulrunner separately. Thanks for all your (and others') input.
 
Old 07-05-2008, 07:04 PM   #22
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,436

Original Poster
Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
I've uploaded a new version of the Firefox SlackBuild. Here are the changes:

Quote:
Originally Posted by shadowsnipes View Post
mkdir -p $PKG/usr/lib/mozilla/plugins
I added that.

Quote:
Originally Posted by shadowsnipes View Post
I don't think you need the "#!/bin/bash" at the top of your doinst.sh.
I removed that.

Quote:
Originally Posted by Toods View Post
This is how I would write the command:
ln -s /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins
I left that the way it was .

Seriously, though, I also made a change that matters. A big change. The custom icon can now be seen on the taskbar!

The XULRunner SlackBuild remains the same. So upgrading from the previous release will only take a few minutes.

Last edited by dugan; 07-05-2008 at 07:09 PM.
 
Old 07-10-2008, 11:14 PM   #23
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,408

Rep: Reputation: 65
Speaking of custom icons, I wonder why you aren't using them (in Firefox, not in /usr/share/pixmaps) instead of the built-in firefox icons? You just have to specify the directory with the icon(s) at configure time I think (instead of using --enable-official-branding).

Last edited by shadowsnipes; 07-10-2008 at 11:17 PM.
 
Old 07-11-2008, 08:15 AM   #24
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 50
Yea, but then it's labeled as deerpark or minefield or whatever the flavor du' jour happens to be... No one wants that...

Could probably add the new icon to the source before building...
 
Old 07-12-2008, 04:10 AM   #25
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Quote:
Originally Posted by jong357 View Post
Yea, but then it's labeled as deerpark or minefield or whatever the flavor du' jour happens to be...
That can easily be changed back to Firefox (or anything else you like for that matter) by editing a few files in the source tree.

Bill.
 
Old 07-12-2008, 08:29 AM   #26
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 50
I'm sure it could, however, I'm afraid I'm going to have to call the Mozilla Police now....

It would probably be easier just to replace the official .png/.xpm's with the new one before you build if your going to go the source route... I'm thinking anyway.... Which sometimes isn't good for me.
 
Old 07-12-2008, 08:53 AM   #27
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 50
Dugan, if your open to suggestions, I have a few.

Might be a good idea to run update-desktop-database on the firefox post-install because of MimeType=.... Also, /usr/lib/xulrunner-$VERSION should be appended to LD_LIBRARY_PATH by one means or another. If someone uninstalls Seamonkey, your nss/nspr libs won't be found at runtime and programs will break.

Just a matter of personal style I suppose, but I also like to --disable-installer and --disable-updater if they are going to be native packages handled by pkgtool. Good way to loose control over your packages if it's automatically updated.... --disable-crashreporter is also good because mozilla could care less about an "un-official" build....

Can't say that I'm a big fan of /usr/lib/mozilla either but to each his own...

edit- (sorry) - You've also got a hard wired dependency on imagemagick within your scripts... A conditional might be more appropriate.

Last edited by jong357; 07-12-2008 at 09:10 AM.
 
Old 07-13-2008, 02:01 AM   #28
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,436

Original Poster
Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Quote:
Originally Posted by jong357 View Post
Dugan, if your open to suggestions, I have a few.
Good suggestions. I've uploaded new SlackBuilds that incorporate them.

Quote:
Might be a good idea to run update-desktop-database on the firefox post-install because of MimeType=....
Done!

Quote:
Also, /usr/lib/xulrunner-$VERSION should be appended to LD_LIBRARY_PATH by one means or another.
Good point. I now set it in /etc/profile.d and print a message telling the user how to make the changes take effect (log out, log back in).

Quote:
I also like to --disable-installer and --disable-updater if they are going to be native packages handled by pkgtool. Good way to loose control over your packages if it's automatically updated.... --disable-crashreporter is also good because mozilla could care less about an "un-official" build....
You've convinced me. I now pass all of these to Firefox's configure script.

Quote:
You've also got a hard wired dependency on imagemagick within your scripts... A conditional might be more appropriate.
And here we need to ask ourselves... would a conditional needlessly complicate the SlackBuild? Can we not just assume that the user has ImageMagick installed? I don't know. But I decided to take your recommendation and have the conditional.

Quote:
Can't say that I'm a big fan of /usr/lib/mozilla either but to each his own...
You mean symlinking /usr/lib/mozilla/plugins to /usr/lib/firefox-3.0/plugins to get access to installed plugins? There's no other way to do it.

As with the current versions of my Ubuntu font rendering SlackBuilds, the current Firefox and XULRunner SlackBuilds untar the sources in /tmp/build/source, package them in /tmp/build/package, and output tgz files in /tmp/build/output. This work better for me than simply putting everything in /tmp.

Last edited by dugan; 07-13-2008 at 02:05 AM.
 
Old 07-13-2008, 02:59 AM   #29
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-13.37
Posts: 1,115

Rep: Reputation: 142Reputation: 142
Hey dugan I am getting an error post make...

/defaults/profile/mimeTypes.rdf
./defaults/profile/chrome/
./defaults/profile/chrome/userContent-example.css
./defaults/profile/chrome/userChrome-example.css
./defaults/profile/localstore.rdf
./defaults/profile/prefs.js
./README.txt
./extensions/
./extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/
./extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
./old-homepage-default.properties
./browserconfig.properties
/tmp/build/source/firefox-3.0/mozilla/config/nsinstall -D /tmp/build/package/mozilla-firefox/usr/bin
rm -f -f /tmp/build/package/mozilla-firefox/usr/bin/firefox
ln -s /usr/lib/firefox-3.0/firefox /tmp/build/package/mozilla-firefox/usr/bin
gmake[1]: Leaving directory `/tmp/build/source/firefox-3.0/mozilla/browser/installer'
bzcat: Can't open input file /rm/mozilla-firefox/mozilla-firefox.desktop: No such file or directory.
root@slackware:/rm/mozilla-firefox#


just FYI
 
Old 07-13-2008, 03:41 AM   #30
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,436

Original Poster
Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
How embarrassing. I must have made a last minute change without adequately testing it.

Try it now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackbuilds from 12.0 for 12.1 arubin Slackware 7 05-07-2008 04:51 AM
Slackbuilds are great arubin Slackware 1 12-17-2007 08:42 PM
slackbuilds.org harkonen Slackware 16 08-22-2007 03:01 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 09:56 PM
Are there any SlackBuilds for Firefox 1.5 (build from source) spinner_0 Slackware 7 01-18-2006 05:48 AM


All times are GMT -5. The time now is 08:11 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration