Your message dated Wed, 08 Sep 2010 15:02:29 +0000
with message-id <[email protected]>
and subject line Bug#590101: fixed in binutils 2.20.51.20100908-1
has caused the Debian Bug report #590101,
regarding Patch for binutils-2.20.51.20100710-2 to allow a static build option 
for crosscompilers
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 [email protected]
immediately.)


-- 
590101: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590101
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: binutils
Version: 2.20.1-11
Severity: wishlist
Tags: patch

Here is a simple patch for your consideration that modifies the rules
makefile for the binutils package to allow an option to build statically
when creating a cross compiler by passing the environment variable
'BUILD_STATIC=yes' on the command line to dpkg-buildpackage.

The rationale for providing the ability to compile a statically linked
binutils is to allow greater portability of that toolchain to 
environments other than the stock Debian environment in which the
toolchain was built.  This becomes especially interesting in the
embedded world where cross compilers (such as ones that can be created in
Debian) have long lifetimes and can be deployed to varied buildserver
enviroments to support cross compiling software for target embedded systems.
It removes the dependence on such things as having the exact correct version
of GLIBC (and other libraries) installed on the buildserver and makes
the toolchain standalone.  A static toolchain also provides the ultimate
in repeatablilty, since it does not depend on dynamically loadable modules
that can change on the build system.

The patch required a simple change to allow an intermediate build target that
performs a make on the target 'configure-host' prior to doing the full
make with the additional LDFLAGS="-all-static", which gets passed to
libtool to create static binaries.  Without the intermediate target,
configuration would fail when it tries to test gcc and passes the
unknown -all-static flag to gcc.

I have tested this patch by using dpkg-buildpackage to build binutils
version 2.20.51.20100710-2.  The resulting binaries were not dynamic.
The resulting binutils package was then used to compile gcc-4.4-4.4.4-7 (for
which am am submitting a similar patch).

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages binutils depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.4-5        GCC support library
ii  libstdc++6              4.4.4-5          The GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

binutils recommends no packages.

Versions of packages binutils suggests:
pn  binutils-doc                  <none>     (no description available)

-- no debconf information
--- binutils-2.20.51.20100710/debian/rules.orig 2010-07-22 15:47:52.000000000 
-0400
+++ binutils-2.20.51.20100710/debian/rules      2010-07-22 15:07:37.000000000 
-0400
@@ -459,7 +459,11 @@
        build_stamps += build-spu-stamp
 endif
 ifneq (,$(TARGET))
+  ifeq ($(BUILD_STATIC),yes)
+       build_stamps = build-static-cross-stamp
+  else
        build_stamps = build-cross-stamp
+  endif
 endif
 
 build: pre-build build-stamp
@@ -480,7 +484,11 @@
        install_stamps += install-spu-stamp
 endif
 ifneq (,$(TARGET))
-       install_stamps = install-cross-stamp
+  ifeq ($(BUILD_STATIC),yes)
+        install_stamps = install-static-cross-stamp
+  else
+        install_stamps = install-cross-stamp
+  endif
 endif
 install: $(install_stamps)
 install-stamp: checkroot build-stamp
