View Single Post
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#93
Steps how to create new version of fennec (dsc package for extras-devel):

1. Download upstream fennec tarball (tar.bz2 format) from mozilla website.

2. Create directory fennec, move upstream tarball to that directory and rename it to fennec-source.tar.bz2:
Code:
$ mkdir fennec && mv <upstream_tarball>.tar.bz2 fennec/fennec-source.tar.bz2
3. Create debian orig file from upstrem fennec tarball (orig.tar.gz):
(This means that orig.tar.gz will contains only one file - upstream tarball tar.bz2 in fennec subdir)
Code:
$ tar -czf fennec_<version>.orig.tar.gz fennec
4. Go to directory fennec, download my diff.gz file (version 7.0.1-2) from extras-devel repository:
Code:
$ wget http://repository.maemo.org/extras-devel/pool/fremantle/free/source/f/fennec/fennec_7.0.1-2.diff.gz -O fennec/fennec.diff.gz
5. Apply changes and remove it:
Code:
$ cd fennec && gunzip -c fennec.diff.gz | patch -p1 && rm -f fennec.diff.gz
6. Set correct version:
Code:
$ sed 's/7.0.1-2/<VERSION>/' -i fennec/debian/changelog
7. Optionaly edit mozconfig file: fennec/debian/mozconfig
Make sure that objdir is @TOPSRCDIR@/objdir and prefix and libdir is /opt

8. Create debian source package (dsc):
Code:
$ cd fennec && dpkg-buildpackage -S -sa -rfakeroot -us -uc
Note that debian/control and debian/changelog will be overwritten by mozilla script in final deb package. So editing debian/control is usefull only for adding *build* dependences and debian/changelog only for setting version. Real changelog and binary package dependences are generated by mozilla scripts!

PS: All commands should be run from top directory! (I think you understand what I mean)

Here are my two dsc packages (in extras-devel), so compare if your new has same format: http://repository.maemo.org/extras-d...urce/f/fennec/
 

The Following 14 Users Say Thank You to pali For This Useful Post: