grub2: remove violent hack necessary to build grub 2.00.

Grub 2.02 no longer uses nested functions and doesn't need a RWX stack, so
no paxctl +m is necessary (on some platforms). Hurray!
This commit is contained in:
maya 2018-05-23 10:45:54 +00:00
parent c8e72df113
commit acece760bd

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2018/05/23 07:56:53 triaxx Exp $
# $NetBSD: Makefile,v 1.13 2018/05/23 10:45:54 maya Exp $
DISTNAME= grub-2.02
PKGNAME= ${DISTNAME:S/grub/grub2/}
@ -135,15 +135,6 @@ SUBST_MESSAGE.fix-sed-tabs= Fixing tabulations for sed in scripts.
SUBST_FILES.fix-sed-tabs= util/grub.d/*.in
SUBST_SED.fix-sed-tabs= -e 's,\\t, ,g'
#
# grub-script-check crashes from enabling executable stack, paxctl +m it if possible.
# XXX not needed with grub 2.02
#
post-configure:
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
${RUN}${AWK} '/^grub-script-check.1:/{print;print "\t-paxctl +m grub-script-check";next}1' \
${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
#
# Remove executable bit from non-executable files.
#