Debian Bug report logs - #513209
[crush] ITP: libelf

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

Reported by: "Martin Fuzzey" <mfuzzey@gmail.com>

Date: Sun, 18 Jan 2009 21:57:01 UTC

Owned by: mfuzzey@gmail.com

Severity: wishlist

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 Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com:
Bug#512247; Package buildd.emdebian.org. (Sun, 18 Jan 2009 21:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Martin Fuzzey" <mfuzzey@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Embedded Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com. (Sun, 18 Jan 2009 21:57:04 GMT) Full text and rfc822 format available.

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

From: "Martin Fuzzey" <mfuzzey@gmail.com>
To: submit@bugs.debian.org
Subject: [crush] ITP: ltrace
Date: Sun, 18 Jan 2009 22:55:40 +0100
Package: buildd.emdebian.org
Severity: wishlist
Owner: mfuzzey@gmail.com

Would be nice to have for development use.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Embedded Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com:
Bug#512247; Package buildd.emdebian.org. (Mon, 19 Jan 2009 14:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Martin Fuzzey" <mfuzzey@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Embedded Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com. (Mon, 19 Jan 2009 14:27:02 GMT) Full text and rfc822 format available.

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

From: "Martin Fuzzey" <mfuzzey@gmail.com>
To: 512247@bugs.debian.org
Subject: Add patch files for ltrace
Date: Mon, 19 Jan 2009 15:23:33 +0100
[Message part 1 (text/plain, inline)]
Attached are emdebian patch files for ltrace and its dependency libelf.

They build ok and run on target.

A few points I'm not quite sure on:

In ltrace:
=======
ltrace initially failed to cross build as it used uname -m in a sub
makefile (sysdeps/linux-gnu/Makefile) to build architecture dependent
code.
I added a debian/patches/99_emdebian_no_auto_arch_detect.patch to fix
this by using DEB_HOST_ARCH

-ARCH           :=      $(shell uname -m | sed -e s/i.86/i386/ -e
s/sun4u/sparc64/ \
-                       -e s/arm.*/arm/ -e s/sa110/arm/ -e
s/ppc64/ppc/ -e s/s390x/s390/)
+ARCH           := $(DEB_HOST_ARCH)

However the Makefile also contains a clean target that uses ARCH.
Since clean is called by debuild after unpatching it was cleaning the
build machine arch not the target arch which caused dpkg-source to
fail on the second build.

To fix this I call the correct clean target from debian/rules too:
+clean::
+       # sysdeps/linux-gnu/Makefile clean has been unpatched so
assumes build ARCH
+       $(MAKE) -C sysdeps/linux-gnu/$(DEB_HOST_ARCH) clean
+


in libelf:
======
It uses a configure file generated by autoconf 2.13 and
autotools-dev/README.Debian.gz states

cross-compiling with autoconf 2.13 is an Evil art, which shall turn sane and
bright minds into quivering wrecks upon contact with the madness that lies in
that path.

I basically copied the existing rxvt package for this - it seems to
work and i'm not (yet) a quivering wreck  :)

hope this is ok (changing autconf versions seems more like a job for
the debian package not emdebian patches)

Something odd in I18N: it was shipping a compiled gmo file rather than
generating it from the po. It was also preserving this file
(po/de.gmo) in debian/rules by backing it up in build: and restoring
it in clean:
This worked ok for the first build but  em_installtdeb removed the
file causing the backup made on the next build to fail.

I just patched debian/rules to remove the file and generate it each
time [the generated one is identical to the shipped one]

It looks like po/Makefile can compile a helper program however this is
not used when gettext is available.

Cheers,

