forked from pool/coreutils
7a83ba63d6
- Update to 8.25 (for details see included NEWS file) - coreutils.spec (%description): Add base32, a new utility. - Remove now-upstream patch: * coreutils-tests-avoid-FP-of-ls-stat-free-color.patch - Refresh/merge all other patches: * coreutils-build-timeout-as-pie.patch * coreutils-disable_tests.patch * coreutils-i18n.patch * coreutils-invalid-ids.patch * coreutils-misc.patch * coreutils-ocfs2_reflinks.patch * coreutils-remove_hostname_documentation.patch * coreutils-remove_kill_documentation.patch * coreutils-skip-gnulib-test-tls.patch * coreutils-test_without_valgrind.patch * coreutils-tests-shorten-extreme-factor-tests.patch OBS-URL: https://build.opensuse.org/request/show/356783 OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=270
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From d1a49cccf99373293a88f5bce74857d5bb813e46 Mon Sep 17 00:00:00 2001
|
|
From: Bernhard Voelker <mail@bernhard-voelker.de>
|
|
Date: Thu, 10 Jan 2013 09:21:22 +0200
|
|
Subject: build timeout as PIE
|
|
|
|
The OBS requires /usr/bin/timeout to be built as an position
|
|
independent executable (PIE). This is enforced via RPMLINT.
|
|
|
|
* src/local.mk (AM_CFLAGS): Add -fpie option.
|
|
(timeout_CFLAGS): Likewise.
|
|
(timeout_LDFLAGS): Add -pie option.
|
|
|
|
---
|
|
src/local.mk | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
Index: src/local.mk
|
|
===================================================================
|
|
--- src/local.mk.orig
|
|
+++ src/local.mk
|
|
@@ -17,7 +17,7 @@
|
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# FIXME: once lib/ and gnulib-tests/ are also converted, hoist to Makefile.am
|
|
-AM_CFLAGS = $(WERROR_CFLAGS)
|
|
+AM_CFLAGS = $(WERROR_CFLAGS) -fpie
|
|
|
|
# The list of all programs (separated in different variables to express
|
|
# the how and when they should be installed) is defined in this makefile
|
|
@@ -278,6 +278,9 @@ src_factor_LDADD += $(LIB_GMP)
|
|
# for getloadavg
|
|
src_uptime_LDADD += $(GETLOADAVG_LIBS)
|
|
|
|
+src_timeout_CFLAGS = -fpie
|
|
+src_timeout_LDFLAGS = -pie
|
|
+
|
|
# for various ACL functions
|
|
copy_ldadd += $(LIB_ACL)
|
|
src_ls_LDADD += $(LIB_HAS_ACL)
|