Moins, Am Montag, den 18.06.2007, 10:56 +0200 schrieb Michael Schroeder:
On Mon, Jun 18, 2007 at 10:45:07AM +0200, Stephan Hermann wrote:
Am Montag, den 18.06.2007, 09:53 +0200 schrieb Michael Schroeder:
"Debtransform" removes those tags.
Well, where do you put them?
In the .dsc file.
Well, yeah. But normally when you create the .dsc file, you just have the debianized source tree and the orig.tar.gz file. You call then dpkg-source -b <debianized source directory> and the .dsc file is created. So, it has to be, before the dpkg-source call, in the debian/control file (normally the .dsc file is signed, so it's a bad idea to add some tags to the already signed .dsc file)
To have some of those tags you normally add them to debian/control. dpkg-source checks the debian/control file, and add some of those tags to the resulting .dsc file.
The build service works a bit different, as it already expects a .dsc file. It needs it to calculate the build dependencies. The control file would also have worked, but it is normally hidden in some big patch...
When you use a normal debian source package with orig.tar.gz and diff.gz, there is already the .dsc file. You could use dpkg-source -x <source>.dsc to create the source tree and use <debianized source dir>/debian/control to parse the build-deps. Even when we use the debian.tar.gz build service way, it would be better to use the control file in there. Building the source package could be done in the changeroot. The question is just, what's the correct way. AFAIU is that you concentrate more on the binary package, but not on the source package. The debian way is cut in half, you have the possibility to do binary "NMU"s ( non-maintainer uploads ) and the ubuntu way is "just doing source uploads". Which way is the best to follow?
(It works like this for rpm, too: you need a spec file for the build, but the build also creates a .src.rpm, which includes the spec file again.)
Well, yes, but for me the source file is tar.gz + .spec file. So therefore for deb it is .diff.gz, .orig.tar.gz and a signed .dsc file. you really don't want to sign "my personal repository" with your distro release gpg key :) Regards, \sh -- Stephan Hermann eMail: sh@sourcecode.de Blog: http://linux.blogweb.de/ JID: sh@linux-server.org OSS-Developer and Admin --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org