Debian Bug report logs - #623484
dpkg-cross doesn't detect libs not directly under /usr/lib

Package: dpkg-cross; Maintainer for dpkg-cross is Debian Embedded Group <debian-embedded@lists.debian.org>; Source for dpkg-cross is src:dpkg-cross.

Reported by: Andre Kostur <akostur@incognito.com>

Date: Wed, 20 Apr 2011 17:09:05 UTC

Severity: normal

Tags: moreinfo

Done: Neil Williams <codehelp@debian.org>

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-bugs-dist@lists.debian.org, Debian Embedded Group <debian-embedded@lists.debian.org>:
Bug#623484; Package dpkg-cross. (Wed, 20 Apr 2011 17:09:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andre Kostur <akostur@incognito.com>:
New Bug report received and forwarded. Copy sent to Debian Embedded Group <debian-embedded@lists.debian.org>. (Wed, 20 Apr 2011 17:09:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Andre Kostur <akostur@incognito.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg-cross doesn't detect libs not directly under /usr/lib
Date: Wed, 20 Apr 2011 10:02:26 -0700
Package: dpkg-cross
Version: 2.5.8
Severity: normal

Certain packages have libraries that exist in a subdirectory under /usr/lib.
dpkg-cross fails to detect these as valid libs to include.  A specific example
is libaxis2c0_1.6.0-1_amd64.deb.   I'm trying to repackage this for use on
an i686 machine.  This package supplies a set of shared
objects under /usr/lib/axis2/lib.  However, running dpkg-cross against this
package results in "package libaxis2c0 doesn't provide any useful files.
Skipping."

Perhaps dpkg-cross should either be able to find libraries in subdirectories
of /usr/lib, or the user could supply additional paths to look for libs?

-- Package-specific info:
-- /etc/dpkg-cross/cross-compile --
#
# /etc/dpkg-cross/cross-compile: configuration for dpkg-cross
#
# default architecture for dpkg-cross (to avoid always typing the -a option
# if you do cross installations only for one architecture)
# Note: default_arch is managed by debconf - it can be overridden
# if ~/.dpkg-cross/cross-compile exists or by specifying an
# architecture on the command line.
# Use '[sudo] dpkg-reconfigure dpkg-cross' to change this value.
#default_arch =
# All subsequent variables may be removed (and/or become
# unsupported) at any time.
#
# general section: paths of cross compiling environment
#
# you can set the following variables here:
#  crossprefix: prefix for cross compiling binaries; default:
$(DEB_HOST_GNU_SYSTEM)-
#  crossbase  : base prefix for the following; default: /usr
#  crossdir   : base directory for architecture; default:
#               $(CROSSBASE)/$(DEB_HOST_GNU_TYPE)
#  crossbin   : dir for binaries; default: $(CROSSDIR)/bin
#  crosslib   : dir for libraries; default: $(CROSSDIR)/lib
#  crossinc   : dir for headers; default: $(CROSSDIR)/include
#  maintainer : maintainer name to pass to original dpkg-buildpackage
#               in -m option. If not set at all, don't pass a -m, thus
#               dpkg-buildpackage will use the name from the changelog
#               file. If set to the special string CURRENTUSER,
#               dpkg-buildpackage will use the name from the
#               changelog, too, but signing the .changes will be done
#               as the current user (default key).
#  removedeps : comma-separated list of package names that should be removed
#               from depends/conflicts/etc fields
#  keepdeps   : comma-separated list of package names that should be kept
#               in depends/conflicts/etc fields as is, without adding
#               -arch-cross.
#
# In preparation for merging dpkg-cross into dpkg, the previous
# defaults have been removed.
-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages dpkg-cross depends on:
ii  binutils-multiarch            2.20.1-16  Binary utilities that support mult
ii  debconf [debconf-2.0]         1.5.36.1   Debian configuration management sy
ii  dpkg-dev                      1.15.8.10  Debian package development tools
ii  libconfig-auto-perl           0.20-2     Magical config file parser
ii  libdebian-dpkgcross-perl      2.5.8      functions to aid cross-compiling D
ii  perl                          5.10.1-17  Larry Wall's Practical Extraction
Versions of packages dpkg-cross recommends:
ii  fakeroot                      1.14.4-1   Gives a fake root environment
dpkg-cross suggests no packages.
-- debconf information:
  dpkg-cross/default-arch: None




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Embedded Group <debian-embedded@lists.debian.org>:
Bug#623484; Package dpkg-cross. (Thu, 21 Apr 2011 07:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian Embedded <debian-embedded@lists.debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Embedded Group <debian-embedded@lists.debian.org>. (Thu, 21 Apr 2011 07:45:04 GMT) Full text and rfc822 format available.

Message #10 received at 623484@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: Debian Embedded <debian-embedded@lists.debian.org>
Cc: 623484@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#623484: dpkg-cross doesn't detect libs not directly under /usr/lib
Date: Thu, 21 Apr 2011 08:42:25 +0100
[Message part 1 (text/plain, inline)]
tag 623484 + moreinfo
notfound 623484 2.5.8
quit

On Wed, 20 Apr 2011 10:02:26 -0700
Andre Kostur <akostur@incognito.com> wrote:

> Certain packages have libraries that exist in a subdirectory under /usr/lib.

Those, according to the FHS, are for plugins which - by definition -
are not useful to a cross-build because third party code cannot link
directly against plugins.

> dpkg-cross fails to detect these as valid libs to include.  A specific example

This is correct.

> is libaxis2c0_1.6.0-1_amd64.deb.   I'm trying to repackage this for use on
> an i686 machine.  This package supplies a set of shared
> objects under /usr/lib/axis2/lib.  However, running dpkg-cross against this

Those directories are for plugins. If those files are actually used when
building against that package, this is a bug in the package NOT
dpkg-cross.

> package results in "package libaxis2c0 doesn't provide any useful files.
> Skipping."
> 
> Perhaps dpkg-cross should either be able to find libraries in subdirectories
> of /usr/lib, or the user could supply additional paths to look for libs?

No. dpkg-cross is correctly ignoring plugins. Please confirm that this
is either a bug in the libaxis package or that these files are actually
not necessary for the build.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

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

Added tag(s) moreinfo. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Thu, 21 Apr 2011 07:45:05 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions dpkg-cross/2.5.8. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Thu, 21 Apr 2011 07:45:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Embedded Group <debian-embedded@lists.debian.org>:
Bug#623484; Package dpkg-cross. (Thu, 28 Apr 2011 22:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wookey <wookey@wookware.org>:
Extra info received and forwarded to list. Copy sent to Debian Embedded Group <debian-embedded@lists.debian.org>. (Thu, 28 Apr 2011 22:42:03 GMT) Full text and rfc822 format available.

Message #19 received at 623484@bugs.debian.org (full text, mbox):

From: Wookey <wookey@wookware.org>
To: debian-embedded@lists.debian.org
Cc: 623484@bugs.debian.org
Subject: Re: Bug#623484: dpkg-cross doesn't detect libs not directly under /usr/lib
Date: Thu, 28 Apr 2011 23:39:49 +0100
+++ Andre Kostur [2011-04-20 10:02 -0700]:
> Package: dpkg-cross
> Version: 2.5.8
> Severity: normal
> 
> Certain packages have libraries that exist in a subdirectory under /usr/lib.
> dpkg-cross fails to detect these as valid libs to include.  A specific example
> is libaxis2c0_1.6.0-1_amd64.deb.   I'm trying to repackage this for use on
> an i686 machine.  This package supplies a set of shared
> objects under /usr/lib/axis2/lib.  However, running dpkg-cross against this
> package results in "package libaxis2c0 doesn't provide any useful files.
> Skipping."
> 
> Perhaps dpkg-cross should either be able to find libraries in subdirectories
> of /usr/lib, or the user could supply additional paths to look for libs?

dpkg-cross deliberately ignores everything in subdirs under /usr/lib
unless it is known to be necessary for cross-compiling. Are the shared
objects in /usr/lib/axis2/lib necessary for cross building? There is
not some top-level library that external packages should be linking
against which loads those libs? (This latter is the assumption
dpkg-cross's current behaviour rests on - exceptions would have to
justify themselves).

The difficulty of just allowing it to convert anything that looks like
a library in /usr/lib/*/ is that that makes an enormous number of
packages which we could previously ignore have -cross versions. And
almost all of them _are_ useless.

We could have a specific exception list of packages/dirs that should
be converted, but we've been trying to avoid that.

Still if those files really _are_ needed then we have to find a way to
make it work, by moving them, or deciding that dpkg-cross _should_
deal with them (or waiting for multiarch-cross functionality to make
dpkg-cross's conversion behaviour irrelevant - how much of a hurry are
you in?)

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/




Reply sent to Neil Williams <codehelp@debian.org>:
You have taken responsibility. (Sun, 17 Jul 2011 15:09:06 GMT) Full text and rfc822 format available.

Notification sent to Andre Kostur <akostur@incognito.com>:
Bug acknowledged by developer. (Sun, 17 Jul 2011 15:09:06 GMT) Full text and rfc822 format available.

Message #24 received at 623484-done@bugs.debian.org (full text, mbox):

From: Neil Williams <codehelp@debian.org>
To: 623484-done@bugs.debian.org
Subject: no information forthcoming
Date: Sun, 17 Jul 2011 16:07:06 +0100
[Message part 1 (text/plain, inline)]
Closing this bug in the absence of any information about whether the
files in question are related to a failure to cross build. It sounds a
lot more like a confusion with runtime requirements.

> I'm trying to repackage this for use on
> an i686 machine.

Libraries in sub-directories of [/usr]/lib are not relevant to package
builds and are not scanned for linkages, so are not useful for
dpkg-cross which is for build-time linkage - not runtime / plugins.

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

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

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 15 Aug 2011 07:36:44 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 06:11:15 2014; Machine Name: buxtehude.debian.org

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