[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#665997: marked as done (libbsd uses wrong compiler when cross-building)



Your message dated Mon, 27 May 2013 04:33:45 +0000
with message-id <E1Ugp7x-0001ux-T7@franck.debian.org>
and subject line Bug#665997: fixed in libbsd 0.5.0-1
has caused the Debian Bug report #665997,
regarding libbsd uses wrong compiler when cross-building
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 owner@bugs.debian.org
immediately.)


-- 
665997: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665997
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libbsd
Version: 0.3.0-2
Tags: Patch
User: crossbuild@debian.org
Usertags: cross

As part of making debian 'bootstrappable' we are making sure that at
least the core system is cross-buildable.

libbsd uses 'gcc' directly, so cross-compiling fails. The attached patch
fixes that.

This bug corresponds to ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/libbsd/+bug/963060


Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/
diff -ur origs/libbsd-0.3.0/Makefile patched/libbsd-0.3.0/Makefile
--- origs/libbsd-0.3.0/Makefile	2011-06-02 17:20:55.000000000 +0000
+++ patched/libbsd-0.3.0/Makefile	2012-03-27 16:46:52.000000000 +0000
@@ -119,7 +119,6 @@
 LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
 
 AR = ar
-CC = gcc
 CCLD = $(CC)
 
 # Set default values for user variables
diff -ur origs/libbsd-0.3.0/debian/rules patched/libbsd-0.3.0/debian/rules
--- origs/libbsd-0.3.0/debian/rules	2012-02-25 19:41:15.000000000 +0000
+++ patched/libbsd-0.3.0/debian/rules	2012-03-27 16:45:48.000000000 +0000
@@ -4,6 +4,7 @@
 #export DH_VERBOSE=1
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS := -Wall $(shell dpkg-buildflags --get CFLAGS)
@@ -20,7 +21,7 @@
 build-arch:
 	dh_testdir
 
-	$(MAKE) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+	$(MAKE) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(DEB_HOST_GNU_TYPE)-gcc"
 
 build: build-indep build-arch
 

--- End Message ---
--- Begin Message ---
Source: libbsd
Source-Version: 0.5.0-1

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

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 665997@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <guillem@debian.org> (supplier of updated libbsd 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 ftpmaster@debian.org)


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

Format: 1.8
Date: Mon, 27 May 2013 06:07:08 +0200
Source: libbsd
Binary: libbsd-dev libbsd0 libbsd0-udeb libbsd0-dbg
Architecture: source amd64
Version: 0.5.0-1
Distribution: unstable
Urgency: low
Maintainer: Debian GNU/kFreeBSD <debian-bsd@lists.debian.org>
Changed-By: Guillem Jover <guillem@debian.org>
Description: 
 libbsd-dev - utility functions from BSD systems - development files
 libbsd0    - utility functions from BSD systems - shared library
 libbsd0-dbg - utility functions from BSD systems - debugging symbols
 libbsd0-udeb - utility functions from BSD systems - shared library (udeb)
Closes: 614959 665997
Changes: 
 libbsd (0.5.0-1) unstable; urgency=low
 .
   * New upstream release.
     - Implement setproctitle(). (Closes: #614959)
     - Fix «make distclean» target to not remove distributed files.
   * Change watch file to also look for xz compressed upstream releases.
   * Fix two builds in a row by calling «make distclean» on clean.
   * Fix cross-building support by passing correct --build and --host options
     to configure. Based on patch by Colin Watson <cjwatson@ubuntu.com>.
     (Closes: #665997)
   * Move -e option from postinst's shebang to an explicit set call.
   * Switch to canonical Vcs URLs.
   * Switch source package to xz compression.
   * Switch to debhelper compatibility level 9.
   * Now using Standards-Version 3.9.4 (no changes needed).
Checksums-Sha1: 
 36a52f68821bcb504059b8b0d2b87ed6fa516132 1475 libbsd_0.5.0-1.dsc
 d2ce5d985d8ef27f7669970f6d7b102daaf4c6d3 306668 libbsd_0.5.0.orig.tar.xz
 08d227153dce737874852bbc8fec9b1310b1af3f 8704 libbsd_0.5.0-1.debian.tar.xz
 43ece878f456d463d856d013cd374c4c7c555385 153948 libbsd-dev_0.5.0-1_amd64.deb
 e7e17f8fee5a7c6996317b181677ffe5be62a9ee 64652 libbsd0_0.5.0-1_amd64.deb
 042a328d4770e1622a2a3c8f75185b1258ebf0b7 24714 libbsd0-udeb_0.5.0-1_amd64.udeb
 dd0634491bf2c998c131367c0c1ba7f6f542340a 101208 libbsd0-dbg_0.5.0-1_amd64.deb
Checksums-Sha256: 
 2daada9129643d03d3eb39f6b5ef6916991f5fe9e20866a61e3749f1939ab9e7 1475 libbsd_0.5.0-1.dsc
 1d2aaa5e14fd3bba9a74786ebbcf664b57346a01d47f83d82e7638d74d5626e4 306668 libbsd_0.5.0.orig.tar.xz
 b2eca529699d9e4768d1010a2e3f1bfcf568e8aeeb6fdd952bbc3eca511045f3 8704 libbsd_0.5.0-1.debian.tar.xz
 1b7e0eef807f3e865177f7dda05c8c24ec62bb3802fa7bbbc92aef8607a18f90 153948 libbsd-dev_0.5.0-1_amd64.deb
 dd9b0ff7f0202181a404b79358763cea10e189e7a38833c7bc9aea6009140a28 64652 libbsd0_0.5.0-1_amd64.deb
 72cf3326513df501fdf2fd312c51ee3dfc03f55eccf04c7656667bab47ff34e8 24714 libbsd0-udeb_0.5.0-1_amd64.udeb
 32fe259d6cb2b480d1df636eaa45cb4cc41c7212ced2eff7a1bf0f6d04d8d065 101208 libbsd0-dbg_0.5.0-1_amd64.deb
Files: 
 906e4276e2c3ed8e30bb68b6f4625cd0 1475 libs optional libbsd_0.5.0-1.dsc
 0c4527b79fc69036adc38a9b7520eb35 306668 libs optional libbsd_0.5.0.orig.tar.xz
 5d9f2f7f4dc98eb5b394c16ed21fa37a 8704 libs optional libbsd_0.5.0-1.debian.tar.xz
 dc1dec715ae339e7cd9883587d4ccba2 153948 libdevel optional libbsd-dev_0.5.0-1_amd64.deb
 a2007740ea7381771348ea4af4da4404 64652 libs optional libbsd0_0.5.0-1_amd64.deb
 5fd143e17bd8312aee53eb70f8f635dd 24714 debian-installer optional libbsd0-udeb_0.5.0-1_amd64.udeb
 f68121fb4416e313f61d197838de7a8f 101208 debug extra libbsd0-dbg_0.5.0-1_amd64.deb

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

iEYEARECAAYFAlGi3dQACgkQuW9ciZ2SjJu56wCfW57I3cz+7FhYquJSzCqy72Zq
L70AoJRo8vTgqY8O41AgOhCTSwvOv+0O
=NQrR
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: