[cl-debian] Problem when trying to use pdebuild

Hello! I was preparing new updates for my CL packages and I was finally trying to use darcs-buildpackage: previous attempts were bad and as Peter built anyway my packages before upload them, I never set it up until now (I need to experience myself with the Ganneff's dak for the NM queue). To build my packages, I used a script Peter provided me (which I didn't include within this mail because I didn't have Peter's permission), basically it checks some darcs stuff (e.g. if there're pending changes) and takes care of the epoch. It then calls debuild. I'd like to combine this with pdebuild, but I got a strange error (as this isn't a new upstream version, I'm using the already-present .orig.tar.gz): ===== luca@gismo:~/var/lib/debdarcs$ mkdir test && cd test luca@gismo:~/var/lib/debdarcs/test$ apt-get source rfc2388 [...] luca@gismo:~/var/lib/debdarcs/test$ mv rfc2388_1.1.orig.tar.gz ../ luca@gismo:~/var/lib/debdarcs/test$ cd ../rfc2388 luca@gismo:~/var/lib/debdarcs/rfc2388$ pdebuild dpkg-buildpackage: source package is rfc2388 dpkg-buildpackage: source version is 1.1-4 dpkg-buildpackage: source changed by Luca Capello <luca@pca.it> dpkg-buildpackage: source version without epoch 1.1-4 fakeroot debian/rules clean dh_testdir dh_testroot dh_clean dpkg-source -b rfc2388 dpkg-source: warning: source directory `./rfc2388' is not <sourcepackage>-<upstreamversion> `rfc2388-1.1' dpkg-source: warning: .orig directory name rfc2388.orig is not <package>-<upstreamversion> (wanted rfc2388-1.1.orig) dpkg-source: building rfc2388 using existing rfc2388_1.1.orig.tar.gz dpkg-source: building rfc2388 in rfc2388_1.1-4.diff.gz dpkg-source: warning: file _darcs/inventories/20060515225005-f6b0c-6b08fc1550f52db6ed95144a995247e9f329d67b.gz \ has no final newline (either original or modified version) dpkg-source: warning: file _darcs/inventories/20050922132907-fa08e-1f388d3f0a1acdba40d65c07630842012b68fe4a.gz \ has no final newline (either original or modified version) dpkg-source: warning: file _darcs/inventories/20051021141252-f6b0c-48cc11aa6589c3a0e9af491e417ccea91e8e2428.gz \ has no final newline (either original or modified version) dpkg-source: internal error: unknown line from diff -u on \ _darcs/patches/20051014205945-d7bde-3ceacddc99f68ef59d3709cd69597084d18e4054.gz: `Files rfc2388-1.1.orig/_darcs/patches/20051014205945-d7bde-3ceacddc99f68ef59d3709cd69597084d18e4054.gz \ and rfc2388-1.1/_darcs/patches/20051014205945-d7bde-3ceacddc99f68ef59d3709cd69597084d18e4054.gz differ' luca@gismo:~/var/lib/debdarcs/rfc2388$ ===== Now, what is strange is that with a normal debuild this doesn't happen. rfc2388 is not the only case, so the problem isn't specific to that package. If someone wants to try, the updated rfc2388 version is available from the CD-Debian darcs repository [1]. Has anyone experienced the same bug? Is this a pdebuild bug (as I guess) or something else? Thx, bye, Gismo / Luca [1] http://cl-debian.alioth.debian.org/repository/lcapello/rfc2388/

Hello again! On Wed, 26 Jul 2006 03:16:17 +0200, Luca Capello wrote:
I'd like to combine this with pdebuild, but I got a strange error (as this isn't a new upstream version, I'm using the already-present .orig.tar.gz):
I found the error: in my ~/.devscripts I've the following: DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -ICVS -I.svn -I_darcs -tc" Peter's script has something similar: debuild --rootcmd=fakeroot '-i_darcs|CVS|.cvsignore' -ICVS In fact, calling `dpkg-buildpackage' from the rfc2388 folder triggers the same error. Adding the `-i' option solves the problem. Thus adding the following to my ~/.pbuilderrc was the key: DEBBUILDOPTS="-i -ICVS -I.svn -I_darcs -tc" Anyway, my question still remains: is this a real bug or I misunderstood the dpkg-buildpackage documentation? Thx, bye, Gismo / Luca

Alle Wednesday 26 July 2006 03:16, Luca Capello ha scritto:
To build my packages, I used a script Peter provided me (which I didn't include within this mail because I didn't have Peter's permission), basically it checks some darcs stuff (e.g. if there're pending changes) and takes care of the epoch. It then calls debuild.
It can be found at http://cl-debian.alioth.debian.org/repository/pvaneynd/darcs-build.sh Good luck with pbuilder, I never got it to work as I wanted :-( Groetjes, Peter -- signature -at- pvaneynd.mailworks.org http://www.livejournal.com/users/pvaneynd/ "God, root, what is difference?" Pitr | "God is more forgiving." Dave Aronson|

Hello! On Wed, 26 Jul 2006 10:41:46 +0200, Peter Van Eynde wrote:
Good luck with pbuilder, I never got it to work as I wanted :-(
Actually, it works quite well on my Debian, except for the fact that it's not optimized for speed (i.e., it still uses the base.tgz mechanism instead of cowdancer). What I was missing is the automatic lintian and linda checks as debuild, so I hacked the /usr/bin/pdebuild script. About this subject, a bug is already present in the BTS (bug #357066 [1]), so ASAP I'll add there my hacks. Thx, bye, Gismo / Luca Footnotes: [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357066
participants (2)
-
Luca Capello
-
Peter Van Eynde