Re: Failing buildword due to execution permission (with fix)

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Mon, 9 Nov 2015 17:27:27 -0800
On 11/9/2015 5:17 PM, Garrett Cooper wrote:
> 
>> On Nov 9, 2015, at 16:13, Bryan Drewery <bdrewery_at_FreeBSD.org> wrote:
> 
> 
> ...
> 
>> If this is a shell file then it is best to invoke it with 'sh' rather
>> than a chmod/#!. The src checkout should be noexec-safe.
> 
> Right. I think it'd be a good idea for me to hunt down other issues though in the build by setting -o noexec.
> 
> 
> The only thing that concerns me with doing that is that it could result in weirdness, e.g. The osreldate.h generation script in include/ .
> 

It prepends 'sh'.

include/Makefile:MK_OSRELDATE_SH=       ${.CURDIR}/mk-osreldate.sh
include/Makefile:           sh ${MK_OSRELDATE_SH}

-- 
Regards,
Bryan Drewery


Received on Tue Nov 10 2015 - 00:27:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC