GNU bug report logs - #11979
24.1.50; [PATCH] paxctl: file temacs does not have a PT_PAX_FLAGS program header

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Wed, 18 Jul 2012 16:30:01 UTC

Severity: normal

Tags: patch

Found in version 24.1.50

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11979 in the body.
You can then email your comments to 11979 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11979; Package emacs. (Wed, 18 Jul 2012 16:30:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Mueller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 18 Jul 2012 16:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Mueller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50;
	paxctl: file temacs does not have a PT_PAX_FLAGS program header
Date: Wed, 18 Jul 2012 18:22:42 +0200
This is a fallout from bug #11398:

If the paxctl utility is present, but the system's toolchain doesn't
support the PT_PAX_FLAGS program header, then "paxctl -r temacs" will
fail:

   test "no" = "yes" || \
     test "X/sbin/paxctl" = X || /sbin/paxctl -r temacs
   file temacs does not have a PT_PAX_FLAGS program header, try conversion
   make[1]: *** [temacs] Error 1
   make[1]: Leaving directory
   `/var/build/portage/app-editors/emacs-24.1/work/emacs-24.1/src'
   make: *** [src] Error 2

A patch is included below. I've tested it with binutils-2.22, both
with and without PT_PAX_FLAGS support.

See also downstream bug: <https://bugs.gentoo.org/426394>


--- emacs-orig/ChangeLog
+++ emacs/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-18  Ulrich Müller  <ulm <at> gentoo.org>
+
+	* configure.ac: Disable paxctl if binaries don't have a
+	PT_PAX_FLAGS program header.
+
 2012-07-17  Dmitry Antipov  <dmantipov <at> yandex.ru>
 
 	Fix toolkit configuration report.
--- emacs-orig/configure.ac
+++ emacs/configure.ac
@@ -736,6 +736,12 @@
 if test $opsys = gnu-linux; then
   AC_PATH_PROG(PAXCTL, paxctl,,
     [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin])
+  if test "X$PAXCTL" != X; then
+    AC_MSG_CHECKING([whether binaries have a PT_PAX_FLAGS header])
+    AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
+      [if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then AC_MSG_RESULT(yes)
+      else AC_MSG_RESULT(no); PAXCTL=""; fi])
+  fi
 fi
 
 ## Need makeinfo >= 4.7 (?) to build the manuals.




Changed bug title to '24.1.50; [PATCH] paxctl: file temacs does not have a PT_PAX_FLAGS program header' from '24.1.50; paxctl: file temacs does not have a PT_PAX_FLAGS program header' Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Thu, 19 Jul 2012 10:30:02 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Thu, 19 Jul 2012 10:30:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sun, 05 Aug 2012 05:09:01 GMT) Full text and rfc822 format available.

Notification sent to Ulrich Mueller <ulm <at> gentoo.org>:
bug acknowledged by developer. (Sun, 05 Aug 2012 05:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 11979-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 11979-done <at> debbugs.gnu.org
Subject: Re: bug#11979: 24.1.50;
	paxctl: file temacs does not have a PT_PAX_FLAGS program header
Date: Sun, 05 Aug 2012 01:01:07 -0400
Version: 24.2

Thanks; applied.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Sep 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.