Package: coreutils
Version: 8.5-1
Severity: normal
Tags: patch
In Debian main mechanism for providing building flags when building
packages is by using /etc/dpkg/buildflags.conf.
This file is readed by dpkg-buildpackage, and nacassary
environment variables are created before debian/rules
is executed.
coreutils's debian/rules, unconditionally overwrites all flags.
Simple changes to debian/rules are needed to fix this.
Patch bellow.
Thanks.
--- debian/rules.o 2010-09-09 21:20:23.000000000 +0200
+++ debian/rules 2010-09-09 21:19:53.000000000 +0200
@@ -22,11 +22,11 @@
# implement no optimization build option
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS = -g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O0
+CFLAGS = -g -O0
else
-CFLAGS = -g -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT -O2
+CFLAGS ?= -g -O2
endif
-LDFLAGS =
+CFLAGS += -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT
# Renesas SH(sh4) need -mieee option.
ifeq ($(DEB_HOST_ARCH_CPU),sh4)
@@ -51,8 +51,8 @@
configure-stamp:
dh_testdir
- CFLAGS="$(CFLAGS)" \
- LDFLAGS=$(LDFLAGS) ./configure \
+ CFLAGS='$(CFLAGS)' \
+ LDFLAGS='$(LDFLAGS)' ./configure \
--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
--prefix=/usr -v \
--infodir=/usr/share/info --mandir=/usr/share/man \
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages coreutils depends on:
ii libacl1 2.2.49-3 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libc6 2.11.2-5 Embedded GNU C Library: Shared lib
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
coreutils recommends no packages.
coreutils suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]