Go Back   MEPISlovers Forum > How-To's and Scripts > Tips&Tricks
Register FAQTop Statistics Today's Posts Donate Gallery
Gallery
Mepis Art Gallery
My images
Upload an image
View all users images
Post New Thread  Reply
Building a Firefox (3.5.7) Deb from pure source.

 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-19-2010, 03:20 AM
Brooko's Avatar
Brooko Brooko is online now
Avid Learner
 
Join Date: Apr 2007
Location: Deep South, New Zealand
Gender: Male
Posts: 4,470
Thanks: 2,834
Thanked 4,863 Times in 1,776 Posts
Rep Power: 346
Reputation: 26096
Brooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond repute
Default Building a Firefox (3.5.7) Deb from pure source.

Building Firefox from source
(creates debs to install in opt)
  1. Once I'd downloaded all the files, I create a new directory called /Build1. I copy firefox3_3.5.6-0mlrepo1.dsc and firefox3_3.5.6-0mlrepo1.tar.gz into /Build1, open a konsole session and (as normal user)
    Quote:
    dpkg-source -x firefox3_3.5.6-0mlrepo1.dsc
    This creates a folder /firefox3-3.5.6 containing the old source file and the debian folder.
  2. Now change the folder name to /firefox3-3.5.7
  3. Delete firefox3_3.5.6-0mlrepo1.dsc and firefox3_3.5.6-0mlrepo1.tar.gz - we no longer need them. Also delete (inside /firefox3-3.5.7) the old source file firefox-3.5.6.source.tar.bz2
  4. Copy the new source file firefox-3.5.7.source.tar.bz2 into /Build1/firefox3-3.5.7
  5. You should now have:
    - A directory /Build1 containing a folder /firefox3-3.5.7
    - Inside /firefox3-3.5.7 you have the firefox-3.5.7.source.tar.bz2 and a /debian folder.
  6. Open a konsole inside the /firefox3-3.5.7 folder
  7. Quote:
    dch -i
    opens the debian changelog in nano. The most important thing here is to change the file name version (above the cursor). Use the arrow keys and backspace key to change
    firefox3 (3.5.6-0mlrepo2) mepis; urgency=low
    to
    firefox3 (3.5.7-0mlrepo1) mepis; urgency=low
  8. You should also add a short description after the asterisk on what has changed. Mine is:
    * New upstream release
    * Reversioned to be standalone release - installs in /opt
  9. <CTRL> + X prompts an exit. Hit "Y" and <Enter> to save the file.
  10. The control file is already Ok - but to put your own detailes as Maintainer:
    Quote:
    cd debian && kwrite control && cd ..
    Kwrite opens the control file. You only change the Maintainer details!
  11. Change to root, and run:
    Quote:
    /usr/lib/pbuilder/pbuilder-satisfydepends
    This will install the build dependencies requirted to build ff3.
  12. After it has finised, exit as root back to user, and run:
    Quote:
    dpkg-buildpackage -rfakeroot -us -uc
    This should start compiling and building your deb. I omitted building source files as you don't really need them unless compiling for the community repository. If you wnated them, you'd add -sa

At the end of the build - in your /Build1 directory, you should have a firefox3 deb that you can install with kpackage.
__________________
Simply Mepis = Simply Freedom. Registered Linux User: #448772
MEPIS 8.5 - 32bit KDE4 : Antec 300 case, Corsair 520HX PSU, Asus P5Q Pro Mobo, Q6600 G0 quad core @ 3Ghz, Xigmatek HDT-S1283 Cooler, 4Gb Corsair Dominator DDR2 1066, Gigabyte GTX260 OC, 2 x WD 500Gb Sata2, Asus Sata CD/DVD Rom, Logitech - Wave Kb, G5 Mouse, X230 2.1 Sound, DSE 'generic' Webcam. Everything works !
Reply With Quote
The Following 7 Users Say Thank You to Brooko For This Useful Post:
  #2  
Old 04-04-2010, 01:36 PM
Zevon Zevon is offline
MEPIS Lover
 
