About control files
Hello! I'm reading the Policy Manual so I can correct any errors I have in my control file before sending my program to Lucas Wall, that had accepted to be my sponsor. Reading this URL: http://www.debian.org/doc/debian-policy/ch-controlfields.html ...I see that the source package control file must be in "debian/control", and the binary control file must be in "DEBIAN/control"...am I right? they are different directories? I didn't knew that. Regards, -- Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED] LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar GnuPG Public Key: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0x6AA54FC9 Key fingerprint = BD3B 08C4 661A 8C3B 1855 740C 8F98 3FCF 6AA5 4FC9 signature.asc Description: OpenPGP digital signature
Re: About control files
Hi, DEBIAN/control is automatically generated during package building and is used by the resulting .deb debian/control is the one you write yourself, with Descriptions and Build-Depends and stuff. Hope this clarifies things for you :) Lawrence Lucas Di Pentima wrote: Hello! I'm reading the Policy Manual so I can correct any errors I have in my control file before sending my program to Lucas Wall, that had accepted to be my sponsor. Reading this URL: http://www.debian.org/doc/debian-policy/ch-controlfields.html ...I see that the source package control file must be in "debian/control", and the binary control file must be in "DEBIAN/control"...am I right? they are different directories? I didn't knew that. Regards, -- Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED] LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar GnuPG Public Key: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0x6AA54FC9 Key fingerprint = BD3B 08C4 661A 8C3B 1855 740C 8F98 3FCF 6AA5 4FC9 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: About control files
On 03/17/2005 12:59 PM, Lucas Di Pentima wrote: Hello! I'm reading the Policy Manual so I can correct any errors I have in my control file before sending my program to Lucas Wall, that had accepted to be my sponsor. Reading this URL: http://www.debian.org/doc/debian-policy/ch-controlfields.html ...I see that the source package control file must be in "debian/control", and the binary control file must be in "DEBIAN/control"...am I right? they are different directories? I didn't knew that. The binary control file is built from your source control file when you compile your source package into a binary package. Check the directory /debian//DEBIAN ( may be tmp, or something else, if you are building a multi-binary package) after you build your package (and before you do a clean). Or extract the control.tar.gz file from the deb file using ar[1]. K. [1] man deb -- Lucas Wall <[EMAIL PROTECTED]> .''`. Buenos Aires, Argentina: :ø : Debian GNU/Linux http://www.kadath.com.ar `. `' http://www.debian.org PGP: 1024D/84FB46D6 `- 5D25 528A 83AB 489B 356Ahttp://people.debian.org/~lwall 4087 BC9B 4733 84FB 46D6mailto:[EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature
Re: About control files
On Thu, Mar 17, 2005 at 12:59:40PM -0300, Lucas Di Pentima wrote: > Hello! > > I'm reading the Policy Manual so I can correct any errors I have in my > control file before sending my program to Lucas Wall, that had accepted > to be my sponsor. > > Reading this URL: > > http://www.debian.org/doc/debian-policy/ch-controlfields.html > > ...I see that the source package control file must be in > "debian/control", and the binary control file must be in > "DEBIAN/control"...am I right? they are different directories? I didn't > knew that. Right. The source control file ./debian/control is the one that you modify. ./DEBIAN/control is created by dpkg-gencontrol *from* the data in the source control file. One change that you will notice is if the source control has Architecture: any (this package may be built for any architecture). In that case, the *binary* control file will have a specific Architecture: line.(i386 if built on that machine, etc.) Justin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: About control files
Lucas Di Pentima a écrit : I see that the source package control file must be in "debian/control", and the binary control file must be in "DEBIAN/control"...am I right? they are different directories? I didn't knew that. that DEBIAN directory is the one generated in a binary package, where the only part in debian/control relevant to this package will be copied. Said differently, debian/control contains the source package control, then all the binary controls that will be copied in their respective temporary tree before generating the deb archive. -- Hervé Cauwelier http://www.oursours.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: About control files
also sprach Justin Pryzby <[EMAIL PROTECTED]> [2005.03.17.1713 +0100]: > Right. The source control file ./debian/control is the one that you > modify. ./DEBIAN/control is created by dpkg-gencontrol *from* the > data in the source control file. ... and the changelog file. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' :proud Debian developer, admin, user, and author `. `'` `- Debian - when you have better things to do than fixing a system Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver! signature.asc Description: Digital signature
Re: About control files
Lucas Wall <[EMAIL PROTECTED]> schrieb: > On 03/17/2005 12:59 PM, Lucas Di Pentima wrote: >> Hello! >> I'm reading the Policy Manual so I can correct any errors I have in >> my >> control file before sending my program to Lucas Wall, that had accepted >> to be my sponsor. >> Reading this URL: >> http://www.debian.org/doc/debian-policy/ch-controlfields.html >> ...I see that the source package control file must be in >> "debian/control", and the binary control file must be in >> "DEBIAN/control"...am I right? they are different directories? I didn't >> knew that. > > The binary control file is built from your source control file when > you compile your source package into a binary package. ... if you use dh_gencontrol(1), or invoke dpkg-gencontrol manually. Of course a package can also be created along mkdir tmp cp whatnot/ tmp/ mkdir tmp/DEBIAN cat >tmp/DEBIAN/control type whatever you like Ctrl-D dpkg-deb -b tmp (you can even use tar and ar instead of dpkg-deb) Regards, Frank -- Frank Küster Inst. f. Biochemie der Univ. Zürich Debian Developer
Re: About control files
Thanks all of you that answered my question :-) I'm finishing some details so Lucas Wall can check out my new package! Regards, Lawrence Williams wrote, On 17/03/05 13:12: Hi, DEBIAN/control is automatically generated during package building and is used by the resulting .deb debian/control is the one you write yourself, with Descriptions and Build-Depends and stuff. -- Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED] LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar GnuPG Public Key: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0x6AA54FC9 Key fingerprint = BD3B 08C4 661A 8C3B 1855 740C 8F98 3FCF 6AA5 4FC9 signature.asc Description: OpenPGP digital signature
Building packages using tar and ar (was: About control files)
Hello! On Thu, Mar 17, 2005 at 06:05:14PM +0100, Frank Küster wrote: > [...] > ... if you use dh_gencontrol(1), or invoke dpkg-gencontrol manually. Of > course a package can also be created along > > mkdir tmp > cp whatnot/ tmp/ > mkdir tmp/DEBIAN > cat >tmp/DEBIAN/control > type whatever you like > Ctrl-D > dpkg-deb -b tmp > > (you can even use tar and ar instead of dpkg-deb) ^^ BSD ar, and not GNU ar as shipped by Debian, that is; see #222701 and #161593 for details, AFAIK the problems mentioned there still apply. Cheers, Flo signature.asc Description: Digital signature