[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [MoM] Packaging fis-get




Andreas,


Here is todays MoM daily report on
packaging fis-gtm-initial.


This time, starting from a shiny new
installation of Debian in a VM.

where the command:

                          uname -a

returns:

Linux debian-med 2.6.32-5-686 #1 SMP Wed Jan 11 12:29:30 UTC 2012 i686 GNU/Linux

and

                    cat /etc/debian_version

returns:

                               6.0.3



Then proceeded to install some packages
that we know we will need:

sudo apt-get install build-essential
sudo apt-get install devscripts
sudo apt-get install subversion
sudo apt-get install ssh

sudo apt-get install apt-file
apt-file update

sudo apt-get install debhelper

calling:

         dpkg -s debhelper

confirms that the Version is:  8.0.0


Then setup SSH keys

       mkdir  ~/.ssh
       chmod 700 ~/.ssh

copied in there the keys-pair that I generated previously:

       luis_ibanez_debian_rsa
       luis_ibanez_debian_rsa.pub


<begin digression>

This key-pair was generated with the command:

        ssh-keygen -t rsa   luis_ibanez_debian_rsa

and using a long passphrase.

The public key was copied in alioth
in a previous iteration in the page:

https://alioth.debian.org/account/editsshkeys.php

<end digression>



Then added a ~/.ssh/config file with the content:

Host svn.debian.org git.debian.org bzr.debian.org hg.debian.org darcs.debian.org arch.debian.org alioth.debian.org
  User luisibanez-guest
  IdentityFile ~/.ssh/luis_ibanez_debian_rsa


created a source directory to checkout debian-med

mkdir ~/src
cd ~/src

checked-out the SVN repository with:

svn co svn+ssh://svn.debian.org/svn/debian-med/

The check out process went smoothly.


Then went into the directory:

    cd debian-med/trunk/packages/fis-gtm/

    cd fis-gtm-initial/trunk


and got the source code with the command:

      make -f debian/rules get-orig-source

That went smoothly, and returned the output:

. ./debian/get-orig-source
check version of software
-- Downloading updated package gtm_V54002B_linux_i686_pro.tar.gz
Filename i386: gtm_V54002B_linux_i686_pro.tar.gz
PKG: fis-gtm-initial
PKGVERSION: 54002B
architecture: i386
-- Downloading updated package gtm_V54002B_linux_x8664_pro.tar.gz
Filename i386: gtm_V54002B_linux_x8664_pro.tar.gz
PKG: fis-gtm-initial
PKGVERSION: 54002B
architecture: amd64

and brought the file:

                 fis-gtm-initial_54002B.orig.tar.gz

into the directory above "trunk":

    debian-med/trunk/packages/fis-gtm/fis-gtm-initial


Now... while staying in the "trunk" directory:

debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk

did:

                 tar -xzf ../*.orig.tar.gz

and end up with subdirectories:

debian
fis-gtm-initial

where "fis-gtm-initial" now contains:

gtm_V54002B_linux_i686_pro-i386.tar.gz
gtm_V54002B_linux_x8664_pro-amd64.tar.gz


Then I copied the content of "debian" into "fis-gtm-initial"

      cp -a   debian   fis-gtm-initial

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


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
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



It seems that there is a mismatch of content in
the .tar.gz files...but I'm probably misinterpreting
the error message...


-------------------------------------------------------------


Summary:


1) The good news:
     Got a brand new Debian installation and
     managed to go through the entire process
     until calling "debuild".


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"




     Thanks


           Luis


Reply to: