Making a deb package

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Feb 21 17:24:10 UTC 2012


Hi,

I have a control file that looks like as below:  Notice
"Build-Depends" do not list  debhelper 8 as a requirement?  However,
when I run dpkg-buildpackage -us -uc -b, I get an error that I have an
unmet dependency which happen to be debhelper version 8.  dpkg-source
-x apache2_2.2.22-1ubuntu1.dsc do runs fine.  Where does
dpkg-buildpackage get this information?

Error message:
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 8)
libaprutil1-dev (>= 1.3.4) libapr1-dev libpcre3-dev libssl-dev (>=
0.9.8m) sharutils libcap-dev autoconf hardening-wrapper


Control file:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 3.0 (quilt)
Source: apache2
Binary: apache2.2-common, apache2.2-bin, apache2-mpm-worker,
apache2-mpm-prefork, apache2-mpm-event, apache2-mpm-itk,
apache2-utils, apache2-suexec, apache2-suexec-custom, apache2,
apache2-doc, apache2-prefork-dev, apache2-threaded-dev, apache2-dbg
Architecture: any all
Version: 2.2.22-1ubuntu1
Maintainer: Ubuntu Developers <ubuntu-devel-discuss-nLRlyDuq1AZFpShjVBNYrg at public.gmane.org>
Uploaders: Stefan Fritsch <sf-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org>, Steinar H. Gunderson
<sesse-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org>, Arno Töll <debian-g6fpzBu7Z4BeoWH0uzbU5w at public.gmane.org>
Homepage: http://httpd.apache.org/
Standards-Version: 3.9.2
Vcs-Bzr: http://code.launchpad.net/ubuntu/+source/apache2
Build-Depends: debhelper (>= 7.4.3), dpatch, lsb-release,
libaprutil1-dev (>= 1.3.4), libapr1-dev (>= 1.2.7-6), openssl,
libpcre3-dev, mawk, zlib1g-dev, libssl-dev, sharutils, libcap-dev
[!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], autoconf,
hardening-wrapper
Build-Conflicts: autoconf2.13
Package-List:
 apache2 deb httpd optional
 apache2-dbg deb debug extra
 apache2-doc deb doc optional
 apache2-mpm-event deb httpd optional
 apache2-mpm-itk deb httpd extra
 apache2-mpm-prefork deb httpd optional
 apache2-mpm-worker deb httpd optional
 apache2-prefork-dev deb httpd extra
 apache2-suexec deb httpd optional
 apache2-suexec-custom deb httpd extra
 apache2-threaded-dev deb httpd extra
 apache2-utils deb httpd optional
 apache2.2-bin deb httpd optional
 apache2.2-common deb httpd optional


Regards,

William

On 16 February 2012 14:39, Lennart Sorensen
<lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
> On Thu, Feb 16, 2012 at 12:47:38PM -0500, William Muriithi wrote:
>> I know, thats why I was looking for the current control file in use
>> with the distribution as starting one from scratch would be too
>> involving.
>
> For well behaved source code, debhelper 7+ makes life very easy.
>
> debian/rules can essentially be just:
>
> #!/usr/bin/make -f
> %:
>        dh $@
>
> This is assuming the source code is normal and well behaved.
>
> debian/control needs to list the source package info and at least one
> binary package name (architecture specific or not as needed).
>
> debian/changelog (most conviniently handled using the dch command in
> devscripts) contains the version info and changelog entries for each
> version.
>
> dh_make can generate a basic template package, although I find it rather
> dated in the methods it uses.
>
> The apache2 package is an example of a very complex build that takes
> good advantage of the debhelper 7+ features by letting the defaults
> work when possible and only doing overrides on the steps that have to
> be handled unusually (Not sure if that is a word, but I think it
> should be).
>
> --
> 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