summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Lidell <matsl@gentoo.org>2017-12-10 13:34:21 +0100
committerMats Lidell <matsl@gentoo.org>2017-12-10 13:35:20 +0100
commitde27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf (patch)
tree147e9c995ae185485f53ceb921387f45ee089d3f
parentros-meta/*: Update Manifest hashes (diff)
downloadgentoo-de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf.tar.gz
gentoo-de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf.tar.bz2
gentoo-de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf.zip
app-editors/xemacs: Use system malloc and -no-pie
For 21.4 use system malloc on all architectures. For both 21.4 and 21.5 use -no-pie option since xemacs can't be built with positions indipendent code yet. This is for adopting to the 17.0 profiles which defaults to use PIE. Bug: https://bugs.gentoo.org/639214 Bug: https://bugs.gentoo.org/639508 Bug: https://bugs.gentoo.org/639642 Package-Manager: Portage-2.3.13, Repoman-2.3.3
-rw-r--r--app-editors/xemacs/xemacs-21.4.24-r1.ebuild18
-rw-r--r--app-editors/xemacs/xemacs-21.4.24.ebuild18
-rw-r--r--app-editors/xemacs/xemacs-21.5.34-r4.ebuild9
3 files changed, 20 insertions, 25 deletions
diff --git a/app-editors/xemacs/xemacs-21.4.24-r1.ebuild b/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
index 4b120d8e087d..980a68d80e3d 100644
--- a/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
+++ b/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
@@ -1,9 +1,8 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# Note: xemacs currently does not work with a hardened profile. If you
-# want to use xemacs on a hardened profile then compile with the
-# -nopie flag in CFLAGS or help fix bug #75028.
+# Note: xemacs currently does not work with position independent code
+# so the build forces the use of the -no-pie option
EAPI="5"
@@ -86,6 +85,10 @@ src_prepare() {
src_configure() {
local myconf=""
+ # Can't build with pie. See bug #75028
+ test-flags -no-pie >/dev/null && append-flags -no-pie
+ filter-flags -pie
+
if use X; then
myconf="${myconf} --with-widgets=athena"
@@ -156,14 +159,6 @@ src_configure() {
myconf="${myconf} --without-database"
fi
- # fixes #21264, this should be fixed in 21.4.21 and has been fixed
- # in 21.5 for sure. Now that 21.4.21 is out there is no real
- # evidence that this indeed got fixed, so keep these exceptions
- # for now.
- use alpha && myconf="${myconf} --with-system-malloc"
- use ppc64 && myconf="${myconf} --with-system-malloc"
- use ia64 && myconf="${myconf} --with-system-malloc"
-
# Enabling modules will cause segfaults outside the XEmacs build directory
use ia64 && myconf="${myconf} --without-modules"
@@ -184,6 +179,7 @@ src_configure() {
--compiler=$(tc-getCC) \
--prefix=/usr \
--with-ncurses \
+ --with-system-malloc \
--with-msw=no \
--mail-locking=flock \
--with-site-lisp=yes \
diff --git a/app-editors/xemacs/xemacs-21.4.24.ebuild b/app-editors/xemacs/xemacs-21.4.24.ebuild
index daf6425d4dac..4c1eaa52fd03 100644
--- a/app-editors/xemacs/xemacs-21.4.24.ebuild
+++ b/app-editors/xemacs/xemacs-21.4.24.ebuild
@@ -1,9 +1,8 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# Note: xemacs currently does not work with a hardened profile. If you
-# want to use xemacs on a hardened profile then compile with the
-# -nopie flag in CFLAGS or help fix bug #75028.
+# Note: xemacs currently does not work with position independent code
+# so the build forces the use of the -no-pie option
EAPI="5"
@@ -85,6 +84,10 @@ src_prepare() {
src_configure() {
local myconf=""
+ # Can't build with pie. See bug #75028
+ test-flags -no-pie >/dev/null && append-flags -no-pie
+ filter-flags -pie
+
if use X; then
myconf="${myconf} --with-widgets=athena"
@@ -155,14 +158,6 @@ src_configure() {
myconf="${myconf} --without-database"
fi
- # fixes #21264, this should be fixed in 21.4.21 and has been fixed
- # in 21.5 for sure. Now that 21.4.21 is out there is no real
- # evidence that this indeed got fixed, so keep these exceptions
- # for now.
- use alpha && myconf="${myconf} --with-system-malloc"
- use ppc64 && myconf="${myconf} --with-system-malloc"
- use ia64 && myconf="${myconf} --with-system-malloc"
-
# Enabling modules will cause segfaults outside the XEmacs build directory
use ia64 && myconf="${myconf} --without-modules"
@@ -186,6 +181,7 @@ src_configure() {
--compiler=$(tc-getCC) \
--prefix=/usr \
--with-ncurses \
+ --with-system-malloc \
--with-msw=no \
--mail-locking=flock \
--with-site-lisp=yes \
diff --git a/app-editors/xemacs/xemacs-21.5.34-r4.ebuild b/app-editors/xemacs/xemacs-21.5.34-r4.ebuild
index dec26af2cdbd..d806967cce40 100644
--- a/app-editors/xemacs/xemacs-21.5.34-r4.ebuild
+++ b/app-editors/xemacs/xemacs-21.5.34-r4.ebuild
@@ -1,9 +1,8 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# Note: xemacs currently does not work with a hardened profile. If you
-# want to use xemacs on a hardened profile then compile with the
-# -nopie flag in CFLAGS or help fix bug #75028.
+# Note: xemacs currently does not work with position independent code
+# so the build forces the use of the -no-pie option
EAPI=5
@@ -80,6 +79,10 @@ src_prepare() {
src_configure() {
local myconf=""
+ # bug #639642
+ test-flags -no-pie >/dev/null && append-flags -no-pie
+ filter-flags -pie
+
if use X; then
myconf="${myconf} --with-widgets=athena"