forked from pool/coreutils
26558dd009
* src/cut.c: Instead of usig unreliable alloca() stack allocation, use heap allocation via xmalloc()+free(). (coreutils-i18n.patch) - Fix test-suite errors (bnc#798261). * tests/cp/fiemap-FMR: Fix path to src directory and declare require_valgrind_ function. (coreutils-cp-corrupt-fragmented-sparse.patch) * tests/misc/cut: Fix src/cut.c to properly pass output-delimiter tests. Synchronize cut.c related part of the i18n patch with Fedora's. Merge coreutils-i18n-infloop.patch into coreutils-i18n.patch. Merge coreutils-i18n-uninit.patch into coreutils-i18n.patch. In tests/misc/cut, do not replace the non-i18n error messages. (coreutils-i18n.patch) * tests/rm/ext3-perf: This test failed due to heavy parallel CPU and/or disk load because it is based on timeouts. Do not run the test-suite with 'make -jN. (coreutils.spec, coreutils-testsuite.spec) * Further spec changes: Run more tests: also run "very expensive" tests; add acl, python-pyinotify, strace and valgrind to the build requirements. Remove patch5 and patch6 as they are now merged into coreutils-i18n.patch (see above). (coreutils.spec, coreutils-testsuite.spec) - Maintenance changes: (coreutils.spec, coreutils-testsuite.spec) * Add perl and texinfo to the build requirements as they are needed to re-generate the man pages and the texinfo documentation. * Remove already-active "-Wall" compiler option from CFLAGS variable. * Install the compressed test-suite.log into the documentation directory of the coreutils-testsuite package (section %check and %files). * Properly guard the spec sections for the coreutils and the coreutils-testsuite package. * Update patches to reflect new line numbers. OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=172
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
From d1a49cccf99373293a88f5bce74857d5bb813e46 Mon Sep 17 00:00:00 2001
|
|
From: Thorsten Kukuk <kukuk@suse.de>
|
|
Date: Tue, 17 Aug 2010 09:21:22 +0200
|
|
Subject: [PATCH 7/7] compile su with -fpie
|
|
|
|
---
|
|
lib/Makefile.am | 2 +-
|
|
src/Makefile.am | 5 +++++
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
Index: lib/Makefile.am
|
|
===================================================================
|
|
--- lib/Makefile.am.orig
|
|
+++ lib/Makefile.am
|
|
@@ -28,7 +28,7 @@ noinst_LIBRARIES =
|
|
|
|
include gnulib.mk
|
|
|
|
-AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
|
|
+AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) -fpie
|
|
|
|
libcoreutils_a_SOURCES += \
|
|
buffer-lcm.c buffer-lcm.h
|
|
Index: src/Makefile.am
|
|
===================================================================
|
|
--- src/Makefile.am.orig
|
|
+++ src/Makefile.am
|
|
@@ -361,6 +361,11 @@ uptime_LDADD += $(GETLOADAVG_LIBS)
|
|
su_SOURCES = su.c getdef.c
|
|
su_LDADD += $(LIB_CRYPT) $(PAM_LIBS)
|
|
|
|
+su_CFLAGS = -fpie
|
|
+su_LDFLAGS = -pie
|
|
+timeout_CFLAGS = -fpie
|
|
+timeout_LDFLAGS = -pie
|
|
+
|
|
# for various ACL functions
|
|
copy_LDADD += $(LIB_ACL)
|
|
ls_LDADD += $(LIB_ACL)
|