svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc

Cy Schubert Cy.Schubert at cschubert.com
Tue Sep 3 14:07:22 UTC 2019


In message <CAPyFy2CY-7O3JPaF4sshvcnAVH2dUfyePTPF5f8b022h7wpGxQ at mail.gma
il.com>
, Ed Maste writes:
> On Wed, 17 Apr 2019 at 20:50, Ed Maste <emaste at freebsd.org> wrote:
> >
> > On Wed, 17 Apr 2019 at 15:42, Cy Schubert <Cy.Schubert at 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 at cschubert.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

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






More information about the svn-src-head mailing list