@@ -1095,6 +1103,20 @@
        gzip -9 $(d_cross)/$(PF)/share/man/man1/*
        touch $@
 
+configure-host-cross-stamp: configure-cross-stamp
+       $(checkdir)
+       test "" != "$(TARGET)"
+       $(MAKE) configure-host -C builddir-$(TARGET) $(NJOBS) CFLAGS="$(CFLAGS)"
+       touch $@
+
+build-static-cross-stamp: configure-host-cross-stamp
+       $(checkdir)
+       test "" != "$(TARGET)"
+       $(MAKE) -C builddir-$(TARGET) $(NJOBS) CFLAGS="$(CFLAGS)" 
LDFLAGS="-all-static"
+       touch $@
+
+install-static-cross-stamp: build-static-cross-stamp install-cross-stamp
+
 binary-cross: 
        @echo "Please use dpkg-buildpackage instead of calling binary-cross 
directly; see README.cross"
        @false

--- End Message ---
--- Begin Message ---
Source: binutils
Source-Version: 2.20.51.20100908-1

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

binutils-dev_2.20.51.20100908-1_amd64.deb
  to main/b/binutils/binutils-dev_2.20.51.20100908-1_amd64.deb
binutils-doc_2.20.51.20100908-1_all.deb
  to main/b/binutils/binutils-doc_2.20.51.20100908-1_all.deb
binutils-gold_2.20.51.20100908-1_amd64.deb
  to main/b/binutils/binutils-gold_2.20.51.20100908-1_amd64.deb
binutils-multiarch_2.20.51.20100908-1_amd64.deb
  to main/b/binutils/binutils-multiarch_2.20.51.20100908-1_amd64.deb
binutils-source_2.20.51.20100908-1_all.deb
  to main/b/binutils/binutils-source_2.20.51.20100908-1_all.deb
binutils_2.20.51.20100908-1.diff.gz
  to main/b/binutils/binutils_2.20.51.20100908-1.diff.gz
binutils_2.20.51.20100908-1.dsc
  to main/b/binutils/binutils_2.20.51.20100908-1.dsc
binutils_2.20.51.20100908-1_amd64.deb
  to main/b/binutils/binutils_2.20.51.20100908-1_amd64.deb
binutils_2.20.51.20100908.orig.tar.gz
  to main/b/binutils/binutils_2.20.51.20100908.orig.tar.gz



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

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

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated binutils 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 08 Sep 2010 16:31:47 +0200
Source: binutils
Binary: binutils binutils-dev binutils-multiarch binutils-gold binutils-hppa64 
binutils-spu binutils-doc binutils-source
Architecture: source all amd64
Version: 2.20.51.20100908-1
Distribution: experimental
Urgency: low
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description: 
 binutils   - The GNU assembler, linker and binary utilities
 binutils-dev - The GNU binary utilities (BFD development files)
 binutils-doc - Documentation for the GNU assembler, linker and binary utilities
 binutils-gold - The (experimental) GNU gold linker utility
 binutils-hppa64 - The GNU assembler, linker and binary utilities targeted for 
hppa6
 binutils-multiarch - Binary utilities that support multi-arch targets
 binutils-source - The GNU assembler, linker and binary utilities (source)
 binutils-spu - The GNU assembler, linker and binary utilities targeted for 
spu-e
Closes: 590101 595319
Changes: 
 binutils (2.20.51.20100908-1) experimental; urgency=low
 .
   * Snapshot, taken from the trunk 20100908.
   * Link executables statically when `static' is passed in DEB_BUILD_OPTIONS
     (Jim Heck). Closes: #590101.
   * Apply proposed patch for PR ld/10340 (ld doesn't honor sysroot prefix
     for ldscripts). LP: #625320.
   * Build binutils-hppa64 in cross builds (Al Viro). Closes: #595319.
   * Fix some lintian warnings.
Checksums-Sha1: 
 73cde43a5a727eafe4eaad9f50df1d2e19dc31df 1490 binutils_2.20.51.20100908-1.dsc
 8fb02bf87c596b8bc3e0572cdd381c32be0f0e0a 22209235 
binutils_2.20.51.20100908.orig.tar.gz
 f802805fda6ce47c9def9a1fab9c762aced34910 55494 
binutils_2.20.51.20100908-1.diff.gz
 3623d51e009260ea27b7cdfa7e52e4f45645baeb 560506 
binutils-doc_2.20.51.20100908-1_all.deb
 b146c092a54917e84ecd2a45084087641fe0bfe6 12952344 
binutils-source_2.20.51.20100908-1_all.deb
 1f03598975f43c2ea2b1b6bd99a1792428ff792a 4337806 
binutils_2.20.51.20100908-1_amd64.deb
 a755536310145afbdfe416ced835f4e006b7f606 3680334 
binutils-dev_2.20.51.20100908-1_amd64.deb
 1c4a031284da8b9020d84865a676e4c69054349a 2110572 
binutils-multiarch_2.20.51.20100908-1_amd64.deb
 f8dd2f06895f7165e4e464527d886d86965fef28 1398 
binutils-gold_2.20.51.20100908-1_amd64.deb
Checksums-Sha256: 
 2176c4e3614e8fcbac04454094f58c7ed4dec85432c41b99bb614cb0392012c6 1490 
binutils_2.20.51.20100908-1.dsc
 ceed5ef67fdf8bc9cda333f6a032ddcdcbe15c7ad34f34d35baeab3f99d55d8f 22209235 
binutils_2.20.51.20100908.orig.tar.gz
 ea71c8b201d0781984bc54128a18ce1bb94c15b3952b8e466c329ff32e41a563 55494 
binutils_2.20.51.20100908-1.diff.gz
 0fea36825764645893f77206bb5029d50a604c82aa48825bca43a4a5f331e808 560506 
binutils-doc_2.20.51.20100908-1_all.deb
 54f3ce3e91985dd0d371634c049ad98e258734ad35d2b7dcbb66f1ba110d4982 12952344 
binutils-source_2.20.51.20100908-1_all.deb
 ba1698668d5a1c07c91bf752cf588232da7b55afe064680b74de51db6deafcd1 4337806 
binutils_2.20.51.20100908-1_amd64.deb
 fe949455abbff2ebb26d9ad5321649b43c1368131c07711a4bbc462763fae0ff 3680334 
binutils-dev_2.20.51.20100908-1_amd64.deb
 b36a8ab6cfc9582dfbd62ffe765f1e28a68402bb90dcc572b4f22dc8e9cad144 2110572 
binutils-multiarch_2.20.51.20100908-1_amd64.deb
 1a0a6e0c24eab422edeabbf41936792722612f3a3801986e6e9822baf37e9810 1398 
binutils-gold_2.20.51.20100908-1_amd64.deb
Files: 
 314f7aa14a56ff6eb1761a958d263eb0 1490 devel optional 
binutils_2.20.51.20100908-1.dsc
 8f1f0021d310d6a8fd2bf22ee282d7e5 22209235 devel optional 
binutils_2.20.51.20100908.orig.tar.gz
 25e2686e3e0f76b40bcda3313f08627b 55494 devel optional 
binutils_2.20.51.20100908-1.diff.gz
 4adf9c98407911a511a243dca65851a7 560506 doc optional 
binutils-doc_2.20.51.20100908-1_all.deb
 1a2382a0631189a55fcd90d4f07f0433 12952344 devel optional 
binutils-source_2.20.51.20100908-1_all.deb
 9f454002a25123bf2e860f6b3d2ea2c1 4337806 devel optional 
binutils_2.20.51.20100908-1_amd64.deb
 714af187d517b8cfeaf618050b5b66dd 3680334 devel extra 
binutils-dev_2.20.51.20100908-1_amd64.deb
 c910cd43674e18d6621e8a411de54113 2110572 devel extra 
binutils-multiarch_2.20.51.20100908-1_amd64.deb
 6a0fce845f0bd153572f9695f33eb814 1398 devel extra 
binutils-gold_2.20.51.20100908-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyHoM0ACgkQStlRaw+TLJzc1ACgt3yFxOwS5dr2A9WQpMmr7kPK
uQAAnR61cnLJddnAlMwSaV7XkkKu5Fw7
=r9G9
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to