On Tue, Jan 24, 2012 at 5:53 PM, Andreas Tille <[email protected]> wrote:
> Hi Luis, > > ... > > Until here everything is normal, but this "trunk" is not normal at all! > You should get > > dpkg-buildpackage -rfakeroot -D -us -uc > dpkg-buildpackage: source package fis-gtm-initial > dpkg-buildpackage: source version 54002B-1 > dpkg-buildpackage: source changed by Andreas Tille <[email protected]> > dpkg-source --before-build fis-gtm-initial > dpkg-buildpackage: host architecture amd64 > fakeroot debian/rules clean > dh clean > dh_testdir > debian/rules override_dh_auto_clean > make[1]: Entering directory > `/home/andreas/debian-maintain/repack/fis-gtm/initial/54002B-1/fis-gtm-initial' > dh_auto_clean > rm -f debian/defaults.template > make[1]: Leaving directory > `/home/andreas/debian-maintain/repack/fis-gtm/initial/54002B-1/fis-gtm-initial' > dh_clean > dpkg-source -b fis-gtm-initial > dpkg-source: info: using source format `3.0 (quilt)' > dpkg-source: info: building fis-gtm-initial using existing > ./fis-gtm-initial_54002B.orig.tar.gz > dpkg-source: info: building fis-gtm-initial in > fis-gtm-initial_54002B-1.debian.tar.gz > dpkg-source: info: building fis-gtm-initial in fis-gtm-initial_54002B-1.dsc > debian/rules build > > > See the difference in `dpkg-source -b` call(s)? > > You can reinspect the messages in the file called *.build in the > directory below (where your orig.tar.gz resides). That's pretty > unusual (and has nothing to do with fis-gtm specifics. > > > dpkg-source: info: using source format `3.0 (quilt)' > > dpkg-source: info: building fis-gtm-initial using existing > ./fis-gtm-initial_54002B.orig.tar.gz > > dpkg-source: error: cannot represent change to > > trunk/fis-gtm-initial/gtm_V54002B_linux_i686_pro-i386.tar.gz: binary file > > contents changed > > dpkg-source: error: add > > fis-gtm-initial/gtm_V54002B_linux_i686_pro-i386.tar.gz in > > debian/source/include-binaries if you want to store the modified binary > in > > the debian tarball > > dpkg-source: error: cannot represent change to > > trunk/fis-gtm-initial/gtm_V54002B_linux_x8664_pro-amd64.tar.gz: binary > file > > contents changed > > dpkg-source: error: add > > fis-gtm-initial/gtm_V54002B_linux_x8664_pro-amd64.tar.gz in > > debian/source/include-binaries if you want to store the modified binary > in > > the debian tarball > > dpkg-source: warning: executable mode 0755 of > > 'fis-gtm-initial/debian/rules' will not be represented in diff > > dpkg-source: warning: ignoring deletion of file > > gtm_V54002B_linux_i686_pro-i386.tar.gz > > dpkg-source: warning: ignoring deletion of file > > gtm_V54002B_linux_x8664_pro-amd64.tar.gz > > dpkg-source: error: unrepresentable changes to source > > dpkg-buildpackage: error: dpkg-source -b trunk gave error exit status 2 > > debuild: fatal error at line 1325: > > dpkg-buildpackage -rfakeroot -D -us -uc failed > > I have no really good explanation what to do and can not reproduce, but > lets try the following. > > $ mkdir /tmp/fis-gtm-initial_build > $ cp -a fis-gtm-initial_54002B.orig.tar.gz /tmp/fis-gtm-initial_build > $ cd /tmp/fis-gtm-initial_build > $ tar -xzf fis-gtm-initial_54002B.orig.tar.gz > $ cp -a > /home/ibanez/src/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk/debian > . > $ find . -name .svn -type d -exec rm -rf \{\} \; > Ok, I followed these steps. no output to show so far, except for this one: ibanez@debian-med:/tmp/fis-gtm-initial_build$ find . -name .svn -type d -exec rm -rf \{\} \; find: `./debian/.svn': No such file or directory find: `./debian/po/.svn': No such file or directory find: `./debian/source/.svn': No such file or directory Then, at this point I'm in the directory /tmp/fis-gtm-initial_build where "ls -l" returns: total 19564 drwxr-xr-x 4 ibanez ibanez 4096 Jan 24 18:18 debian drwxr-xr-x 2 ibanez ibanez 4096 Jan 24 16:39 fis-gtm-initial -rw-r--r-- 1 ibanez ibanez 20000473 Jan 24 18:17 fis-gtm-initial_54002B.orig.tar.gz and when doing "debuild", I get: This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; (expected one of fis-gtm-initial_54002B.orig.tar.gz, fis-gtm-initial_54002B.orig.tar.bz2, fis-gtm-initial_54002B.orig.tar.lzma, fis-gtm-initial_54002B.orig.tar.xz or fis-gtm-initial_build.orig) continue anyway? (y/n) The message seems to indicate that I should be one directory below the location of the file: fis-gtm-initial_54002B.orig.tar.gz so, as a wild guess I go into: /tmp/fis-gtm-initial_build/fis-gtm-initial then do "debuild" in there, and get: debuild: found debian/changelog for package fis-gtm-initial in the directory /tmp/fis-gtm-initial_build but this directory name does not match the package name according to the regex PACKAGE(-.+)?. To run debuild on this package, see the --check-dirname-level and --check-dirname-regex options; run debuild --help for more info. being stubborn, I copy the debian directory here: cp -a ../debian/ . and try "debuild" again, and then some sort of Happiness follows :-) dpkg-buildpackage -rfakeroot -D -us -uc dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package fis-gtm-initial dpkg-buildpackage: source version 54002B-1 dpkg-buildpackage: source changed by Andreas Tille <[email protected]> dpkg-source --before-build fis-gtm-initial dpkg-buildpackage: host architecture i386 fakeroot debian/rules clean dh clean dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_auto_clean rm -f debian/defaults.template make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_clean dpkg-source -b fis-gtm-initial dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building fis-gtm-initial using existing ./fis-gtm-initial_54002B.orig.tar.gz dpkg-source: info: building fis-gtm-initial in fis-gtm-initial_54002B-1.debian.tar.gz dpkg-source: info: building fis-gtm-initial in fis-gtm-initial_54002B-1.dsc debian/rules build dh build dh_testdir debian/rules override_dh_auto_configure make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' echo "do not configure anything in this step" do not configure anything in this step make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_auto_build dh_auto_test fakeroot debian/rules binary dh binary dh_testroot dh_prep dh_installdirs debian/rules override_dh_auto_install make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' # that's a pretty complex way to copy the gtm tarball to a certain dir - let's rather do this directly # cat debian/install.template > debian/install # echo "/usr/lib/fis-gtm" >> debian/install mkdir -p debian/fis-gtm-initial//usr/lib/fis-gtm/distribution # Considering that there are two distinct tarballs in the original tarball copying both into the # target binary deb is just wrong - wee need to grep for the right architecture as well cp -a `ls -1 | grep -v debian | grep i386` debian/fis-gtm-initial//usr/lib/fis-gtm/distribution cat debian/defaults.template.template |\ sed "s?RRRRR?/usr/lib/fis-gtm?g" |\ sed "s/VVVVV/54002B/g" > debian/defaults.template make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_install dh_installdocs dh_installchangelogs dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_pysupport dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_bugfiles dh_lintian dh_gconf dh_icons dh_perl dh_usrlocal dh_link dh_compress dh_fixperms dh_strip dh_makeshlibs dh_shlibdeps dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package `fis-gtm-initial' in `../fis-gtm-initial_54002B-1_i386.deb'. dpkg-genchanges >../fis-gtm-initial_54002B-1_i386.changes dpkg-genchanges: including full source code in upload dpkg-source --after-build fis-gtm-initial dpkg-buildpackage: full upload (original source is included) Now running lintian... W: fis-gtm-initial source: newer-standards-version 3.9.2 (current is 3.9.1) Finished running lintian. Now signing changes and any dsc files... signfile fis-gtm-initial_54002B-1.dsc Andreas Tille <[email protected]> gpg: keyring `/home/ibanez/.gnupg/secring.gpg' created gpg: keyring `/home/ibanez/.gnupg/pubring.gpg' created gpg: skipped "Andreas Tille <[email protected]>": secret key not available gpg: /tmp/debsign.MBn96VZG/fis-gtm-initial_54002B-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting.... debuild: fatal error at line 1246: running debsign failed I guess that all these messages are good news, and that the error at the end is simply due to some specific keys being required for that step. ----- Summary, Retracing the steps, it looks like the one below is the process that works for me in this new installation: mkdir /tmp/fis-gtm-initial_build cd /tmp/fis-gtm-initial_build cp /home/ibanez/src/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/fis-gtm-initial_54002B.orig.tar.gz . tar -xzf fis-gtm-initial_54002B.orig.tar.gz cd fis-gtm-initial/ cp -a /home/ibanez/src/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk/debian/ . at this point "pwd" returns: /tmp/fis-gtm-initial_build/fis-gtm-initial and "ls -l" returns: total 19840 drwxr-xr-x 5 ibanez ibanez 4096 Jan 24 16:57 debian -rw-r--r-- 1 ibanez ibanez 10024159 Jan 24 16:39 gtm_V54002B_linux_i686_pro-i386.tar.gz -rw-r--r-- 1 ibanez ibanez 10251995 Jan 24 16:39 gtm_V54002B_linux_x8664_pro-amd64.tar.gz Then I do "debuild" and get: dpkg-buildpackage -rfakeroot -D -us -uc dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package fis-gtm-initial dpkg-buildpackage: source version 54002B-1 dpkg-buildpackage: source changed by Andreas Tille <[email protected]> dpkg-source --before-build fis-gtm-initial dpkg-buildpackage: host architecture i386 fakeroot debian/rules clean dh clean dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_auto_clean rm -f debian/defaults.template make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_clean dpkg-source -b fis-gtm-initial dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building fis-gtm-initial using existing ./fis-gtm-initial_54002B.orig.tar.gz dpkg-source: info: building fis-gtm-initial in fis-gtm-initial_54002B-1.debian.tar.gz dpkg-source: info: building fis-gtm-initial in fis-gtm-initial_54002B-1.dsc debian/rules build dh build dh_testdir debian/rules override_dh_auto_configure make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' echo "do not configure anything in this step" do not configure anything in this step make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_auto_build dh_auto_test fakeroot debian/rules binary dh binary dh_testroot dh_prep dh_installdirs debian/rules override_dh_auto_install make[1]: Entering directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' # that's a pretty complex way to copy the gtm tarball to a certain dir - let's rather do this directly # cat debian/install.template > debian/install # echo "/usr/lib/fis-gtm" >> debian/install mkdir -p debian/fis-gtm-initial//usr/lib/fis-gtm/distribution # Considering that there are two distinct tarballs in the original tarball copying both into the # target binary deb is just wrong - wee need to grep for the right architecture as well cp -a `ls -1 | grep -v debian | grep i386` debian/fis-gtm-initial//usr/lib/fis-gtm/distribution cat debian/defaults.template.template |\ sed "s?RRRRR?/usr/lib/fis-gtm?g" |\ sed "s/VVVVV/54002B/g" > debian/defaults.template make[1]: Leaving directory `/tmp/fis-gtm-initial_build/fis-gtm-initial' dh_install dh_installdocs dh_installchangelogs dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_pysupport dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_bugfiles dh_lintian dh_gconf dh_icons dh_perl dh_usrlocal dh_link dh_compress dh_fixperms dh_strip dh_makeshlibs dh_shlibdeps dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package `fis-gtm-initial' in `../fis-gtm-initial_54002B-1_i386.deb'. dpkg-genchanges >../fis-gtm-initial_54002B-1_i386.changes dpkg-genchanges: including full source code in upload dpkg-source --after-build fis-gtm-initial dpkg-buildpackage: full upload (original source is included) Now running lintian... W: fis-gtm-initial source: newer-standards-version 3.9.2 (current is 3.9.1) Finished running lintian. Now signing changes and any dsc files... signfile fis-gtm-initial_54002B-1.dsc Andreas Tille <[email protected]> gpg: skipped "Andreas Tille <[email protected]>": secret key not available gpg: /tmp/debsign.elh7rtXS/fis-gtm-initial_54002B-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting.... debuild: fatal error at line 1246: running debsign failed ---- I hope this is not too verbose for a report. Thanks Luis

