Making a deb package

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Feb 21 21:32:25 UTC 2012


Lennart

>
> dpkg-buildpackage gets it from debian/control.

Thank you.  That helped a lot.  I was actually able to get further
after realizing  dpkg-buildpackage and  dpkg-source do not share the
same configuration file.
>
> Not sure where the other part you listed came from.
>
> Also no idea where you got a ubuntu one from.  I only checked that
> the debian package from debian unstable is buildable on debian stable
> with one minor update in packages by getting debhelper from debian
> squeeze-backports.
I got the Ubuntu version from ubuntu 11.10 repository.  This is after
trying the debian source package without success.  I mean, the package
on the debian repository can't install on my system without updating
and installing lots of other packages which is what I was attempting
to avoid.  The whole idea is to have apache 2.2.22 without triggering
a full system upgrade

Now, it seem I have hate some bug from my google search.  The thing is
if I manually create debian/tmp/usr/share/apache2/icons, it complain
it can't clean the tmp directory.  If its not created, it complain the
directory do not exist.

==Pertinent section===
dh_install -O--parallel
cp: cannot stat `debian/tmp/usr/share/apache2/icons': No such file or directory
dh_install: cp -a debian/tmp/usr/share/apache2/icons
debian/apache2.2-common//usr/share/apache2/ returned exit code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

====================

The whole output looked like this:

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 apache2
dpkg-buildpackage: source version 2.2.22-1
dpkg-buildpackage: source changed by Stefan Fritsch <sf-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org>
dpkg-buildpackage: host architecture amd64
 debian/rules clean
dh clean --parallel
   dh_testdir -O--parallel
   debian/rules override_dh_auto_clean
make[1]: Entering directory `/home/ubuntu/apache2-2.2.22'
rm -f support/suexec-custom.c
rm -rf debian/build-tree
rm -rf debian/install-tree
rm -f debian/tmp
make[1]: Leaving directory `/home/ubuntu/apache2-2.2.22'
   debian/rules override_dh_clean
make[1]: Entering directory `/home/ubuntu/apache2-2.2.22'
for f in postinst preinst prerm links dirs ; do \
		rm -f debian/apache2-mpm-worker.$f ;\
	done
rm -f debian/apache2-mpm-worker.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		rm -f debian/apache2-mpm-prefork.$f ;\
	done
rm -f debian/apache2-mpm-prefork.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		rm -f debian/apache2-mpm-event.$f ;\
	done
rm -f debian/apache2-mpm-event.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		rm -f debian/apache2-mpm-itk.$f ;\
	done
rm -f debian/apache2-mpm-itk.lintian-overrides
dh_clean
make[1]: Leaving directory `/home/ubuntu/apache2-2.2.22'
 debian/rules build
make: `build' is up to date.
 debian/rules binary
dh binary --parallel
   dh_testdir -O--parallel
   debian/rules override_dh_auto_configure
make[1]: Entering directory `/home/ubuntu/apache2-2.2.22'
cp support/suexec.c support/suexec-custom.c
patch -p1 < debian/patches/202_suexec-custom
patching file support/suexec-custom.c
for f in postinst preinst prerm links dirs ; do \
		perl -p -e "s/MPMXXX/worker/g" < debian/mpms.$f >
debian/apache2-mpm-worker.$f ;\
	done
perl -p -e "s/^/apache2-mpm-worker: /" < debian/mpms.lintian-overrides
> debian/apache2-mpm-worker.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		perl -p -e "s/MPMXXX/prefork/g" < debian/mpms.$f >
debian/apache2-mpm-prefork.$f ;\
	done
perl -p -e "s/^/apache2-mpm-prefork: /" <
debian/mpms.lintian-overrides >
debian/apache2-mpm-prefork.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		perl -p -e "s/MPMXXX/event/g" < debian/mpms.$f >
debian/apache2-mpm-event.$f ;\
	done
perl -p -e "s/^/apache2-mpm-event: /" < debian/mpms.lintian-overrides
> debian/apache2-mpm-event.lintian-overrides
for f in postinst preinst prerm links dirs ; do \
		perl -p -e "s/MPMXXX/itk/g" < debian/mpms.$f > debian/apache2-mpm-itk.$f ;\
	done
perl -p -e "s/^/apache2-mpm-itk: /" < debian/mpms.lintian-overrides >
debian/apache2-mpm-itk.lintian-overrides
mkdir debian/build-tree
mkdir debian/install-tree
make[1]: Leaving directory `/home/ubuntu/apache2-2.2.22'
   # Skipping dh_auto_build - empty override
   dh_auto_test -O--parallel
   dh_testroot -O--parallel
   dh_prep -O--parallel
   dh_installdirs -O--parallel
   # Skipping dh_auto_install - empty override
   dh_install -O--parallel
cp: cannot stat `debian/tmp/usr/share/apache2/icons': No such file or directory
dh_install: cp -a debian/tmp/usr/share/apache2/icons
debian/apache2.2-common//usr/share/apache2/ returned exit code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

William
>
> --
> Len Sorensen
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list