I tried applying the debdiff, and it failed. I'm following the instructions from https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff, and here's the output (it looks like a few of the patches are failing). This is on an amd64 machine running hardy.
$ apt-get source python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'zsi' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/python-modules/packages/zsi/trunk/
Need to get 817kB of source archives.
Get:1 http://us.archive.ubuntu.com hardy/universe zsi 2.0-2ubuntu4 (dsc) [1028B]
Get:2 http://us.archive.ubuntu.com hardy/universe zsi 2.0-2ubuntu4 (tar) [806kB]
Get:3 http://us.archive.ubuntu.com hardy/universe zsi 2.0-2ubuntu4 (diff) [9729B]
Fetched 817kB in 2s (407kB/s)
gpg: Signature made Wed 09 Apr 2008 09:26:35 AM MDT using DSA key ID 0F932C9C
gpg: Can't check signature: public key not found
dpkg-source: extracting zsi in zsi-2.0
dpkg-source: unpacking zsi_2.0.orig.tar.gz
dpkg-source: applying ./zsi_2.0-2ubuntu4.diff.gz
$ sudo apt-get build-dep python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ cd zsi-2.0 && patch -p1 <../zsi_2.1~a1-1ubuntu1.debdiff
patching file debian/control
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file debian/control.rej
patching file debian/changelog
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 39 with fuzz 2 (offset -8 lines).
Hunk #3 succeeded at 178 (offset -8 lines).
Hunk #4 succeeded at 222 (offset -8 lines).
1 out of 4 hunks FAILED -- saving rejects to file debian/changelog.rej
patching file debian/patches/00list
patching file ZSI/wstools/Namespaces.py
patching file ZSI/wstools/c14n.py
patching file ZSI/wstools/Utility.py
Hunk #1 succeeded at 15 with fuzz 1.
patching file ZSI/TC.py
patching file ZSI/__init__.py
patching file test/test_t4.py
patching file test/test_t5.py
patching file debian/patches/import-oldxml.dpatch
$ debuild -uc -us
fakeroot debian/rules clean
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
test -x debian/rules
dh_testroot
dh_clean
/usr/bin/make -f debian/rules reverse-config
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
make[1]: Entering directory `/home/cscheid/downloads/python-zsi/zsi-2.0'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/home/cscheid/downloads/python-zsi/zsi-2.0'
dpatch deapply-all
import-oldxml not applied to ./ .
no-setuptools not applied to ./ .
bogus-shebang-remove not applied to ./ .
rm -rf debian/patched
rm -f debian/stamp-patched
cd . && python setup.py clean -a
running clean
'build/lib' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.5' does not exist -- can't clean it
rm -f python-build-stamp-*
find . -name '*.pyc' -exec rm '{}' ';'
dpkg-source -b zsi-2.0
dpkg-source: building zsi using existing zsi_2.0.orig.tar.gz
dpkg-source: building zsi in zsi_2.0-2ubuntu4.diff.gz
dpkg-source: warning: executable mode 0755 of 'debian/patches/import-oldxml.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/bogus-shebang-remove.dpatch' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/patches/no-setuptools.dpatch' will not be represented in diff
dpkg-source: building zsi in zsi_2.0-2ubuntu4.dsc
debian/rules build
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
test -x debian/rules
mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
make[1]: Entering directory `/home/cscheid/downloads/python-zsi/zsi-2.0'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/home/cscheid/downloads/python-zsi/zsi-2.0'
dpatch apply-all
applying patch bogus-shebang-remove to ./ ... ok.
applying patch no-setuptools to ./ ... ok.
applying patch import-oldxml to ./ ... failed.
make: *** [debian/stamp-patched] Error 1
debuild: fatal error at line 1247:
debian/rules build failed
I'm pretty new to this debdiff business, so I might have messed up somewhere. However, that error message is not particularly helpful: at what file did debuild fail, and why?
I tried applying the debdiff, and it failed. I'm following the instructions from https:/ /wiki.ubuntu. com/UbuntuPacka gingGuide/ BuildFromDebdif f, and here's the output (it looks like a few of the patches are failing). This is on an amd64 machine running hardy.
$ wget http:// launchpadlibrar ian.net/ 15060786/ zsi_2.1% 7Ea1-1ubuntu1. debdiff launchpadlibrar ian.net/ 15060786/ zsi_2.1% 7Ea1-1ubuntu1. debdiff 1~a1-1ubuntu1. debdiff' ian.net. .. 91.189.90.235 ian.net| 91.189. 90.235| :80... connected.
--14:19:55-- http://
=> `zsi_2.
Resolving launchpadlibrar
Connecting to launchpadlibrar
HTTP request sent, awaiting response... 200 OK
Length: 10,058 (9.8K) [text/plain]
100%[== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==>] 10,058 58.82K/s
14:19:56 (58.71 KB/s) - `zsi_2. 1~a1-1ubuntu1. debdiff' saved [10058/10058]
$ apt-get source python-zsi debian. org/python- modules/ packages/ zsi/trunk/ us.archive. ubuntu. com hardy/universe zsi 2.0-2ubuntu4 (dsc) [1028B] us.archive. ubuntu. com hardy/universe zsi 2.0-2ubuntu4 (tar) [806kB] us.archive. ubuntu. com hardy/universe zsi 2.0-2ubuntu4 (diff) [9729B] 0-2ubuntu4. diff.gz
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'zsi' packaging is maintained in the 'Svn' version control system at:
svn://svn.
Need to get 817kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 817kB in 2s (407kB/s)
gpg: Signature made Wed 09 Apr 2008 09:26:35 AM MDT using DSA key ID 0F932C9C
gpg: Can't check signature: public key not found
dpkg-source: extracting zsi in zsi-2.0
dpkg-source: unpacking zsi_2.0.orig.tar.gz
dpkg-source: applying ./zsi_2.
$ sudo apt-get build-dep python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ cd zsi-2.0 && patch -p1 <../zsi_ 2.1~a1- 1ubuntu1. debdiff changelog. rej patches/ 00list Namespaces. py Utility. py patches/ import- oldxml. dpatch
patching file debian/control
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file debian/control.rej
patching file debian/changelog
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 39 with fuzz 2 (offset -8 lines).
Hunk #3 succeeded at 178 (offset -8 lines).
Hunk #4 succeeded at 222 (offset -8 lines).
1 out of 4 hunks FAILED -- saving rejects to file debian/
patching file debian/
patching file ZSI/wstools/
patching file ZSI/wstools/c14n.py
patching file ZSI/wstools/
Hunk #1 succeeded at 15 with fuzz 1.
patching file ZSI/TC.py
patching file ZSI/__init__.py
patching file test/test_t4.py
patching file test/test_t5.py
patching file debian/
$ debuild -uc -us cscheid/ downloads/ python- zsi/zsi- 2.0' cscheid/ downloads/ python- zsi/zsi- 2.0' remove not applied to ./ . stamp-patched bdist.linux- x86_64' does not exist -- can't clean it build-stamp- * 2ubuntu4. diff.gz patches/ import- oldxml. dpatch' will not be represented in diff patches/ bogus-shebang- remove. dpatch' will not be represented in diff patches/ no-setuptools. dpatch' will not be represented in diff 2ubuntu4. dsc cscheid/ downloads/ python- zsi/zsi- 2.0' cscheid/ downloads/ python- zsi/zsi- 2.0' remove to ./ ... ok. stamp-patched] Error 1
fakeroot debian/rules clean
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
test -x debian/rules
dh_testroot
dh_clean
/usr/bin/make -f debian/rules reverse-config
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
make[1]: Entering directory `/home/
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/home/
dpatch deapply-all
import-oldxml not applied to ./ .
no-setuptools not applied to ./ .
bogus-shebang-
rm -rf debian/patched
rm -f debian/
cd . && python setup.py clean -a
running clean
'build/lib' does not exist -- can't clean it
'build/
'build/scripts-2.5' does not exist -- can't clean it
rm -f python-
find . -name '*.pyc' -exec rm '{}' ';'
dpkg-source -b zsi-2.0
dpkg-source: building zsi using existing zsi_2.0.orig.tar.gz
dpkg-source: building zsi in zsi_2.0-
dpkg-source: warning: executable mode 0755 of 'debian/
dpkg-source: warning: executable mode 0755 of 'debian/
dpkg-source: warning: executable mode 0755 of 'debian/
dpkg-source: building zsi in zsi_2.0-
debian/rules build
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
test -x debian/rules
mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
pyversions: missing XS-Python-Version in control file, fall back to debian/pyversions
make[1]: Entering directory `/home/
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/home/
dpatch apply-all
applying patch bogus-shebang-
applying patch no-setuptools to ./ ... ok.
applying patch import-oldxml to ./ ... failed.
make: *** [debian/
debuild: fatal error at line 1247:
debian/rules build failed
I'm pretty new to this debdiff business, so I might have messed up somewhere. However, that error message is not particularly helpful: at what file did debuild fail, and why?
Let me know if you need any more help.