From owner-svn-src-head@freebsd.org Wed Nov 1 10:49:14 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A27F6E5731F; Wed, 1 Nov 2017 10:49:14 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from mx1.mailbox.org (mx1.mailbox.org [80.241.60.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.mailbox.org", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34AC567E47; Wed, 1 Nov 2017 10:49:13 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 989EB46FFC; Wed, 1 Nov 2017 11:49:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:references:in-reply-to :subject:subject:from:from:message-id:date:date:received; s= mail20150812; t=1509533336; bh=YqEKgqu+L4NqtPhWqVC8+IdWXPNMvg0Wu Ap1ijbdtjg=; b=lcg1ehq1qE/8eyXx1LiiHiUpwWGFbXLkDmxnBfx8EddkpxxjG xCQ+ztrJCH046ZWXA5NtSNQdTtNGeQKmOq0TNV5ylgDg6bQRTm8b10d11B2vPqbl BsfBKTjyhHqNZRLCvau5C/BAjzbeD7nbslhSmyZJI/FtHipGBts/mY4Axz1OIpub Y0PNdynwGVUYIbuuJI/2BsAORjCr++f4IEUO8BxxhzRSlgB+ezQkDR3JG2Y++ZhL EgnNkFxrFJoDP/yp+4IsmueDvAlsSkUIwEnSVXKjRP3AqoL++YCP+RmSGVlPxKuj fBTxbaC8QGZ4jXzkjKTpSypdKlyQqEP+ql6Jw== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id NBvjeHaDQotd; Wed, 1 Nov 2017 11:48:56 +0100 (CET) Date: Wed, 01 Nov 2017 11:48:54 +0100 Message-ID: <87h8uexoix.wl-herbert@mailbox.org> From: "Herbert J. Skuhra" To: Mariusz Zaborski Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: 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... In-Reply-To: <201710281923.v9SJNvE5021346@repo.freebsd.org> References: <201710281923.v9SJNvE5021346@repo.freebsd.org> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2017 10:49:14 -0000 On Sat, 28 Oct 2017 21:23:57 +0200, Mariusz Zaborski 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 Again, after this commit libcasper.so.0 is installed to /usr/lib and not /lib: % ls -l /usr/lib/libcasper.so* lrwxr-xr-x 1 root wheel 14 Oct 29 10:51 /usr/lib/libcasper.so -> libcasper.so.0 -r--r--r-- 1 root wheel 22424 Oct 29 10:51 /usr/lib/libcasper.so.0 But usr/lib/libcasper.so.0 is listed in ObsoleteFiles.inc: % grep -B 2 libcasper.so /usr/src/ObsoleteFiles.inc # 20131202: libcapsicum and libcasper moved to /lib/ OLD_LIBS+=usr/lib/libcapsicum.so.0 OLD_LIBS+=usr/lib/libcasper.so.0 Thanks. -- Herbert