Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2019 18:17:07 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        Cy Schubert <Cy.Schubert@cschubert.com>, "O. Hartmann" <ohartmann@walstatt.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc
Message-ID:  <201904180117.x3I1H70l065558@slippy.cwsent.com>
In-Reply-To: Message from Ed Maste <emaste@freebsd.org> of "Wed, 17 Apr 2019 21:07:18 -0400." <CAPyFy2CY-7O3JPaF4sshvcnAVH2dUfyePTPF5f8b022h7wpGxQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <CAPyFy2CY-7O3JPaF4sshvcnAVH2dUfyePTPF5f8b022h7wpGxQ@mail.gma
il.com>
, Ed Maste writes:
> On Wed, 17 Apr 2019 at 20:50, Ed Maste <emaste@freebsd.org> wrote:
> >
> > On Wed, 17 Apr 2019 at 15:42, Cy Schubert <Cy.Schubert@cschubert.com> wrote
> :
> > >
> > > -.if !exists(/usr/include/casper/cap_fileargs.h)
> > >  CASPERINC+=    ${SRCTOP}/lib/libcasper/services/cap_fileargs/cap_filearg
> s.
> > > h
> > > -.endif
> >
> > Yes I think this change is correct as an immediate workaround for this
> > issue (until we sort out header bootstrapping in a more holistic way).
> > Please commit it, or I will if you don't get to it soon.
>
> Or maybe this, similar to the existing tests in tools/build/Makefile:
>
> Index: tools/build/Makefile
> ===================================================================
> --- tools/build/Makefile        (revision 346340)
> +++ tools/build/Makefile        (working copy)
> @@ -59,7 +59,10 @@
>  INCS+=         libcasper.h
>  .endif
>
> -.if !exists(/usr/include/casper/cap_fileargs.h)
> +.if exists(/usr/include/casper/cap_fileargs.h)
> +_WITH_FA_OPEN!= grep -c FA_OPEN /usr/include/casper/cap_fileargs.h || true
> +.endif
> +.if !defined(_WITH_FA_OPEN) || ${_WITH_FA_OPEN} == 0
>  CASPERINC+=    ${SRCTOP}/lib/libcasper/services/cap_fileargs/cap_fileargs.h
>  .endif

This only tests for the FA_OPEN. It will miss any new macro definitions 
should there be any at some point in the future.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904180117.x3I1H70l065558>