Martin
[ltrace-patch.tar.gz (application/x-gzip, attachment)]
[libelf-patch.tar.gz (application/x-gzip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Embedded Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com:
Bug#512247; Package buildd.emdebian.org. (Mon, 19 Jan 2009 15:03:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Neil Williams <codehelp@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Embedded Team <debian-embedded@lists.debian.org>, mfuzzey@gmail.com. (Mon, 19 Jan 2009 15:03:10 GMT) Full text and rfc822 format available.

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

From: Neil Williams <codehelp@debian.org>
To: "Martin Fuzzey" <mfuzzey@gmail.com>, 512247@bugs.debian.org
Subject: Re: Bug#512247: Add patch files for ltrace
Date: Mon, 19 Jan 2009 15:01:21 +0000
[Message part 1 (text/plain, inline)]
On Mon, 19 Jan 2009 15:23:33 +0100
"Martin Fuzzey" <mfuzzey@gmail.com> wrote:

> Attached are emdebian patch files for ltrace and its dependency libelf.

Thanks!
 
> They build ok and run on target.
> 
> A few points I'm not quite sure on:
> 
> In ltrace:
> =======
> ltrace initially failed to cross build as it used uname -m in a sub
> makefile (sysdeps/linux-gnu/Makefile) to build architecture dependent
> code.
> I added a debian/patches/99_emdebian_no_auto_arch_detect.patch to fix
> this by using DEB_HOST_ARCH
> 
> -ARCH           :=      $(shell uname -m | sed -e s/i.86/i386/ -e
> s/sun4u/sparc64/ \
> -                       -e s/arm.*/arm/ -e s/sa110/arm/ -e
> s/ppc64/ppc/ -e s/s390x/s390/)
> +ARCH           := $(DEB_HOST_ARCH)

That sounds like a bug in ltrace - it should use dpkg-architecture and
decide whether it wants DEB_HOST_ARCH or DEB_BUILD_ARCH. I'll look into
that more closely once Lenny is released and I start the Code Audit
that will seek to get all these patches into the relevant Debian
packages (which in turn will make it a lot easier to get Crush for
armel, mips and the rest).

> However the Makefile also contains a clean target that uses ARCH.
> Since clean is called by debuild after unpatching it was cleaning the
> build machine arch not the target arch which caused dpkg-source to
> fail on the second build.
> 
> To fix this I call the correct clean target from debian/rules too:
> +clean::
> +       # sysdeps/linux-gnu/Makefile clean has been unpatched so
> assumes build ARCH
> +       $(MAKE) -C sysdeps/linux-gnu/$(DEB_HOST_ARCH) clean
> +

Using the same fix for both is definitely correct - as is ensuring that
the package builds twice in a row, even cross-.

Once I resolve the underlying issue with the ltrace maintainer, the
same fix can be used for both.

> in libelf:
> ======
> It uses a configure file generated by autoconf 2.13 and
> autotools-dev/README.Debian.gz states
> 
> cross-compiling with autoconf 2.13 is an Evil art, which shall turn sane and
> bright minds into quivering wrecks upon contact with the madness that lies in
> that path.

:-)
 
No wonder autoconf2-13 is described as "obsolete version".

> I basically copied the existing rxvt package for this - it seems to
> work and i'm not (yet) a quivering wreck  :)
> 
> hope this is ok (changing autconf versions seems more like a job for
> the debian package not emdebian patches)

Needs must. Sometimes the autotools have to be radically modified for
Crush - it becomes essential if you are going to use --disable-foo
instead of --enable-foo in the debian/rules configure target in order
to modify functionality and drop dependencies.

> Something odd in I18N: it was shipping a compiled gmo file rather than
> generating it from the po. 

The .gmo was compiled upstream? That sounds like a bug in the Debian
packaging - the .gmo should be cleaned out and a new one built from
the .po.

> It was also preserving this file
> (po/de.gmo) in debian/rules by backing it up in build: and restoring
> it in clean:

eh? 

Always worth testing those with native builds. Add a target the removes
all .gmo files and rebuild. Builds fine for me:

        rm po/*.gmo
#       mv po/de.gmo po/de.gmo.orig
#       cp po/de.gmo.orig po/de.gmo

> This worked ok for the first build but  em_installtdeb removed the
> file causing the backup made on the next build to fail.

OK, I'll look at that - my preferred method is to ensure that the
backup is never made, used or tested.

> I just patched debian/rules to remove the file and generate it each
> time [the generated one is identical to the shipped one]

Even more weird.
 
> It looks like po/Makefile can compile a helper program however this is
> not used when gettext is available.

autoconf nastiness probably - there should be a Makefile.in.in in po/ -
a symlink to /usr/share/intltool/Makefile.in.in

libelf looks like a really old package - probably in need of a
refreshed autotools config with autoreconf -fs upstream.

Thanks for your work on these two!

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

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

Bug 512247 cloned as bug 513209. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Tue, 27 Jan 2009 10:51:03 GMT) Full text and rfc822 format available.

Changed Bug title to `[crush] ITP: libelf' from `[crush] ITP: ltrace'. Request was from Neil Williams <codehelp@debian.org> to control@bugs.debian.org. (Tue, 27 Jan 2009 10:51:05 GMT) Full text and rfc822 format available.

Reply sent to Neil Williams <codehelp@debian.org>:
You have taken responsibility. (Tue, 27 Jan 2009 11:09:03 GMT) Full text and rfc822 format available.

Notification sent to "Martin Fuzzey" <mfuzzey@gmail.com>:
Bug acknowledged by developer. (Tue, 27 Jan 2009 11:09:03 GMT) Full text and rfc822 format available.

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

From: Neil Williams <codehelp@debian.org>
To: 513209-done@bugs.debian.org
Subject: Automated closure message
Date: Tue, 27 Jan 2009 11:05:47 +0000
Package: buildd.emdebian.org

Cross tools information:
dpkg-cross 2.3.4
emdebian-tools 1.4.15
apt-cross 0.12.6

Machine: holly.codehelp
Date of last SVN change: Tue Jan 27 10:42:19 GMT 2009
Changeset: http://buildd.emdebian.org/svn/changeset/5403/current/target/trunk/l/libelf/trunk


The new version of libelf has been uploaded to Emdebian.
A summary of the changes between this version and
the previous Emdebian one is attached.

Format: 1.8
Date: Mon, 19 Jan 2009 08:40:14 +0000
Source: libelf
Binary: libelfg0 libelfg0-dev
Architecture: source arm
Version: 0.8.10-2em1
Distribution: unstable
Urgency: low
Maintainer: Alex Pennace <alex@pennace.org>
Changed-By: Martin Fuzzey <mfuzzey@gmail.com>
Description: 
 libelfg0   - an ELF object file access library
 libelfg0-dev - an ELF object file access library: development files
Changes: 
 libelf (0.8.10-2em1) unstable; urgency=low
 .
   * New emdebian release.
Checksums-Sha1: 
 30688d4484c2fea7e40a632780824bb40fadb63c 732 libelf_0.8.10-2em1.dsc
 7024859a75485b5b3f20b6df1c9726411cb0cdd3 147893 libelf_0.8.10.orig.tar.gz
 2028484003fdb804cf23a6a4de4531921b0fff35 5846 libelf_0.8.10-2em1.diff.gz
 a57a3358d6de2b2a761641000a3f045bce629864 32308 libelfg0_0.8.10-2em1_arm.deb
 2422e493d141fb43a0925cc5b0aa1e718250e4c5 48956 libelfg0-dev_0.8.10-2em1_arm.deb
Checksums-Sha256: 
 7255b1dabce741c3c4b5b916ccf679584b639544c8fbf7800b5f8579eeffe4ec 732 libelf_0.8.10-2em1.dsc
 43979c93538604860941c9f86c477d4aaed3e42df0d69150c93cdfd152d3047e 147893 libelf_0.8.10.orig.tar.gz
 cf805a5d683c6c474da902268f43acc2b81fd5a1d169662619f2a6f71c39c607 5846 libelf_0.8.10-2em1.diff.gz
 29eba822996a4ceec52843f1d1980e16e94ce4d7120dd15f57b01b5368e69235 32308 libelfg0_0.8.10-2em1_arm.deb
 3f20a26bacffd16862cabb03c48c07b85d23d680880de22cf9203114abdeed58 48956 libelfg0-dev_0.8.10-2em1_arm.deb
Files: 
 5a7498ce6c424638c133c9f100755e2d 732 devel optional libelf_0.8.10-2em1.dsc
 7ec979572a66a5dac27f1e6aba9babc5 147893 devel optional libelf_0.8.10.orig.tar.gz
 3a64e14fe892391b7aa6a96901185246 5846 devel optional libelf_0.8.10-2em1.diff.gz
 d630d3796965da8c8844dd7ab66dee61 32308 libs optional libelfg0_0.8.10-2em1_arm.deb
 0486d8378ee849f13b450e8152ac7cc6 48956 libdevel optional libelfg0-dev_0.8.10-2em1_arm.deb




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 25 Feb 2009 07:30:02 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: Sat Apr 19 23:55:23 2014; Machine Name: beach.debian.org

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