[opensuse-buildservice] Making debian builds easier
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
Hi buildservice fanatics, I've added some code to better integrate debian builds with rpm based builds. As you probably know, debian packages consist of exactly three parts (unless it's an "native debian" package"): - the pristine tarball - a diff file - a dsc file As rpm is much more flexible providing support for multiple patch files, I added some code that autogenerates the debian diff file from plain files, a tar ball, and a set of patches. The generated diff file includes: - all files of the form "debian.*", so you can use a plain "debian.rules" file in the source. - all files from a debian.tar tar file (possibly compressed). It is an error to provide a file both in the tarball and as debian.* file. - all patches from a "debian.series" file, or, if it doesn't exist, a "series" file. This file has the standard "quilt" format, i.e. each line consists of a patch file name and the patch arguments. The diff file generator parses the arguments for "-p" to strip off path components. This allows you to structure your sources identical both for rpm and deb based systems, you can have - the pristine tarball (no need to put .orig in the name, it'll get renamed to the "canonical" debian tar name automatically) - all the patches you need - the series file which provides the patch ordering and naming info - a debian.tar.gz file for things you don't have to touch often - debian.* files for files you often change I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog. Any more suggestions? Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 8, 2007, at 4:32 PM, Michael Schroeder wrote:
Hi buildservice fanatics,
I've added some code to better integrate debian builds with rpm based builds. As you probably know, debian packages consist of exactly three parts (unless it's an "native debian" package"):
- the pristine tarball - a diff file - a dsc file
As rpm is much more flexible providing support for multiple patch files, I added some code that autogenerates the debian diff file from plain files, a tar ball, and a set of patches.
The generated diff file includes:
- all files of the form "debian.*", so you can use a plain "debian.rules" file in the source. - all files from a debian.tar tar file (possibly compressed). It is an error to provide a file both in the tarball and as debian.* file. - all patches from a "debian.series" file, or, if it doesn't exist, a "series" file. This file has the standard "quilt" format, i.e. each line consists of a patch file name and the patch arguments. The diff file generator parses the arguments for "-p" to strip off path components.
This allows you to structure your sources identical both for rpm and deb based systems, you can have
- the pristine tarball (no need to put .orig in the name, it'll get renamed to the "canonical" debian tar name automatically) - all the patches you need - the series file which provides the patch ordering and naming info - a debian.tar.gz file for things you don't have to touch often - debian.* files for files you often change
I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog.
Any more suggestions?
really really awesome! is there a project using this already that one can use as an example? oh, and I heard a rumor that prefixing the distribution to the dsc file (ie. {distro}-{package}.dsc ) might allow us to account for differences^ between ubuntu and debian... do you know anything about this? ^ not all debian packages are available when building for ubuntu -- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Thu, Mar 08, 2007 at 06:42:28PM +0100, Andrew Beekhof wrote:
really really awesome!
is there a project using this already that one can use as an example?
Well, openSUSE:Tools/build uses it, but it doesn't have patches and also uses two changelogs.
oh, and I heard a rumor that prefixing the distribution to the dsc file (ie. {distro}-{package}.dsc ) might allow us to account for differences^ between ubuntu and debian... do you know anything about this?
Yes, this rumor might indeed be true. But you don't prefix with the distro, but with the repository name. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/e1d3f322373a851c42e21dd2264df481.jpg?s=120&d=mm&r=g)
Morning, On Thu, Mar 08, 2007 at 09:18:04PM +0100, Michael Schroeder wrote:
On Thu, Mar 08, 2007 at 06:42:28PM +0100, Andrew Beekhof wrote:
really really awesome!
is there a project using this already that one can use as an example?
Well, openSUSE:Tools/build uses it, but it doesn't have patches and also uses two changelogs.
For some reason, I can't do a local build of this package for Debian Etch (using the latest build.rpm): now finalizing build dir... cp: omitting directory `/suse/poeml/pac/opensuse/openSUSE:Tools/build/debian' package contains more than one tar file: rpm-3.0.6.tar.bz2 binutils-2.12.90.0.15.tar.bz2 openssl-0.9.8c.tar.bz2 lzo-1.08.tar.bz2 popt-1.6.tar.bz2 rsync-2.4.6.tar.gz gcc-3.2.3.tar.bz2 openvpn-1.6.tar.bz2 dpkg-source: error: cannot open .dsc file /usr/src/packages/SOURCES.DEB/*.dsc: No such file or directory ----------------------------------------------------------------- ----- building build.dsc ----------------------------------------------------------------- ----------------------------------------------------------------- stdin: is not a tty -su: line 0: cd: /usr/src/packages/BUILD: No such file or directory Is build.rpm up to date? Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
![](https://seccdn.libravatar.org/avatar/e1d3f322373a851c42e21dd2264df481.jpg?s=120&d=mm&r=g)
On Fri, Mar 09, 2007 at 08:43:53AM +0100, Dr. Peter Poeml wrote:
For some reason, I can't do a local build of this package for Debian Etch (using the latest build.rpm):
now finalizing build dir... cp: omitting directory `/suse/poeml/pac/opensuse/openSUSE:Tools/build/debian' package contains more than one tar file: rpm-3.0.6.tar.bz2 binutils-2.12.90.0.15.tar.bz2 openssl-0.9.8c.tar.bz2 lzo-1.08.tar.bz2 popt-1.6.tar.bz2 rsync-2.4.6.tar.gz gcc-3.2.3.tar.bz2 openvpn-1.6.tar.bz2
I just noticed that those tarballs are files from /usr/src/packages/SOURCES (in the system, not in the build system). There were some places missing $BUILD_ROOT in front of $TOPDIR, and I fixed it in svn. Peter -- SUSE LINUX Products GmbH Bug, bogey, bugbear, bugaboo: Research & Development A malevolent monster (not true?); Some mischief microbic; What makes someone phobic; The work one does not want to do. From: Chris Young (The Omnificent English Dictionary In Limerick Form)
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Fri, Mar 09, 2007 at 09:25:10AM +0100, Dr. Peter Poeml wrote:
On Fri, Mar 09, 2007 at 08:43:53AM +0100, Dr. Peter Poeml wrote:
For some reason, I can't do a local build of this package for Debian Etch (using the latest build.rpm):
now finalizing build dir... cp: omitting directory `/suse/poeml/pac/opensuse/openSUSE:Tools/build/debian' package contains more than one tar file: rpm-3.0.6.tar.bz2 binutils-2.12.90.0.15.tar.bz2 openssl-0.9.8c.tar.bz2 lzo-1.08.tar.bz2 popt-1.6.tar.bz2 rsync-2.4.6.tar.gz gcc-3.2.3.tar.bz2 openvpn-1.6.tar.bz2
I just noticed that those tarballs are files from /usr/src/packages/SOURCES (in the system, not in the build system).
There were some places missing $BUILD_ROOT in front of $TOPDIR, and I fixed it in svn.
Ah, true, bad copy'n'paste from lines that had a chroot $BUILD_ROOT. Thanks! Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/711a876513da240a65d1b0b30bfab9dd.jpg?s=120&d=mm&r=g)
Op donderdag 8 maart 2007 16:32, schreef Michael Schroeder:
I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog.
Any more suggestions?
Definately....let's put on the wiki. Same question as before where to put? Would it be possible to write this in the wiki first and than sent a reply with a reference to the wiki page? -- Richard Bos Without a home the journey is endless --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/711a876513da240a65d1b0b30bfab9dd.jpg?s=120&d=mm&r=g)
Op donderdag 8 maart 2007 20:19, schreef Richard Bos:
Any more suggestions?
Definately....let's put on the wiki.
http://en.opensuse.org/Build_Service/Deb_builds -- Richard Bos Without a home the journey is endless --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/6b2ec66c6a7057e2d6744b539e7f8dda.jpg?s=120&d=mm&r=g)
On Fri, 9 Mar 2007, Richard Bos wrote:
Op donderdag 8 maart 2007 20:19, schreef Richard Bos:
Any more suggestions?
Definately....let's put on the wiki.
I wikified this text and removed I and You's from it. Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
some questions below... On Mar 8, 2007, at 4:32 PM, Michael Schroeder wrote:
Hi buildservice fanatics,
I've added some code to better integrate debian builds with rpm based builds.
is this functionality available for local builds with osc?
As you probably know, debian packages consist of exactly three parts (unless it's an "native debian" package"):
- the pristine tarball - a diff file - a dsc file
As rpm is much more flexible providing support for multiple patch files, I added some code that autogenerates the debian diff file from plain files, a tar ball, and a set of patches.
The generated diff file includes:
- all files of the form "debian.*", so you can use a plain "debian.rules" file in the source.
a small clarification, debian.{X} should be contain the complete contents that you want to be in debian/{X} it is copied directly to debian/{X}
- all files from a debian.tar tar file (possibly compressed). It is an error to provide a file both in the tarball and as debian.* file. - all patches from a "debian.series" file, or, if it doesn't exist, a "series" file. This file has the standard "quilt" format, i.e. each line consists of a patch file name and the patch arguments. The diff file generator parses the arguments for "-p" to strip off path components.
This allows you to structure your sources identical both for rpm and deb based systems, you can have
- the pristine tarball (no need to put .orig in the name, it'll get renamed to the "canonical" debian tar name automatically) - all the patches you need - the series file which provides the patch ordering and naming info - a debian.tar.gz file for things you don't have to touch often - debian.* files for files you often change
I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog.
i'm getting: processing specfile /home/beekhof/suse/server:ha-clustering/heartbeat/ heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian' is that normal? or am i doing something thats not yet supported?
Any more suggestions?
Cheers, Michael.
-- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 13, 2007, at 12:57 PM, Andrew Beekhof wrote:
some questions below...
On Mar 8, 2007, at 4:32 PM, Michael Schroeder wrote:
Hi buildservice fanatics,
I've added some code to better integrate debian builds with rpm based builds.
is this functionality available for local builds with osc?
ignore this question, i wrote part of this email before i started experimenting (answer: it is, you just need the updated build rpms)
As you probably know, debian packages consist of exactly three parts (unless it's an "native debian" package"):
- the pristine tarball - a diff file - a dsc file
As rpm is much more flexible providing support for multiple patch files, I added some code that autogenerates the debian diff file from plain files, a tar ball, and a set of patches.
The generated diff file includes:
- all files of the form "debian.*", so you can use a plain "debian.rules" file in the source.
a small clarification, debian.{X} should be contain the complete contents that you want to be in debian/{X} it is copied directly to debian/{X}
- all files from a debian.tar tar file (possibly compressed). It is an error to provide a file both in the tarball and as debian.* file. - all patches from a "debian.series" file, or, if it doesn't exist, a "series" file. This file has the standard "quilt" format, i.e. each line consists of a patch file name and the patch arguments. The diff file generator parses the arguments for "-p" to strip off path components.
This allows you to structure your sources identical both for rpm and deb based systems, you can have
- the pristine tarball (no need to put .orig in the name, it'll get renamed to the "canonical" debian tar name automatically) - all the patches you need - the series file which provides the patch ordering and naming info - a debian.tar.gz file for things you don't have to touch often - debian.* files for files you often change
I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog.
i'm getting:
processing specfile /home/beekhof/suse/server:ha-clustering/ heartbeat/heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian'
is that normal? or am i doing something thats not yet supported?
Any more suggestions?
Cheers, Michael.
-- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice +unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 13, 2007, at 12:57 PM, Andrew Beekhof wrote:
some questions below...
On Mar 8, 2007, at 4:32 PM, Michael Schroeder wrote:
Hi buildservice fanatics,
I've added some code to better integrate debian builds with rpm based builds. As you probably know, debian packages consist of exactly three parts (unless it's an "native debian" package"):
- the pristine tarball - a diff file - a dsc file
As rpm is much more flexible providing support for multiple patch files, I added some code that autogenerates the debian diff file from plain files, a tar ball, and a set of patches.
The generated diff file includes:
- all files of the form "debian.*", so you can use a plain "debian.rules" file in the source.
a small clarification, debian.{X} should be contain the complete contents that you want to be in debian/{X} it is copied directly to debian/{X}
- all files from a debian.tar tar file (possibly compressed). It is an error to provide a file both in the tarball and as debian.* file. - all patches from a "debian.series" file, or, if it doesn't exist, a "series" file. This file has the standard "quilt" format, i.e. each line consists of a patch file name and the patch arguments. The diff file generator parses the arguments for "-p" to strip off path components.
i've also managed to now get this error: dpkg-source: warning: extracting unsigned source package (/usr/src/ packages/SOURCES.DEB/heartbeat_2.0.9-1.dsc) dpkg-source: error: diff patches file /usr/src/packages/BUILD.orig/ Makefile.am twice is this a bug or a limitation? (I'm also at a loss to locate the mentioned heartbeat_2.0.9-1.dsc which doesnt seem to be in the build-root or my regular filesystem)
This allows you to structure your sources identical both for rpm and deb based systems, you can have
- the pristine tarball (no need to put .orig in the name, it'll get renamed to the "canonical" debian tar name automatically) - all the patches you need - the series file which provides the patch ordering and naming info - a debian.tar.gz file for things you don't have to touch often - debian.* files for files you often change
I also changed the changelog converter so that it understands the debian format, so you no longer need to keep two files up to date. Just make the debian change log the .changes file of the package, the converter automatically uses it as debian/changelog in the diff as long as there is no other changelog.
i'm getting:
processing specfile /home/beekhof/suse/server:ha-clustering/ heartbeat/heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian'
is that normal? or am i doing something thats not yet supported?
Any more suggestions?
Cheers, Michael.
-- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice +unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Tue, Mar 13, 2007 at 01:19:48PM +0100, Andrew Beekhof wrote:
i've also managed to now get this error:
dpkg-source: warning: extracting unsigned source package (/usr/src/ packages/SOURCES.DEB/heartbeat_2.0.9-1.dsc) dpkg-source: error: diff patches file /usr/src/packages/BUILD.orig/ Makefile.am twice
Hmm, do you have a patch twice in the series file? If you run a local "osc" build you can check the diff file in <root>/usr/src/packages/SOURCES.DEB
is this a bug or a limitation?
(I'm also at a loss to locate the mentioned heartbeat_2.0.9-1.dsc which doesnt seem to be in the build-root or my regular filesystem)
Well, I'm renaming the tar/dsc file to some "canonical" debian names, i.e. <pack name>_<version>.dsc and <pack name>_<version>.orig.tar... Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 13, 2007, at 1:28 PM, Michael Schroeder wrote:
On Tue, Mar 13, 2007 at 01:19:48PM +0100, Andrew Beekhof wrote:
i've also managed to now get this error:
dpkg-source: warning: extracting unsigned source package (/usr/src/ packages/SOURCES.DEB/heartbeat_2.0.9-1.dsc) dpkg-source: error: diff patches file /usr/src/packages/BUILD.orig/ Makefile.am twice
Hmm, do you have a patch twice in the series file?
no
If you run a local "osc" build you can check the diff file in <root>/usr/src/packages/SOURCES.DEB
there is no directory with that name in the build root or anywhere else. could it be being cleaned up after an error?
is this a bug or a limitation?
(I'm also at a loss to locate the mentioned heartbeat_2.0.9-1.dsc which doesnt seem to be in the build-root or my regular filesystem)
Well, I'm renaming the tar/dsc file to some "canonical" debian names, i.e. <pack name>_<version>.dsc and <pack name>_<version>.orig.tar...
understood, but i cant actually find it anywhere -- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 13, 2007, at 1:55 PM, Andrew Beekhof wrote:
On Mar 13, 2007, at 1:28 PM, Michael Schroeder wrote:
On Tue, Mar 13, 2007 at 01:19:48PM +0100, Andrew Beekhof wrote:
i've also managed to now get this error:
dpkg-source: warning: extracting unsigned source package (/usr/ src/ packages/SOURCES.DEB/heartbeat_2.0.9-1.dsc) dpkg-source: error: diff patches file /usr/src/packages/ BUILD.orig/ Makefile.am twice
Hmm, do you have a patch twice in the series file?
no
it was flattening the file locations, i had to add -p0 to all the entries in the series file
If you run a local "osc" build you can check the diff file in <root>/usr/src/packages/SOURCES.DEB
there is no directory with that name in the build root or anywhere else. could it be being cleaned up after an error?
i think build:748 should be removed it certainly makes debugging harder :-)
is this a bug or a limitation?
(I'm also at a loss to locate the mentioned heartbeat_2.0.9-1.dsc which doesnt seem to be in the build-root or my regular filesystem)
Well, I'm renaming the tar/dsc file to some "canonical" debian names, i.e. <pack name>_<version>.dsc and <pack name>_<version>.orig.tar...
understood, but i cant actually find it anywhere
ignore
-- Andrew Beekhof
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice +help@opensuse.org
-- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Tue, Mar 13, 2007 at 02:13:38PM +0100, Andrew Beekhof wrote:
it was flattening the file locations, i had to add -p0 to all the entries in the series file
Yes, quilt uses '-p1' if there is no -p option.
If you run a local "osc" build you can check the diff file in <root>/usr/src/packages/SOURCES.DEB
there is no directory with that name in the build root or anywhere else. could it be being cleaned up after an error?
i think build:748 should be removed it certainly makes debugging harder :-)
True. Deleted. (It's 728 actually.) Thanks, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Tue, Mar 13, 2007 at 12:57:14PM +0100, Andrew Beekhof wrote:
i'm getting:
processing specfile /home/beekhof/suse/server:ha-clustering/heartbeat/ heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian'
is that normal? or am i doing something thats not yet supported?
It's normal, I can't convert suse style changelogs into deb format, because the version information is missing. The message just means that you have to - either switch to a debian style .changes file, - or provide both the suse sytle .changes and a debian/changelog via "debian.changelog" or in a debian.tar.gz file. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/337520223ba14bcf154e954912eb1489.jpg?s=120&d=mm&r=g)
On Mar 13, 2007, at 1:25 PM, Michael Schroeder wrote:
On Tue, Mar 13, 2007 at 12:57:14PM +0100, Andrew Beekhof wrote:
i'm getting:
processing specfile /home/beekhof/suse/server:ha-clustering/ heartbeat/ heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian'
is that normal? or am i doing something thats not yet supported?
It's normal, I can't convert suse style changelogs into deb format, because the version information is missing.
fair enough
The message just means that you have to - either switch to a debian style .changes file, - or provide both the suse sytle .changes and a debian/changelog via "debian.changelog" or in a debian.tar.gz file.
what would you suggest? is there a clear path forward or is this all still up in the air? -- Andrew Beekhof SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Tue, Mar 13, 2007 at 02:19:41PM +0100, Andrew Beekhof wrote:
On Mar 13, 2007, at 1:25 PM, Michael Schroeder wrote:
On Tue, Mar 13, 2007 at 12:57:14PM +0100, Andrew Beekhof wrote:
i'm getting:
processing specfile /home/beekhof/suse/server:ha-clustering/ heartbeat/ heartbeat_2.0.9.dsc... running changelog2spec --target debian --file /home/beekhof/suse/ server:ha-clustering/heartbeat/heartbeat_2.0.9.dsc don't know how to convert changelog to format 'debian'
is that normal? or am i doing something thats not yet supported?
It's normal, I can't convert suse style changelogs into deb format, because the version information is missing.
fair enough
The message just means that you have to - either switch to a debian style .changes file, - or provide both the suse sytle .changes and a debian/changelog via "debian.changelog" or in a debian.tar.gz file.
what would you suggest? is there a clear path forward or is this all still up in the air?
No, it's a real choice. If you dont mind keeping two files up-to-date, it's perfectly ok to have both .changes and debian.changelog. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Andrew Beekhof
-
Dirk Stoecker
-
Dr. Peter Poeml
-
Michael Schroeder
-
Richard Bos