Re: [MoM] Packaging fis-get
Hi Luis,
On Tue, Jan 24, 2012 at 05:08:21PM -0500, Luis Ibanez wrote:
> and brought the file:
>
> fis-gtm-initial_54002B.orig.tar.gz
Good.
> and now:
>
> ls -l fis-gtm-initial
>
> returns:
>
> total 19840
> drwxr-xr-x 5 ibanez ibanez 4096 Jan 24 16:27 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 entered that directory
>
> cd fis-gtm-initial
>
> and called:
>
> debuild
This all sounds exactly as intended.
>
> and got the following:
>
>
> 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 <tille@debian.org>
> dpkg-source --before-build trunk
> dpkg-buildpackage: host architecture i386
> fakeroot debian/rules clean
> dh clean
> dh_testdir
> debian/rules override_dh_auto_clean
> make[1]: Entering directory
> `/home/ibanez/src/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk'
> dh_auto_clean
> rm -f debian/defaults.template
> make[1]: Leaving directory
> `/home/ibanez/src/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk'
> dh_clean
> dpkg-source -b trunk
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 <tille@debian.org>
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 \{\} \;
$ debuild
> It seems that there is a mismatch of content in
> the .tar.gz files...but I'm probably misinterpreting
> the error message...
You are correct that the error message lets assume this but I rather
have the feeling that for a reason I do not know that somehow not the
correct orig.tar.gz is found.
> 2) The next step:
> Can use guidance on how to address
> the message:
>
> "cannot represent change to
> trunk/fis-gtm-initial/gtm_V54002B_linux_i686_pro-i386.tar.gz: binary file
> contents changed"
This just should not happen. We try the "open-door-close-door" approach
to make the car running again (as I described above).
Thanks for your patience
Andreas.
--
http://fam-tille.de
Reply to: