pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/52452: qt3-tools build 'uic' stuck in "fdclose" w/modular Xorg on i386-8.0_BETA and i386-8.99.1
The following reply was made to PR pkg/52452; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/52452: qt3-tools build 'uic' stuck in "fdclose" w/modular
Xorg on i386-8.0_BETA and i386-8.99.1
Date: Wed, 2 Aug 2017 21:41:43 -0500 (CDT)
On Wed, 2 Aug 2017, John D. Baker wrote:
> Setting:
>
> paxctl +m ${WRKOBJDIR}/x11/qt3-tools/work/qt-x11-free-3.3.8/bin/uic
>
> Allowed it to complete. Again, this is only needed when using modular
> Xorg.
I've been trying to figure out how to automate this. Qt being what it is,
${WRKSRC}/tools/designer/uic/Makefile
is generated during the "configure" phase. A suitable SUBST arrangement
should do the trick, but my 'sed'-foo is weak. By itself, the following:
sed '/-o \$(TARGET)/a\
paxctl +m $(TARGET)
'
would add the necessary bits, but trying to cast it into something that
will satisfy both 'sed' and 'make' has been elusive so far. Something
like:
.if !empty(MACHINE_PLATFORM:MNetBSD-[89].*-i386)
SUBST_CLASSES+= mprotect
SUBST_STAGE.mprotect= post-configure
SUBST_MESSAGE.mprotect= Arrange for PAX MPROTECT flags
SUBST_FILES.mprotect= ${WRKSRC}/tools/designer/uic/Makefile
SUBST_SED.mprotect= -e '/-o \$$(TARGET)/a\
paxctl +m $(TARGET)
'
.endif
except the above "SUBST_SED" program won't satisfy both 'make' and 'sed'
at the same time. As I said, my 'sed'-foo is weak.
Another mechanism is to do something in a "post-configure:" target, but
again, getting 'sed' and 'make' to both be happy is being elusive.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index