Bug#952815: grub2: Please drop TARGET_CCASFLAGS from debian/rules for 2.06 release

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat Feb 29 18:42:16 GMT 2020


Source: grub2
Version: 2.04-5
Severity: normal
User: debian-sparc at lists.debian.org
Usertags: sparc64

Hello!

The upcoming 2.06 release contains a fix to set -no-PIE in TARGET_CCASFLAGS [1]
such that the current workaround in debian/rules will no longer be necessary.

The following patch should be applied to debian/rules once 2.06-1 is uploaded
to the archive:

--- debian/rules.orig   2019-12-16 16:48:45.000000000 +0100
+++ debian/rules        2020-02-29 19:40:17.759252139 +0100
@@ -23,10 +23,6 @@
 export TARGET_CPPFLAGS := -Wno-unused-but-set-variable
 export TARGET_LDFLAGS := -no-pie
 
-ifneq (,$(filter sparc sparc64,$(DEB_HOST_ARCH_CPU)))
-export TARGET_CCASFLAGS := -fno-PIE
-endif
-
 # Ensure that debhelper doesn't try to set these; we need to be careful
 # about HOST_* vs. TARGET_*.
 export CPPFLAGS :=

Before 2.06, the workaround in debian/rules needs to be kept.

Thanks,
Adrian

> [1] http://git.savannah.gnu.org/cgit/grub.git/commit/?id=c71be831f159ab5b8913132143bdb783a8b4b2a3

---
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-grub-devel mailing list