Debian Bug report logs - #506956
dpkg-cross does not handle links to .pc files

version graph

Package: dpkg-cross; Maintainer for dpkg-cross is Debian Embedded Group <>; Source for dpkg-cross is src:dpkg-cross.

Reported by: Marco Amadori <>

Date: Wed, 26 Nov 2008 11:42:06 UTC

Severity: normal

Found in version 2.3.3

Fixed in version dpkg-cross/2.4.0

Done: Neil Williams <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian Embedded Group <>:
Bug#506956; Package dpkg-cross. (Wed, 26 Nov 2008 11:42:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marco Amadori <>:
New Bug report received and forwarded. Copy sent to Debian Embedded Group <>. (Wed, 26 Nov 2008 11:42:09 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Marco Amadori <>
Subject: dpkg-cross does not handle links to .pc files
Date: Wed, 26 Nov 2008 12:39:30 +0100
Package: dpkg-cross
Version: 2.3.3

As subject says, if the original package has a .pc symbolic link, the 
resulting -cross package does not provide it, this could result in a 
unsatisfied compilation dependence.

e.g. :

$ dpkg --contents libpng12-dev_1.2.27-2_mipsel.deb | grep pc
-rw-r--r-- root/root       218 2008-10-04 
13:56 ./usr/lib/pkgconfig/libpng12.pc
lrwxrwxrwx root/root         0 2008-10-04 
13:56 ./usr/lib/pkgconfig/libpng.pc -> libpng12.pc

$ dpkg --contents libpng12-dev-mipsel-cross_1.2.27-2_all.deb | grep pc
-rw-r--r-- root/root       235 2008-11-26 
12:25 ./usr/mipsel-linux-gnu/lib/pkgconfig/libpng12.pc

So after installation of the above package example, the target system will do 
not have the required "/usr/mipsel-linux-gnu/lib/pkgconfig/libpng.pc" file 
(symlink) in place.

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Information forwarded to, Debian Embedded Group <>:
Bug#506956; Package dpkg-cross. (Fri, 26 Dec 2008 11:48:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <>:
Extra info received and forwarded to list. Copy sent to Debian Embedded Group <>. (Fri, 26 Dec 2008 11:48:08 GMT) Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Neil Williams <>
Subject: Allow an exception for pkgconfig symlinks
Date: Fri, 26 Dec 2008 11:43:30 +0000
[Message part 1 (text/plain, inline)]
Package: dpkg-cross
tag 506956 + pending

This came about as a result of the fix for #499292 so I'm allowing a
specific exception for pkgconfig files:

Index: dpkg-cross
RCS file: /cvsroot/dpkg-cross/dpkg-cross/dpkg-cross,v
retrieving revision 1.65
diff -p -u -b -B -r1.65 dpkg-cross
--- dpkg-cross	21 Nov 2008 10:04:41 -0000	1.65
+++ dpkg-cross	26 Dec 2008 11:38:45 -0000
@@ -912,7 +912,8 @@ sub sub_build {
 		# skip links to private modules and plugins that are not
 		# useful or packaged in the -cross package, basically anything
 		# in a directory beneath /usr/lib/. See #499292
-		next if ($lv =~ m:$crosslib/.*/:);
+		# except pkgconfig symlinks, see #506956
+		next if (($lv =~ m:$crosslib/.*/:) and ($lv !~ m:$crosslib/pkgconfig/:));
 		$lv =~ m:$crosslib/(.*)$:;
 		print "Creating symlink $_ -> $1\n" if ($verbose >= 2);


Neil Williams

[Message part 2 (application/pgp-signature, inline)]

Tags added: pending Request was from Neil Williams <> to (Fri, 26 Dec 2008 11:48:09 GMT) Full text and rfc822 format available.

Reply sent to Neil Williams <>:
You have taken responsibility. (Sun, 15 Feb 2009 14:18:28 GMT) Full text and rfc822 format available.

Notification sent to Marco Amadori <>:
Bug acknowledged by developer. (Sun, 15 Feb 2009 14:18:28 GMT) Full text and rfc822 format available.

Message #17 received at (full text, mbox):

From: Neil Williams <>
Subject: Bug#506956: fixed in dpkg-cross 2.4.0
Date: Sun, 15 Feb 2009 13:59:24 +0000
Source: dpkg-cross
Source-Version: 2.4.0

We believe that the bug you reported is fixed in the latest version of
dpkg-cross, which is due to be installed in the Debian FTP archive:

  to pool/main/d/dpkg-cross/dpkg-cross_2.4.0.dsc
  to pool/main/d/dpkg-cross/dpkg-cross_2.4.0.tar.gz
  to pool/main/d/dpkg-cross/dpkg-cross_2.4.0_all.deb
  to pool/main/d/dpkg-cross/libdebian-dpkgcross-perl_2.4.0_all.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Neil Williams <> (supplier of updated dpkg-cross package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA1

Format: 1.8
Date: Sun, 15 Feb 2009 11:25:46 +0000
Source: dpkg-cross
Binary: dpkg-cross libdebian-dpkgcross-perl
Architecture: source all
Version: 2.4.0
Distribution: unstable
Urgency: low
Maintainer: Debian Embedded Group <>
Changed-By: Neil Williams <>
 dpkg-cross - tools for cross compiling Debian packages
 libdebian-dpkgcross-perl - functions to aid cross-compiling Debian packages
Closes: 447427 493180 499292 506229 506956 513203 514249 514604
 dpkg-cross (2.4.0) unstable; urgency=low
   * Merge Emdebian releases into Debian.
   * Remove dependencies on outdated -dcv1 compatibility packages,
     retain Provides for now. (Closes: #514249)
 dpkg-cross (2.3.6) unstable; urgency=low
   * Fix cache support for packages with unusual AC_INIT calls.
   * Add cache support for mipsel.
 dpkg-cross (2.3.5) unstable; urgency=low
   * [INTL:es] Spanish debconf template translation for dpkg-cross
     (Closes: #514604)
   * Implement support for package-specific cache values using CONFIG_SITE
     and /etc/dpkg-cross/cross-config.d/$arch support. (Closes: #493180)
 dpkg-cross (2.3.4) unstable; urgency=low
   * Fix "dpkg-cross fails to provide correct .pc for libpthread-stubs0-
     dev" by marking pkgconfig files in /usr/share/ as 'useful'.
     (Closes: #506229)
   * Allow an exception so that dpkg-cross can handle symlinks to
     pkgconfig files. (Closes: #506956)
   * Debian/ :Add a note to endiannes function that dpkg-
     cross needs to be installed as well as the perl module in order for
     the function to retrieve the endianness data.
   * Add missing cache values for findutils to allow findutils to remove
     the cache file. (Closes: #513203)
 dpkg-cross (2.3.3) unstable; urgency=low
   * Migrate gccross to emdebian-tools
   *  + to aid migration of dpkg-cross into dpkg and dpkg-dev
   *  + to retain gccross support until all packages are fixed
   *  + to implement support for marking all packages using gccross as
   * drop buildcross which is now implemented inside emdebuild if
     '[X-]Build-Cross-Libtool: yes' is used in debian/xcontrol
   * dpkg-cross : migrate manpage content to POD for compatibility with
   * migrate default options into the module instead of the conffile
   * check for and remove dangling symlinks (Closes: #499292) by
     stopping the creation of symlinks for files that are not
   * remove obsolete files from CVS and source tarball
   * using pod2man, so drop docbook-to-man build-depends
   * Improve error checking in case  value really is undefined
   * Add dynamic archtable settings to make it easier to support uClibc
     permutations: please support wrong architecture (Closes: #447427)
   * dpkg-cross : Remove cairo hack and finish simplifying the regexp
     lines to remove unnecessary escape characters.
   * debian/rules: final tweak to update from i18n update, clean up
     module man page
 dpkg-cross (2.3.2) unstable; urgency=low
   * Support package-specific cache values
   * config/cross-config.arm config/cross-config.armel : load the global
     variables before the previous values to retain the architecture-
     dependent values
   * config/cross-config.cache : drop orbit data (specialized support
     elsewhere) and reorganise blocks alphabetically
   * dpkg-cross : Implement support for generated cache data in
     /etc/dpkg-cross/cross-config.d/ and architecture-dependent sub
   * config/cross-config.cache : wrap cache values in package and
     package_name conditionals. Restrict loading of files in
     /etc/dpkg-cross/cross-config.d/ to files matching the package_name
     variable assigned within ./configure.
   * dpkg-cross : Support installing cmake files in -dev packages.
   * Adapt the experimental CMake example file for (hopefully) different
     Linux architectures
   * Add a few CMake tips to the dpkg-cross manpage
 dpkg-cross (2.3.1) unstable; urgency=low
   * Support collected cache values for system-wide comparisons
 f59caff76c01420b6553ac3d43a9210020474ceb 1223 dpkg-cross_2.4.0.dsc
 f5c1d37fec5c40f457c4c3ef2fa6ecc5d4cffc03 73460 dpkg-cross_2.4.0.tar.gz
 2a672b2cd9761f4e1f69181e43c764987952a589 50356 dpkg-cross_2.4.0_all.deb
 c7ca74a045e4f16da668d93f3bac8ba54fd78a1e 32918 libdebian-dpkgcross-perl_2.4.0_all.deb
 f78769677f00f88076360d531a579d5418f644e2dc1bbf709f92c4caf739f46b 1223 dpkg-cross_2.4.0.dsc
 04240bac9c74eff2d8189fe1c43fa0a0b8db1152901035c73e6b78739108303b 73460 dpkg-cross_2.4.0.tar.gz
 1e544fc008b02ec2a49fd06fe884ae69d5c67a8288a64dbeb39c5b4629a3b0ce 50356 dpkg-cross_2.4.0_all.deb
 73427b798ac560776b80413acf6d38c2607550d4eff9d642b0c83a06ce34e6db 32918 libdebian-dpkgcross-perl_2.4.0_all.deb
 553387c5146e86fa5dda3e4275719bd4 1223 utils extra dpkg-cross_2.4.0.dsc
 6fefb3522eee6cc2ecbb4c1a2e07ed85 73460 utils extra dpkg-cross_2.4.0.tar.gz
 45a4cc048975bf52f7cb05a00e3a707d 50356 utils extra dpkg-cross_2.4.0_all.deb
 486eb96b50c2d888ed8d705ba8ffae4e 32918 perl extra libdebian-dpkgcross-perl_2.4.0_all.deb

Version: GnuPG v1.4.9 (GNU/Linux)


Bug archived. Request was from Debbugs Internal Request <> to (Mon, 16 Mar 2009 09:21:06 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Mon Apr 21 12:28:41 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.