packagingViking

packaging viking

http://viking.sf.net

Prerequisites

*TODO* list the packages we need http://revu.tauware.de/~laserjock/

Start

cd 
mkdir src
cd src

mkdir viking
cd viking

wget http://downloads.sourceforge.net/viking/viking-0.1.3.tar.gz

tar xvfz viki<TAB>
cd viki<TAB>
dh_make --help
dh_make -e ranfyy@gmail.com -c gpl -f ../viking-0.1.3.tar.gz -s -b 

You need a GPG key for the next step.

gpg --gen-key

create a source package

debuild -S -sa
pbuilder-gutsy build ../*.dsc

I get this error with pbuilder:

config.status: creating viking.spec
config.status: creating src/config.h
config.status: executing depfiles commands
/usr/bin/make -C . 
make[1]: Entering directory `/tmp/buildd/viking-0.1.3'
Making all in src
make[2]: Entering directory `/tmp/buildd/viking-0.1.3/src'
/usr/bin/make  all-recursive
make[3]: Entering directory `/tmp/buildd/viking-0.1.3/src'
Making all in icons
make[4]: Entering directory `/tmp/buildd/viking-0.1.3/src/icons'
gdk-pixbuf-csource --name="`basename addtr_18.png .png`" --struct addtr_18.png > addtr_18.png_h
failed to load "addtr_18.png": Couldn't recognize the image file format for file 'addtr_18.png'
make[4]: *** [addtr_18.png_h] Error 1
make[4]: Leaving directory `/tmp/buildd/viking-0.1.3/src/icons'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/buildd/viking-0.1.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/buildd/viking-0.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/viking-0.1.3'
make: *** [debian/stamp-makefile-build] Error 2
pbuilder: Failed autobuilding of package
 -> Aborting with an error
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//29054 and its subdirectories

What is wrong here?

 $ dpkg -S gdk-pixbuf-csource
 libgtk2.0-dev: /usr/share/man/man1/gdk-pixbuf-csource.1.gz
 libgtk2.0-dev: /usr/bin/gdk-pixbuf-csource

Added to debian/control Build-depends: ", libgtk2.0-dev"

Google for:

failed to load Couldn't recognize the image file format for file

http://lists.freebsd.org/pipermail/freebsd-questions/2005-February/077073.html suggests gdkpixbuf. Searched http://packages.ubuntu.com for it, added "libpngwriter0-dev" to Build-depends: doesn't cut it.

$ pbuilder-gutsy login
# apt-get install libgtk2.0-dev
# cd home/
# gdk-pixbuf-csource --name="`basename addtr_18.png .png`" --struct addtr_18.png
failed to load "addtr_18.png": Couldn't recognize the image file format for file 'addtr_18.png'
# apt-get install libpng12-0
# apt-get install libpng3
# apt-get install libpngwriter
# apt-get source libgtk2.0
# file addtr_18.png
addtr_18.png: PNG image data, 18 x 18, 8-bit/color RGBA, non-interlaced
#
# apt-cache search rgba

I stop here. It "just works" with a feisty pbuilder. No idea why.

dput -lo ../viking_0.1.3-0ubuntu1_source.changes
  • bad-distribution-in-changes-file
  • changelog-should-mention-nmu
  • source-nmu-has-incorrect-version-number

Ranf/packagingViking (last edited 2008-08-06 16:15:04 by localhost)