Join Date: Dec 2008
Gender: Male
Posts: 145
Thanks: 38
Thanked 13 Times in 11 Posts
Rep Power: 23
Reputation: 75
Zevon is on a distinguished road
Default

Quote:
Originally Posted by Brooko View Post
Building Firefox from source
(creates debs to install in opt)
This all went well until the final stage, when I got this;
>>>
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package firefox3
dpkg-buildpackage: source version 3.6.3-0mlrepo3
dpkg-buildpackage: source changed by cjn <cjn@accord>
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
rm -rf mozilla-1.9.1
dh_clean
dpkg-source -b firefox3-3.6.3
dpkg-source: info: using source format `1.0'
dpkg-source: info: building firefox3 in firefox3_3.6.3-0mlrepo3.tar.gz
dpkg-source: info: building firefox3 in firefox3_3.6.3-0mlrepo3.dsc
debian/rules build
dh_testdir
# Add here commands to configure the package
tar xjvf firefox*.tar.bz2
tar: firefox*.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [configure-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>>>

Can you help me to fix it?
Reply With Quote
  #3  
Old 04-04-2010, 05:27 PM
Brooko's Avatar
Brooko Brooko is online now
Avid Learner
 
Join Date: Apr 2007
Location: Deep South, New Zealand
Gender: Male
Posts: 4,470
Thanks: 2,834
Thanked 4,863 Times in 1,776 Posts
Rep Power: 346
Reputation: 26096
Brooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond repute
Default

I'll try my own build of 3.6 later today. Sometimes when Mozilla release a vastly new incremental build, you have to get right inside their configs because they change quite a few names.

The walkthrough worked with the 3.5.x series - probably won't with 3.6.x

Give me some time to check it out. I'll advise in due course.
Reply With Quote
  #4  
Old 04-04-2010, 05:43 PM
Zevon Zevon is offline
MEPIS Lover
 
Join Date: Dec 2008
Gender: Male
Posts: 145
Thanks: 38
Thanked 13 Times in 11 Posts
Rep Power: 23
Reputation: 75
Zevon is on a distinguished road
Default

Much obliged!

Couldn't resist going to 3.6 :)
__________________
Mepis-8.5rel01_64
Reply With Quote
  #5  
Old 04-04-2010, 05:51 PM
Stevo's Avatar
Stevo Stevo is online now
Return of El Coyote
 
Join Date: Dec 2006
Location: Skullcrusher Mountain, Santee, CA USA
Gender: Male
Posts: 8,848
Thanks: 1,982
Thanked 3,908 Times in 2,645 Posts
Rep Power: 354
Reputation: 22094
Stevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond repute
Default

Brooko, I reused your community repo source to build my own 3.6 debs in Package Sharing, but had to tweak a few lines in the /debian folder...let me see if I can find it...OK, FF 3.6 uses xulrunner 1.9.2, so just grep or use Kfind to find all instances of 1.9.1 in the /debian folder and replace with 1.9.2, and the build should succeed.

Zevon, in addition to that, it looks like you failed at the start when the script could not find an appropriate firefox*.tar.bz2 source tarball to extract. What is the name of the file you downloaded, and where was it?
__________________
Mencoder's an amazing program--it can do just about everything--and I can't get it do anything!

Tux Radar Podcast 7

Last edited by Stevo : 04-04-2010 at 05:56 PM.
Reply With Quote
  #6  
Old 04-04-2010, 05:58 PM
Brooko's Avatar
Brooko Brooko is online now
Avid Learner
 
Join Date: Apr 2007
Location: Deep South, New Zealand
Gender: Male
Posts: 4,470
Thanks: 2,834
Thanked 4,863 Times in 1,776 Posts
Rep Power: 346
Reputation: 26096
Brooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond reputeBrooko has a reputation beyond repute
Default

Thanks Stevo

Yep I remember doing that last time going from 3.4 to 3.5. I think what I'll do is build the latest and greatest for the CR - then anyone can use the new source to build their own if they want to have a go.
Reply With Quote
  #7  
Old 04-04-2010, 06:54 PM
Zevon Zevon is offline
MEPIS Lover
 
Join Date: Dec 2008
Gender: Male
Posts: 145
Thanks: 38
Thanked 13 Times in 11 Posts
Rep Power: 23
Reputation: 75
Zevon is on a distinguished road
Default

Quote:
Originally Posted by Stevo View Post
Zevon, in addition to that, it looks like you failed at the start when the script could not find an appropriate firefox*.tar.bz2 source tarball to extract. What is the name of the file you downloaded, and where was it?
Wow I'd overlooked that, will check now....

"firefox-3.6.3.source.tar.bz2" placed in the /Build1 directory.
Reply With Quote
  #8  
Old 04-04-2010, 07:00 PM
kmathern's Avatar
kmathern kmathern is offline
MEPIS Guide
 
Join Date: Jul 2006
Gender: Male
Posts: 3,278
Thanks: 255
Thanked 1,630 Times in 1,220 Posts
Rep Power: 171
Reputation: 8852
kmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond reputekmathern has a reputation beyond repute
Default

Quote:
Originally Posted by Zevon View Post
Wow I'd overlooked that, will check now....

"firefox-3.6.3.source.tar.bz2" placed in the /Build1 directory.
re-read Brooko's original instructions, step 4 and step 5
Reply With Quote
  #9  
Old 04-04-2010, 08:24 PM
Zevon Zevon is offline
MEPIS Lover
 
Join Date: Dec 2008
Gender: Male
Posts: 145
Thanks: 38
Thanked 13 Times in 11 Posts
Rep Power: 23
Reputation: 75
Zevon is on a distinguished road
Default

Quote:
Originally Posted by kmathern View Post
re-read Brooko's original instructions, step 4 and step 5
Thanks, that got me further along to..

patch -p0 < debian/patches/moz_appdir.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mozilla-1.9.1/build/unix/mozilla.in 2007-10-05 08:29:26.000000000 +0100
|+++ mozilla-1.9.1/build/unix/mozilla.in 2008-07-06 15:43:22.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
make: *** [configure-stamp] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Too tired to do any more right now. (01:24)
Reply With Quote
  #10  
Old 04-04-2010, 11:00 PM
Stevo's Avatar
Stevo Stevo is online now
Return of El Coyote
 
Join Date: Dec 2006
Location: Skullcrusher Mountain, Santee, CA USA
Gender: Male
Posts: 8,848
Thanks: 1,982
Thanked 3,908 Times in 2,645 Posts
Rep Power: 354
Reputation: 22094
Stevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond reputeStevo has a reputation beyond repute
Default

Well....I see some instances of 1.9.1 right there in the error that were not changed to 1.9.2.

Quote:
Originally Posted by Zevon View Post
Thanks, that got me further along to..

patch -p0 < debian/patches/moz_appdir.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mozilla-1.9.1/build/unix/mozilla.in 2007-10-05 08:29:26.000000000 +0100
|+++ mozilla-1.9.1/build/unix/mozilla.in 2008-07-06 15:43:22.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
make: *** [configure-stamp] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Too tired to do any more right now. (01:24)
Reply With Quote
Post New Thread  Reply

  MEPISlovers Forum > How-To's and Scripts > Tips&Tricks


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot locate GuardDog in Mepis 8 mich Newbies 15 01-10-2010 10:33 PM
most excellent E17 repo*** ;-) (jaunty?) loco Regulars 0 10-10-2009 03:05 PM
Compiz-Fusion from Debian Sid (0.7.6) looks portable.... Stevo Composite Window Managers 9 09-08-2008 01:47 AM
Unresolved - Trouble getting video to play in Mepis 7.0 JawsThemeSwimming428 Video-Related 25 01-03-2008 12:48 AM
Debian-multimedia.org / Mirrors Saist General Topics 1 09-27-2007 12:21 AM


All times are GMT -4. The time now is 10:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2010 MEPISlovers.org