* bug#11979: 24.1.50; paxctl: file temacs does not have a PT_PAX_FLAGS program header
@ 2012-07-18 16:22 Ulrich Mueller
2012-08-05 5:01 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Mueller @ 2012-07-18 16:22 UTC (permalink / raw)
To: 11979
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@gentoo.org>
+
+ * configure.ac: Disable paxctl if binaries don't have a
+ PT_PAX_FLAGS program header.
+
2012-07-17 Dmitry Antipov <dmantipov@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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#11979: 24.1.50; paxctl: file temacs does not have a PT_PAX_FLAGS program header
2012-07-18 16:22 bug#11979: 24.1.50; paxctl: file temacs does not have a PT_PAX_FLAGS program header Ulrich Mueller
@ 2012-08-05 5:01 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-08-05 5:01 UTC (permalink / raw)
To: 11979-done
Version: 24.2
Thanks; applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-05 5:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 16:22 bug#11979: 24.1.50; paxctl: file temacs does not have a PT_PAX_FLAGS program header Ulrich Mueller
2012-08-05 5:01 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).