svn commit: r325062 - in head/lib: . libcasper libcasper/libcasper libcasper/services libcasper/services/cap_dns libcasper/services/cap_dns/tests libcasper/services/cap_grp libcasper/services/cap_g...

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Tue Oct 31 03:54:37 UTC 2017


> On Oct 28, 2017, at 12:23, Mariusz Zaborski <oshogbo at FreeBSD.org> wrote:
> 
> Author: oshogbo
> Date: Sat Oct 28 19:23:57 2017
> New Revision: 325062
> URL: https://svnweb.freebsd.org/changeset/base/325062
> 
> Log:
>  Introduce caspermocks.
> 
>  The idea behinds mocks is that we don't need to ifdef a lot of code in
>  tools itself but those defines are hidden in the casper library.
>  Right now the mocks are implemented as define/inlines functions.
>  There was a very long discussion how this should be implemented.
>  This approach has some advantages like we don't need to link to any additional
>  libraries. Unfortunately there are also some disadvantages for example it is
>  easy to get library out of sync between two versions of functions or that we
>  need extra define to compile program with casper support.
>  This isn't an ideal solution but it's good enough for now and should simplify
>  capsicumizing programs. This also doesn't close us any other ways to do those
>  mocks and this should evolve in time.
> 
>  Discussed with:	pjd, emaste, ed, rwatson, bapt, cem, bdrewery
>  Differential Revision:    https://reviews.freebsd.org/D8753

This change broke tinderbox/Jenkins for powerpc and sparc64: https://ci.freebsd.org/job/FreeBSD-head-powerpc-build/1865/console .
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20171030/5311e27a/attachment.sig>


More information about the svn-src-all mailing list