Re: Update of my book (was: Advice about first package building (from sources))
On Sun, Sep 21, 2008 at 6:13 AM, martin f krafft <[EMAIL PROTECTED]> wrote: > Nevertheless, in terms of the basics of packages and packaging, not > much has changed. I am going to provide additional information in > a new edition, but you won't waste time by reading the stuff in the > current edition. The one thing I noticed missing was an explanation of packaging fonts using dh_installxfonts, dh_installdefoma, and related debhelper scripts, defoma-hints files, and other font-specific information. But all of that still needs the foundation covered in your book. Paul Hardy GPG Key ID: E6E6E390 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Update of my book (was: Advice about first package building (from sources))
also sprach Paul Hardy <[EMAIL PROTECTED]> [2008.09.21.0432 +0100]: > I also bought a copy of The Debian System, by Martin F. Krafft, > ISBN 1-59327-069-0. […] The book is also dated (it has a DVD of > sarge 3.1r0a in the back and now we're approaching a lenny release > three years later). I should be able to find the time soon to work on a new edition. Nevertheless, in terms of the basics of packages and packaging, not much has changed. I am going to provide additional information in a new edition, but you won't waste time by reading the stuff in the current edition. I don't have an expected release date yet, sorry. -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems for years, we have thought that a million monkeys typing at a million typewriters would eventually produce the complete works of shakespeare. today, thanks to the internet, we know this is not true. digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/)
Re: Advice about first package building (from sources)
Laurent, On Thu, Sep 18, 2008 at 3:54 AM, David Paleino <[EMAIL PROTECTED]> wrote: > On Thu, 18 Sep 2008 10:41:17 + (GMT), Laurent Guignard wrote: > >> > On Wed, 17 Sep 2008 21:01:06 +0200, Laurent Guignard wrote: >> > >> But i would like to learn about how Debian packaging tools are working. > > Well, this is great, but why would you need to build a package on your own, if > that's available via apt-get? :) > >> It is only curiosity to improve my technical skills and observing the >> procedure to submit a package for sponsoring help to understand what files to >> provide, where to upload them, and anything interesting for newbies... It is >> the fearlessness of the youth ! ;) I started putting together my first Debian package just a few months ago so I'm very new at packaging too, but thought I'd mention some things that helped me after reading the required Debian documentation. My sponsor (Anthony Fok) provided invaluable help and insight borne of experience. Before I started working with him though, I did a lot of reading and a fair amount of trial-and-error. If I were starting over again, I would do two things that I didn't do immediately: study how everything in debian/rules works very, very carefully and get Martin Krafft's book. If you want to package using debhelper scripts (which will make your life easier), you could first create a skeleton single binary package with dh_make. After it creates a skeleton, study the debian/rules file that it creates. Then read the man pages for the various debhelper (dh*) commands that it invokes. If you want more detail, read the sources for those debhelper scripts. Finished packages will probably have some of those scripts removed from debian/rules (if a particular package doesn't need to use them), but in the skeleton file you'll see them arranged in their logical order. I also bought a copy of The Debian System, by Martin F. Krafft, ISBN 1-59327-069-0. It goes into very low-level details of building packages, down to using basic Unix utilities such as "ar". It sounds like you want such low-level details. But don't put together a package that way for uploading -- get used to the Debian tools. The book is also dated (it has a DVD of sarge 3.1r0a in the back and now we're approaching a lenny release three years later). Most debhelper scripts are given brief mention. I have not seen another book, web page, etc. go into such low-level detail on Debian packaging. I just checked amazon.fr; you can get the book new from someone other than Amazon there, or order from amazon.fr and get it in 2-4 weeks. You could probably also order from amazon.com, barnesandnoble.com, powells.com, or some other US bookstore/website and have it sent from the US (I don't know how VAT would get handled in that case). I've ordered French books from amazon.fr that weren't listed on amazon.com, and they shipped them to me in the US with no problems. Good luck, and have fun! Paul Hardy GPG Key ID: E6E6E390 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Advice about first package building (from sources)
On Thu, 18 Sep 2008 10:41:17 + (GMT), Laurent Guignard wrote: > > On Wed, 17 Sep 2008 21:01:06 +0200, Laurent Guignard wrote: > > > > I'll build a chroot environment with deboostrap with "unstable". > > I'll have to build the new libnet1 package of David Paleino from all > > files he upload on mentors.debian.net (with Debian unstable dependencies). > > After, I'll can build my package from source. > > > > Didn't I tell you to wait a bit? :) > > Yes you did ! ;) > But i would like to learn about how Debian packaging tools are working. Well, this is great, but why would you need to build a package on your own, if that's available via apt-get? :) > It is only curiosity to improve my technical skills and observing the > procedure to submit a package for sponsoring help to understand what files to > provide, where to upload them, and anything interesting for newbies... It is > the fearlessness of the youth ! ;) Ahahahah :) Don't worry, it'll take a bit, but you'll make perfect packages! > Sorry, i doesn't want to disturb or irritate anyone. You didn't do that! Didn't you notice my :) after the question? :) > > Didn't I tell you to wait a bit? :) ^^ > > The new libnet1, with the applied patches is now in unstable. You don't > > need to get anything from mentors, just do: > > I am fine to hear this. The only thing i have to do now is to build a package > and that will be a great adventure for me ;) Again, sorry for my impatience. Don't worry :) Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Re : [Bulk] Re: Advice about first package building (from sources)
> De : David Paleino <[EMAIL PROTECTED]> > À : debian-mentors@lists.debian.org > Cc : Laurent Guignard <[EMAIL PROTECTED]> > Envoyé le : Jeudi, 18 Septembre 2008, 7h47mn 38s > Objet : Re: [Bulk] Re: Advice about first package building (from sources) > > Hello Laurent, > > On Wed, 17 Sep 2008 21:01:06 +0200, Laurent Guignard wrote: > > I'll build a chroot environment with deboostrap with "unstable". > I'll have to build the new libnet1 package of David Paleino from all > files he upload on mentors.debian.net (with Debian unstable dependencies). > After, I'll can build my package from source. > > Didn't I tell you to wait a bit? :) Yes you did ! ;) But i would like to learn about how Debian packaging tools are working. It is only curiosity to improve my technical skills and observing the procedure to submit a package for sponsoring help to understand what files to provide, where to upload them, and anything interesting for newbies... It is the fearlessness of the youth ! ;) Sorry, i doesn't want to disturb or irritate anyone. > The new libnet1, with the applied patches is now in unstable. You don't need > to > get anything from mentors, just do: > > # apt-get update > # apt-get -t unstable install libnet1 libnet1-dev > > Kindly, > David I am fine to hear this. The only thing i have to do now is to build a package and that will be a great adventure for me ;) Again, sorry for my impatience. This message isn't signed because it come from yahoo mail... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Bulk] Re: Advice about first package building (from sources)
Hello Laurent, On Wed, 17 Sep 2008 21:01:06 +0200, Laurent Guignard wrote: > I'll build a chroot environment with deboostrap with "unstable". > I'll have to build the new libnet1 package of David Paleino from all > files he upload on mentors.debian.net (with Debian unstable dependencies). > After, I'll can build my package from source. Didn't I tell you to wait a bit? :) The new libnet1, with the applied patches is now in unstable. You don't need to get anything from mentors, just do: # apt-get update # apt-get -t unstable install libnet1 libnet1-dev Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 | http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174 signature.asc Description: PGP signature
Re: [Bulk] Re: Advice about first package building (from sources)
Laurent Guignard wrote: > I'll build a chroot environment with deboostrap with "unstable". > I'll have to build the new libnet1 package of David Paleino from all > files he upload on mentors.debian.net (with Debian unstable dependencies). > After, I'll can build my package from source. > > It seems to be the better solution... > > My words "clean" and "stable" means that I have a Debian stable and i > doesn't want to upgrade to testing or unstable, so i need a specific > environment to build package. No, you do not! You need what you already have - the Debian Etch environment. You can, of course make `debootstrap etch` in trying to not pollute your clean 'working' environment with build dependencies, or whatever, but this is not necessary. OTOH, if you build your binary package in Debian Sid enviroment, they could be suitable for Sid (that's the point!), but you have a little chance to install them in Etch due to broken dependecies. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Bulk] Re: Advice about first package building (from sources)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric Lavarde - Debian a écrit : > Hi Laurent, > > Al Nikolov said: >> Laurent Guignard wrote: >> >>> I have read the main documentation about pbuilder but i haven't seen if >>> it is possible to build a package from upstream sources. >>> In all examples, the command is like "pbuilder build ???.dsc" >>> >>> What is the correct method to build a package from upstream sources ? >>> >>> I thought to build a virtual host (KVM), install all packages needed, >>> import all sources (upstream with all files needed to build package) and >>> run the "dpkg-buildpackage" command... >>> >>> All this to keep a clean and stable Debian on my laptop ;) > I fear the answers you got might have been a bit confusing, but it's also > because it's not clear what you mean with keeping a clean and stable > Debian: only install packaged software (nothing by hand), or really not do > anything "out of the normal" (e.g. compiling and packaging) on your > laptop, or both. > > I'm kind of a "both" guy, so: > - I created an unstable CHROOT jail with debootstrap and do all my > packaging in there (as suggested by Neil). For this purpose, KVM, Xen or > any VM is as good, but more heavyweight. > - I check that my packages build correctly with pbuilder (and pbuilder is > really only meant for this). > - Neither pbuilder nor debootstrap will help you to learn Debian > packaging, hence the advice from Al to read > http://www.debian.org/doc/maint-guide/ > > Hope this helps, Eric > > PS: I directed my answer back to you because it was not clear if you are > subscribed to Mentors. > Thanks for all your answers. I'll build a chroot environment with deboostrap with "unstable". I'll have to build the new libnet1 package of David Paleino from all files he upload on mentors.debian.net (with Debian unstable dependencies). After, I'll can build my package from source. It seems to be the better solution... My words "clean" and "stable" means that I have a Debian stable and i doesn't want to upgrade to testing or unstable, so i need a specific environment to build package. Thanks again. - -- Laurent Guignard, Registered as user #301590 with the Linux Counter Site : http://www.famille-guignard.org Blog : http://blog.famille-guignard.org Projet : http://sicontact.sourceforge.net GULL de Villefranche sur Saône : http://www.cagull.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI0VPyjcKpXFc/7oYRAkPFAKCAE3MEphIxoCdpcLoUKuLoaPe0cQCffwxK zfxWiRukeU+gEKqInRm6U4E= =EOwr -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Advice about first package building (from sources)
Hi Laurent, Al Nikolov said: > Laurent Guignard wrote: > >> I have read the main documentation about pbuilder but i haven't seen if >> it is possible to build a package from upstream sources. >> In all examples, the command is like "pbuilder build ???.dsc" >> >> What is the correct method to build a package from upstream sources ? >> >> I thought to build a virtual host (KVM), install all packages needed, >> import all sources (upstream with all files needed to build package) and >> run the "dpkg-buildpackage" command... >> >> All this to keep a clean and stable Debian on my laptop ;) I fear the answers you got might have been a bit confusing, but it's also because it's not clear what you mean with keeping a clean and stable Debian: only install packaged software (nothing by hand), or really not do anything "out of the normal" (e.g. compiling and packaging) on your laptop, or both. I'm kind of a "both" guy, so: - I created an unstable CHROOT jail with debootstrap and do all my packaging in there (as suggested by Neil). For this purpose, KVM, Xen or any VM is as good, but more heavyweight. - I check that my packages build correctly with pbuilder (and pbuilder is really only meant for this). - Neither pbuilder nor debootstrap will help you to learn Debian packaging, hence the advice from Al to read http://www.debian.org/doc/maint-guide/ Hope this helps, Eric PS: I directed my answer back to you because it was not clear if you are subscribed to Mentors. -- Eric de France, d'Allemagne et de Navarre -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Advice about first package building (from sources)
Laurent Guignard wrote: > I have read the main documentation about pbuilder but i haven't seen if > it is possible to build a package from upstream sources. > In all examples, the command is like "pbuilder build ???.dsc" > > What is the correct method to build a package from upstream sources ? > > I thought to build a virtual host (KVM), install all packages needed, > import all sources (upstream with all files needed to build package) and > run the "dpkg-buildpackage" command... > > All this to keep a clean and stable Debian on my laptop ;) > > Is there another method and where can i found documentation ? You do not need pbuilder for your purposes, not even chroots. What you need is to *create* Debian source package using upstream sources. Read more at http://www.debian.org/doc/maint-guide/ Then, you could build and install the binary package you wanted in your own clean and stable Debian environment. After that, you can safely remove all build dependencies. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Advice about first package building (from sources)
On Tue, 16 Sep 2008 21:32:19 +0200 Laurent Guignard <[EMAIL PROTECTED]> wrote: > I have read the main documentation about pbuilder but i haven't seen if > it is possible to build a package from upstream sources. > In all examples, the command is like "pbuilder build ???.dsc" > > What is the correct method to build a package from upstream sources ? $ make dist $ sudo pbuilder create $ sudo pbuilder login In a separate terminal window: $ sudo cp foo-1.2.3.tar.gz /path/to/pbuilder/1234/ Back in the original terminal window (inside the chroot) # tar -xzf foo-1.2.3.tar.gz # apt-get install bar-dev etc. # ./configure # make > All this to keep a clean and stable Debian on my laptop ;) Basically, all you need is to create a static chroot - you could do that with debootstrap instead of pbuilder. Then chroot into that environment and do whatever you need to do to get the source and the dependencies. You can then retain this chroot for later use if you use a simple debootstrap method. You might want to use the common method of putting such chroots in a new /jails/ directory. The entire build tree needs to be duplicated and all dependencies re-installed inside the chroot. It needs quite a large amount of space. The debootstrap itself is usually 180Mb, plus the build tree and all the duplicated build dependencies (including the build tools like autoconf etc.) > Is there another method and where can i found documentation ? $ man debootstrap pbuilder is a convenient wrapper for disposable chroots that is designed for package building. What you want sounds more like a fixed chroot jail and that is best done with debootstrap (in exactly the same way as pbuilder does when you ask it to create a pbuilder .tgz.) -- Neil Williams http://www.linux.codehelp.co.uk pgpWHAOMltzTd.pgp Description: PGP signature
Advice about first package building (from sources)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi mentors, I have read the main documentation about pbuilder but i haven't seen if it is possible to build a package from upstream sources. In all examples, the command is like "pbuilder build ???.dsc" What is the correct method to build a package from upstream sources ? I thought to build a virtual host (KVM), install all packages needed, import all sources (upstream with all files needed to build package) and run the "dpkg-buildpackage" command... All this to keep a clean and stable Debian on my laptop ;) Is there another method and where can i found documentation ? Thanks. - -- Laurent Guignard, Registered as user #301590 with the Linux Counter Site : http://www.famille-guignard.org Blog : http://blog.famille-guignard.org Projet : http://sicontact.sourceforge.net GULL de Villefranche sur Saône : http://www.cagull.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI0AnDjcKpXFc/7oYRArtzAJwOjGDTFeow+S518mrxhJlpNWBwkQCeOWss JiKOsI2Wp4JPIRP8FGLETMA= =hvqh -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]