cvs commit: ports/java/jdk16 Makefile

Philip M. Gollucci pgollucci at p6m7g8.com
Wed Jun 9 04:11:31 UTC 2010


On 6/8/2010 11:51 PM, Greg Lewis wrote:
> The build uses the following logic to detect the presence of sigignore:
> 
> ifeq ($(OS_VENDOR),FreeBSD)
> OS_RELDATE := $(shell sysctl kern.osreldate | cut -d' ' -f2)
> HAS_SIGIGNORE := $(shell if [ $(OS_RELDATE) -ge 800502 -a $(OS_RELDATE) -lt 900000 -o $(OS_RELDATE) -ge 900003 ]; then echo "1"; fi)
> ifeq ($(HAS_SIGIGNORE),1)
> override HAVE_SIGIGNORE          = true
> endif
> endif
> 

Why not do something like what devel/apr1 does:

patch the file to be %%OSVERSION%% here, then in post-patch replace that
token with the value.  OSVERSION is overloaded correctly on pointyhat
and tb(hence QAT) whereas sysctl is not.


post-patch:
    ${REINPLACE_CMD} -e 's/OSVERSION/${OSVERSION}/g' \
        ${APR_WRKDIR}/build/apr_hints.m4




-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20100609/b7e45c64/signature.pgp


More information about the cvs-all mailing list