public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mats Lidell" <matsl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/xemacs/
Date: Sun, 10 Dec 2017 12:39:39 +0000 (UTC)	[thread overview]
Message-ID: <1512909320.de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf.matsl@gentoo> (raw)

commit:     de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf
Author:     Mats Lidell <matsl <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 10 12:34:21 2017 +0000
Commit:     Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Sun Dec 10 12:35:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de27d8e5

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

 app-editors/xemacs/xemacs-21.4.24-r1.ebuild | 18 +++++++-----------
 app-editors/xemacs/xemacs-21.4.24.ebuild    | 18 +++++++-----------
 app-editors/xemacs/xemacs-21.5.34-r4.ebuild |  9 ++++++---
 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 4b120d8e087..980a68d80e3 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 daf6425d4da..4c1eaa52fd0 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 dec26af2cdb..d806967cce4 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"


             reply	other threads:[~2017-12-10 12:39 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10 12:39 Mats Lidell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-01 16:29 [gentoo-commits] repo/gentoo:master commit in: app-editors/xemacs/ Arthur Zamarin
2024-10-31 19:36 Arthur Zamarin
2024-10-31 17:05 Arthur Zamarin
2024-10-31 15:21 Sam James
2024-10-31 15:21 Sam James
2024-10-31 15:21 Sam James
2024-09-28 22:43 Mats Lidell
2024-07-15 22:59 Eli Schwartz
2024-07-01 14:32 Mats Lidell
2023-08-20  5:43 Sam James
2023-08-19 16:09 Arthur Zamarin
2023-08-19 16:08 Arthur Zamarin
2023-08-19 16:06 Arthur Zamarin
2023-08-19 15:56 Arthur Zamarin
2023-05-10 21:09 Mats Lidell
2022-12-25 17:28 Mats Lidell
2022-12-24 15:41 Mats Lidell
2022-12-18  7:46 Sam James
2022-12-16  4:30 Sam James
2022-08-31 20:26 Mats Lidell
2022-08-27 15:29 Matt Turner
2022-05-07  8:54 Ulrich Müller
2022-03-23  1:02 Sam James
2022-03-19 23:17 David Seifert
2021-12-21  3:39 Yixun Lan
2021-12-12 13:22 Mats Lidell
2021-12-12 13:22 Mats Lidell
2021-12-10 23:22 Mats Lidell
2021-12-10 23:22 Mats Lidell
2021-12-10 23:22 Mats Lidell
2021-11-28 22:53 Mats Lidell
2021-11-25 19:30 Mats Lidell
2021-10-16 18:11 Mats Lidell
2021-07-17 11:26 David Seifert
2021-05-02 12:42 Mikle Kolyada
2021-01-10  9:08 Mats Lidell
2020-09-26 14:33 Aaron Bauman
2020-09-03 23:57 Sam James
2020-08-21 15:36 Agostino Sarubbo
2020-08-21 15:31 Agostino Sarubbo
2020-08-21 15:25 Agostino Sarubbo
2020-08-21  4:40 Sam James
2020-04-04 11:07 Sergei Trofimovich
2020-03-26  6:38 Mats Lidell
2019-07-27 12:54 Aaron Bauman
2018-11-28  9:58 Michał Górny
2018-03-28 19:09 Matt Turner
2018-03-04 16:23 Tobias Klausmann
2018-02-11 10:01 Michał Górny
2018-02-05 22:36 Sergei Trofimovich
2018-01-27 23:29 Mikle Kolyada
2018-01-20 22:21 Sergei Trofimovich
2018-01-20 20:10 Sergei Trofimovich
2018-01-13 21:14 Mats Lidell
2018-01-05 22:07 David Seifert
2017-12-10 21:44 Mats Lidell
2017-10-08 11:00 Michał Górny
2017-08-09 12:17 Anthony G. Basile
2017-06-21 10:27 Alexis Ballier
2017-06-17 16:28 Mats Lidell
2017-04-03 20:56 Mats Lidell
2017-03-31 20:46 Andreas Hüttel
2016-02-09 21:40 Ulrich Müller
2015-10-08 12:03 Mats Lidell
2015-10-06 13:28 Mikle Kolyada
2015-10-04 21:10 Julian Ospald
2015-08-10 23:54 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1512909320.de27d8e5c53b1aaca10875b5fe5f5a19a7a9dcaf.matsl@gentoo \
    --to=matsl@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox