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

Re: deb from source



Colin Watson wrote:
On Sat, Aug 30, 2003 at 12:19:42AM +1000, Russell Shaw wrote:

Colin Watson wrote:

That's a ... convoluted (and wrong) way to extract a source package.
Remove that gtk+2.0_2.2.1.orig directory, and try this instead:

dpkg-source -x gtk+2.0_2.2.1-6.dsc

I thought there was an easier way! So i tried:

 ~/SRC/GTK2: dpkg-source -x gtk+2.0_2.2.1-6.dsc

 dpkg-source: extracting gtk+2.0 in gtk+2.0-2.2.1

 ~/SRC/GTK2: ls

gtk+2.0-2.2.1 gtk+2.0_2.2.1-6.diff.gz gtk+2.0_2.2.1-6.dsc gtk+2.0_2.2.1.orig.tar.gz

 ~/SRC/GTK2: dpkg-source -b gtk+2.0-2.2.1

 dpkg-source: building gtk+2.0 using existing gtk+2.0_2.2.1.orig.tar.gz
 dpkg-source: failure: md5sum gave bogus output `'

Should this step generate a .deb file?


No. At this point you should not use dpkg-source, but 'dpkg-buildpackage
-rfakeroot -uc -us' or similar (or debuild from the devscripts package,
which is less typing).

Cheers,

Ok, i started again, but i still get the md5sum error. Could the downloaded
debian package be in error? I've downloaded it twice from the bottom of this
page: http://packages.debian.org/testing/libdevel/libgtk2.0-dbg.html


~/SRC/GTK2: dpkg-source -x gtk+2.0_2.2.1-6.dsc

    dpkg-source: extracting gtk+2.0 in gtk+2.0-2.2.1

~/SRC/GTK2: ls

    gtk+2.0-2.2.1  gtk+2.0_2.2.1-6.diff.gz  gtk+2.0_2.2.1-6.dsc  gtk+2.0_2.2.1.orig.tar.gz

~/SRC/GTK2: cd gtk+2.0-2.2.1

~/SRC/GTK2/gtk+2.0-2.2.1: dpkg-buildpackage -us -uc -rfakeroot

dpkg-buildpackage: source package is gtk+2.0
dpkg-buildpackage: source version is 2.2.1-6
dpkg-buildpackage: source maintainer is Akira TAGOH <tagoh@debian.org>
dpkg-buildpackage: host architecture is i386
 fakeroot debian/rules clean
dh_testdir
sed -e 's/@SONAME@/0/g' -e 's/@VERSION@/2.2.1/g' debian/control.in > debian/control
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
/usr/bin/make -f debian/sys-build.mk source.clean
make[1]: Entering directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1'
make[2]: Entering directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1/debian/scripts'
make[2]: Leaving directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1/debian/scripts'
make[2]: Entering directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1/debian/scripts'
make[2]: Leaving directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1/debian/scripts'
make[1]: Leaving directory `/home/russell/SRC/GTK2/gtk+2.0-2.2.1'
rm -rf build-tree/gtk+-2.2.1-shared
rm -rf build-tree/gtk+-2.2.1-static
rm -rf debian/stampdir
dh_clean
 dpkg-source -b gtk+2.0-2.2.1
dpkg-source: building gtk+2.0 using existing gtk+2.0_2.2.1.orig.tar.gz
dpkg-source: failure: md5sum gave bogus output `'



Reply to: