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

Bug#866522: marked as done (mdadm FTCBFS: upstream buildsystem ignores CROSS_COMPILE variable)



Your message dated Wed, 22 Jan 2020 18:04:34 +0000
with message-id <E1iuKMk-000Gml-4n@fasolo.debian.org>
and subject line Bug#866522: fixed in mdadm 4.1-5
has caused the Debian Bug report #866522,
regarding mdadm FTCBFS: upstream buildsystem ignores CROSS_COMPILE variable
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.)


-- 
866522: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866522
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: mdadm
Version: 4.0-1
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap

mdadm fails to cross build from source, because it uses the build
architecture compiler. Its Makefile assigns:

    CC ?= $(CROSS_COMPILE)gcc

Since CC is a builtin variable. Such an assignment is ignored. After
fixing the assignment mdadm cross builds successfully. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru mdadm-4.0/debian/changelog mdadm-4.0/debian/changelog
--- mdadm-4.0/debian/changelog	2017-06-22 14:23:10.000000000 +0200
+++ mdadm-4.0/debian/changelog	2017-06-29 22:01:05.000000000 +0200
@@ -1,3 +1,10 @@
+mdadm (4.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: cross.patch (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 29 Jun 2017 22:01:05 +0200
+
 mdadm (4.0-1) unstable; urgency=medium
 
   * New upstream release. LP: #1668128
diff --minimal -Nru mdadm-4.0/debian/patches/cross.patch mdadm-4.0/debian/patches/cross.patch
--- mdadm-4.0/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ mdadm-4.0/debian/patches/cross.patch	2017-06-29 22:01:02.000000000 +0200
@@ -0,0 +1,20 @@
+From: Helmut Grohne <helmut@subdivi.de>
+Subject: properly assign CC
+
+A ?= assignment to a builtin variable is useless.
+
+Index: mdadm-4.0/Makefile
+===================================================================
+--- mdadm-4.0.orig/Makefile
++++ mdadm-4.0/Makefile
+@@ -41,7 +41,9 @@
+ 
+ KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32
+ 
+-CC ?= $(CROSS_COMPILE)gcc
++ifeq ($(origin CC),default)
++CC := $(CROSS_COMPILE)gcc
++endif
+ CXFLAGS ?= -ggdb
+ CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
+ ifdef WARN_UNUSED
diff --minimal -Nru mdadm-4.0/debian/patches/series mdadm-4.0/debian/patches/series
--- mdadm-4.0/debian/patches/series	2017-05-12 13:28:13.000000000 +0200
+++ mdadm-4.0/debian/patches/series	2017-06-29 22:00:05.000000000 +0200
@@ -3,3 +3,4 @@
 sha1-includes.diff
 readlink-path.patch
 mdmonitor-service-simplify.diff
+cross.patch

--- End Message ---
--- Begin Message ---
Source: mdadm
Source-Version: 4.1-5

We believe that the bug you reported is fixed in the latest version of
mdadm, 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 866522@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
dann frazier <dannf@debian.org> (supplier of updated mdadm 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 22 Jan 2020 09:56:25 -0700
Source: mdadm
Architecture: source
Version: 4.1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: dann frazier <dannf@debian.org>
Closes: 866522 943520
Changes:
 mdadm (4.1-5) unstable; urgency=medium
 .
   * QA upload.
   * Fix cross-compilation failure. (Closes: #866522).
     Thanks to Helmut Grohne.
   * Add support for raid0/linear 'broken' state. (Closes: #943520).
     Thanks to Guilherme G. Piccoli and Dan Streetman. LP: #1847924.
Checksums-Sha1:
 0ed9c2d273dd8c08dbb7d21b64baffcdb649633a 1904 mdadm_4.1-5.dsc
 6a51348a9d19e5e60353d59f9890e51ec4274d10 96480 mdadm_4.1-5.debian.tar.xz
 361c41b624eef28e355436ada41c5a748a5ab718 5924 mdadm_4.1-5_source.buildinfo
Checksums-Sha256:
 c8fb93131f4c39e8e3d6709eec03805f0350142e4fbf12ab53b5f3b9620877bd 1904 mdadm_4.1-5.dsc
 c30c5665c1f72bd739b2c750ce9bc6b45b161b4c8d6bc2a9f9ecf33f81e063c8 96480 mdadm_4.1-5.debian.tar.xz
 e459e1d93422054106e911947f542d994b971f1fd999fe64ee579132a60ff2f7 5924 mdadm_4.1-5_source.buildinfo
Files:
 c25f54e3dc2997c676321efa0c50f9ef 1904 admin optional mdadm_4.1-5.dsc
 2129211c2ebb2889a29e81db19d6332d 96480 admin optional mdadm_4.1-5.debian.tar.xz
 006fac32bba9f21f427d884b72f2c867 5924 admin optional mdadm_4.1-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEECfR9vy0y7twkQ+vuG/g8XlT8hkAFAl4oiikRHGRhbm5mQGRl
Ymlhbi5vcmcACgkQG/g8XlT8hkCxiQ/8DxkfLNX0Ivd3n+m1WMVk5GDbqqWFWBM6
O+al+Is22pjjrmkpEdd9HRuj0wEa3sGbLu+GHhJZmyKHEl89IatZ8KDfu/jdg9XC
f5lxrL8Kza2RI9k0eJnwvjFoeSlNAjBIERjfLbDb5w/MPY3dAFND8ExB3paT+nhc
0yNB6IPuz1b9oVKydOHz7E3ZxcL/40jHayd+lV3SDI99kbhgCkkSEd2leq9ayQtd
6uPQ3S5xhchuwt3vGhDI84viuH4qsj5sgvoNRpe0SiTUmMrTv/3CeYd62kIGtuhP
MTpHMXgMpG7f7rSna9d/qHvmR4B1dWXvBr7f39ghuJYVgCjlia3Gg0tvh82uxHWN
AtXkTh4GOeh8vSqMu0tSKypdUmRNki9zqO/kPDmnQH4Dswp0lExslmZdS/pOv+RW
ku5s8klgh9vDNOft1J5pEvDu3oieMJ3Dk6W37b6jfh+u5h/KvuPqEh4HGtGjTjcN
boyPS20Rqca7WToaHZiHN00fD5b9Jh1WtO8YwiZZf/lDmQkFzRJAvX/2C691QjnK
sbCRABu3SwjIYQwVvaNFl8cjQZNzizT/e0m/oyxzANfs6KCqmxiPDQYoEPt0dJ/h
cB4mBvmEtvVBMZM4YKg9bmsyWxo3+KR0XycAwkMa9bggAFgjtaSP4dRGutrxJLfy
asAsHhU6OyE=
=GDFo
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: