Debian Bug report logs - #480715
[file] needs to omit python support

Package: buildd.emdebian.org; Maintainer for buildd.emdebian.org is Debian Embedded Team <debian-embedded@lists.debian.org>;

Reported by: Neil Williams <codehelp@debian.org>

Date: Sun, 11 May 2008 18:03:01 UTC

Severity: normal

Done: Hector Oron <hector.oron@gmail.com>

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-devel@lists.debian.org>:
Bug#480715; Package general. Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
New Bug report received and forwarded. Copy sent to <debian-devel@lists.debian.org>. Full text and rfc822 format available.

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

From: Neil Williams <codehelp@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: buildd.emdebian.org: New version of 'file' fails to cross build, unable to update package.
Date: Sun, 11 May 2008 19:00:03 +0100
Package: general
Severity: normal

$ emsource --status file
Checking the apt-cross cache is up to date for arm.
Checking status of file in /opt/emdebian/trunk/f/file/trunk/
4 emdebian patch files
0 debian patch files

Checking emdebuild status in /opt/emdebian/trunk/f/file/trunk/
build log:
	file (4.24) FAILED to cross build for arm.
/opt/emdebian/trunk/f/file/trunk/file_4.24-2em1_arm.build

Checking empdebuild status
file may be out of date.
Checking for error logs in /opt/emdebian/trunk/f/file/trunk/
Checking bug status
No open cross-building bugs for file
file FAILED to build.

/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gnu-gcc
-DHOWMANY=0x18000 -Wall -g -O2 -no-undefined -version-info 1:0:0  -o
libmagic.la -rpath /usr/lib magic.lo apprentice.lo softmagic.lo
ascmagic.lo compress.lo is_tar.lo readelf.lo print.lo fsmagic.lo
funcs.lo apptype.lo  -lz 
gcc -shared  .libs/magic.o .libs/apprentice.o .libs/softmagic.o
.libs/ascmagic.o .libs/compress.o .libs/is_tar.o .libs/readelf.o
.libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o  -lz
-Wl,-soname -Wl,libmagic.so.1 -o .libs/libmagic.so.1.0.0
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/magic.o: Relocations in generic ELF (EM: 40)
.libs/magic.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libmagic.la] Error 1
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Recording that the package failed to build.

This is down to the libtool handling in the package - the libtool script
modified by calling ./configure is removed and replaced by a basic one
that is unable to handle cross building.

Allowing the upstream libtool to be updated by the configure script
causes a different build error:

arm-linux-gnu-ranlib .libs/libmagic.a
creating libmagic.la
(cd .libs && rm -f libmagic.la && ln -s ../libmagic.la libmagic.la)
arm-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..
-DMAGIC='"/etc/magic:/usr/share/file/magic"'   -DHOWMANY=0x18000 -Wall
-g -O2 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.c
mv -f .deps/file.Tpo .deps/file.Po
/bin/sh ../libtool --tag=CC   --mode=link arm-linux-gnu-gcc
-DHOWMANY=0x18000 -Wall -g -O2   -o file file.o libmagic.la
arm-linux-gnu-gcc -DHOWMANY=0x18000 -Wall -g -O2 -o file file.o
./.libs/libmagic.a -lz
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/src'
Making all in magic
make[3]: Entering directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/magic'
make[3]: *** No rule to make target `file', needed by `magic.mgc'.
Stop.
make[3]: Leaving directory
`/opt/emdebian/trunk/f/file/trunk/file-4.24/magic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/emdebian/trunk/f/file/trunk/file-4.24'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2



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

Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash




Bug reassigned from package `general' to `buildd.emdebian.org'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Wed, 03 Sep 2008 06:30:10 GMT) Full text and rfc822 format available.

Changed Bug title to `[file] needs to omit python support' from `buildd.emdebian.org: New version of 'file' fails to cross build, unable to update package.'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Thu, 04 Jun 2009 15:36:05 GMT) Full text and rfc822 format available.

Reply sent to Hector Oron <hector.oron@gmail.com>:
You have taken responsibility. (Sun, 09 May 2010 22:09:07 GMT) Full text and rfc822 format available.

Notification sent to Neil Williams <codehelp@debian.org>:
Bug acknowledged by developer. (Sun, 09 May 2010 22:09:07 GMT) Full text and rfc822 format available.

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

From: Hector Oron <hector.oron@gmail.com>
To: 480715-done@bugs.debian.org
Subject: buildd.emdebian.org: file cross compiles now nicely
Date: Mon, 10 May 2010 00:06:37 +0200
Hello,

I just did a cross comiling attempt for file and...

zumbi@eefk2m5:/tmp/file-5.04$ dpkg-buildpackage -aarmel -us -uc -rfakeroot
[...]
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps -Llibmagic1 -ldebian/libmagic1/usr/lib
dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be
avoided if "debian/python-magic/usr/lib/python2.6/dist-packages/magic.so
debian/python-magic/usr/lib/python2.5/site-packages/magic.so" were not
uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be
avoided if "debian/python-magic-dbg/usr/lib/python2.5/site-packages/magic_d.so
debian/python-magic-dbg/usr/lib/python2.6/dist-packages/magic_d.so"
were not uselessly linked against it (they use none of its symbols).
dh_gencontrol
dpkg-gencontrol: warning: la variable de substitució
${python:Provides} és desconeguda
dpkg-gencontrol: warning: la variable de substitució ${python:Depends}
és desconeguda
dpkg-gencontrol: warning: la variable de substitució
${python:Provides} és desconeguda
dpkg-gencontrol: warning: la variable de substitució
${python:Versions} és desconeguda
dh_md5sums
dh_builddeb
dpkg-deb: s'està construint el paquet «file» en «../file_5.04-2_armel.deb».
dpkg-deb: s'està construint el paquet «libmagic1» en
«../libmagic1_5.04-2_armel.deb».
dpkg-deb: s'està construint el paquet «libmagic-dev» en
«../libmagic-dev_5.04-2_armel.deb».
dpkg-deb: s'està construint el paquet «python-magic» en
«../python-magic_5.04-2_armel.deb».
dpkg-deb: s'està construint el paquet «python-magic-dbg» en
«../python-magic-dbg_5.04-2_armel.deb».
 dpkg-genchanges  >../file_5.04-2_armel.changes
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)

Hence I close this bug.

-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Jun 2010 07:31:52 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: Thu Apr 17 01:00:38 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.