Your message dated Thu, 26 Apr 2012 21:34:01 +0100
with message-id <1335472441.28116.6.ca...@jacala.jungle.funky-badger.org>
and subject line Re: Bug#670470: mpd: fails to build .deb package with dpkg-deb 
-b
has caused the Debian Bug report #670470,
regarding mpd: fails to build .deb package with dpkg-deb -b
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
670470: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670470
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mpd
Version: 0.16.7-2
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,
I installed and ran mpd from the repositories, but decided I wanted SID
and wildmidi support, so I fetched the source with apt-get source and
recompiled it.  The source compiles, runs, and installs correctly via
"make install", and "checkinstall" creates a working .deb, but "dpkg-deb
-b ." in the working directory fails.  First, it complains about the
lack of a "DEBIAN" directory, but there is a "debian" directory, and
symlinking the two worked.  Second, and this is the meat of the problem,
it complains about errors in the DEBIAN/control file.  Running
"dpkg -I" on the .deb from the repositories showed normal output, so I think 
this is probably due tue a dpkg-deb format change.




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--- End Message ---
--- Begin Message ---
On Wed, 2012-04-25 at 18:38 -0400, Jonathan Lane wrote:
> The source compiles, runs, and installs correctly via
> "make install", and "checkinstall" creates a working .deb, but "dpkg-deb
> -b ." in the working directory fails.  First, it complains about the
> lack of a "DEBIAN" directory, but there is a "debian" directory, and
> symlinking the two worked.

As dpkg-deb(1) explains, -b assumes the DEBIAN directory has already
been created and appropriately populated.  It's not intended to be used
to create binary packages from an unpacked source package, that's what
debian/rules, dpkg-buildpackage etc are for.

> Second, and this is the meat of the problem,
> it complains about errors in the DEBIAN/control file.  Running
> "dpkg -I" on the .deb from the repositories showed normal output, so I think 
> this is probably due tue a dpkg-deb format change.

It's more likely due to the fact that you symlinked debian -> DEBIAN.
debian/control in source packages can contain items such as substitution
variables, which are expanded during the build process; indeed, mpd's
control file contains:

Depends: mpd (= ${binary:Version}), ${misc:Depends}

Running the relevant targets from debian/rules will dtrt.

Regards,

Adam



--- End Message ---

Reply via email to