Re: [MoM] Packaging fis-get
Daily MoM progress report
on packaging: fis-gtm-initial
1) SVN updated my checkout at directory:
debian-med/trunk/packages/fis-gtm
2) Read your svn commits at
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk/debian/
3) cd to directory:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk
4) did command:
make -f debian/rules get-orig-source
thanks to your SVN changes above,
now I get the following output back:
. ./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
The .tar.gz file is placed in the parent directory at:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial
with name:
fis-gtm-initial_54002B.orig.tar.gz
5) Expanded it with command:
tar -xzf *.orig.tar.gz
and now get two new files at:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial/fis-gtm-initial
with names:
gtm_V54002B_linux_i686_pro-i386.tar.gz
gtm_V54002B_linux_x8664_pro-amd64.tar.gz
inspected both with tar -tzf
and since none of them
is creating its own directory yet,
I created directories with their names.
6) Created directories:
mkdir gtm_V54002B_linux_i686_pro-i386
mkdir gtm_V54002B_linux_x8664_pro-amd64
7) Entered the directory of the i386 version
and expanded in there the corresponding
.tar.gz file from the parent directory:
cd gtm_V54002B_linux_i686_pro-i386
tar -xzf ../gtm_V54002B_linux_i686_pro-i386.tar.gz
8) Copy in this code the content of
the "debian" directory.
cp -a ../../trunk/debian/ .
9) Continued with Path (B) instructions
and called "debuild" in that same
directory:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial/fis-gtm-initial/gtm_V54002B_linux_i686_pro-i386
typed the command:
debuild
that returned the message:
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 or gtm_V54002B_linux_i686_pro-i386.orig)
continue anyway? (y/n) n
10) Now go back to instructions on how to
fix the name of the expected version by
using the command "dch -i". To do that
I went back to the directory from which I can
do: "vim debian/changelog"
which is:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial/trunk
and do the command:
dch -i
this opens my editor (vim) as expected,....
and now I'm not quite sure what is it
that I should change here, given that
not of the strings in this file corresponds
to the full expected names:
fis-gtm-initial_54002B.orig.tar.gz
fis-gtm-initial_54002B.orig.tar.bz2,
fis-gtm-initial_54002B.orig.tar.lzma or
gtm_V54002B_linux_i686_pro-i386.orig
are those names composed by the concatenation
of the elements in the first line of the file ?
debian/changelog
that are:
"fis-gtm-initial (54002B-1) UNRELEASED; urgency=low"
....
Somehow,
it looks like this is more a mismatch of directories...
For example, the tar.gz files are in:
./fis-gtm-initial/fis-gtm-initial_54002B.orig.tar.gz
./fis-gtm-initial/fis-gtm-initial/gtm_V54002B_linux_x8664_pro-amd64.tar.gz
./fis-gtm-initial/fis-gtm-initial/gtm_V54002B_linux_i686_pro-i386.tar.gz
So, I tried retracing steps
and going into the directory:
debian-med/trunk/packages/fis-gtm/fis-gtm-initial/fis-gtm-initial
that was created by the first expansion of the .tar.gz file
./fis-gtm-initial/fis-gtm-initial_54002B.orig.tar.gz
Then assuming this to be the "source_directory"
of your original instructions.
In that directory,
I copy the content of the "debian" directory:
cp -a ../trunk/debian .
and attempt to do "debuild" again.
This time I get:
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package fis-gtm-initial
dpkg-buildpackage: source version 54002B-1
dpkg-buildpackage: source changed by Andreas Tille <tille@debian.org>
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 8)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1340:
dpkg-buildpackage -rfakeroot -D -us -uc failed
That looks more promising... :-)
It seems to be lacking "debhelper"
So, I go an try top install it:
sudo apt-get install debhelper
and get:
debhelper is already the newest version
so, I check the version I have, with the command:
dpkg -s debhelper
That returns:
Version: 7.4.15ubuntu1
(I'm doing all this in a Ubuntu 10.04 LTS - Lucid Lynx )
Since "debuild" claims to need version >= 8,
it looks like it is time to try the same sequence
of steps in a more recent installation.
I'm no heading to boot a VM
where I recently installed Ubuntu 11...
Luis
Reply to: