Making a deb package

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Feb 22 16:09:39 UTC 2012


On Tue, Feb 21, 2012 at 04:32:25PM -0500, William Muriithi wrote:
> 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.
>
> 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

I built the apache 2.2.22 debian package on a debian stable system.
Other than getting debhelper from backports, that was all that was needed
to build it.  I now tried installing the resulting packages, and they
installed fine and work as far as I can tell.  It served up a web page
for me.

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

I believe that was fixed by using debhelper from backports.

The only change I did to get it to compile was to install debhelper from
backports and then edit:

diff -urN apache2-2.2.22/debian/rules apache2-2.2.22.fixed/debian/rules
--- apache2-2.2.22/debian/rules 2012-01-30 16:42:39.000000000 -0500
+++ apache2-2.2.22.fixed/debian/rules   2012-02-16 11:57:41.000000000 -0500
@@ -270,7 +270,7 @@
 
 override_dh_strip:
        dh_strip --dbg-package=apache2-dbg -Napache2-dbg -Xusr/lib/apache2/mpm
-       set -e \
+       set -e; \
        if [ "$(LSB_RELEASE)" != "Ubuntu" ] && [ -n "$(DEB_BUILD_STRIP)" ] ; then \
                for i in $(MPMS); do \
                        MPM=usr/lib/apache2/mpm-$$i/apache2 ;\

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





More information about the Legacy mailing list