From owner-freebsd-stable@freebsd.org Mon May 28 13:24:28 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FE20EF762B for ; Mon, 28 May 2018 13:24:28 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FEF46FBFF for ; Mon, 28 May 2018 13:24:27 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id w4SDOLEF025853 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 28 May 2018 15:24:21 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id w4SDOKfp025850 for ; Mon, 28 May 2018 15:24:21 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Mon, 28 May 2018 15:24:20 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD stable Subject: Re: ldconfig(8) oddity on 11.2-BETA3? In-Reply-To: <20180528114427.GA32825@elch.exwg.net> Message-ID: References: <20180527154219.GR88128@kib.kiev.ua> <20180528114427.GA32825@elch.exwg.net> User-Agent: Alpine 2.21.999 (BSF 260 2018-02-26) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 13:24:28 -0000 On Mon, 28 May 2018 13:44+0200, Christoph Moench-Tegeder wrote: > has synth some special "optimization" for handling ldconfig? Looking at src/replicant.adb of synth, I see it runs ldconfig when setting up each chroot env using this procedure: ------------------------ -- execute_ldconfig -- ------------------------ procedure execute_ldconfig (id : builders) is smount : constant String := get_slave_mount (id); bsd_command : constant String := chroot & smount & " /sbin/ldconfig -m /lib /usr/lib"; lin_command : constant String := chroot & smount & " /usr/sbin/ldconfig /lib /usr/lib"; begin case platform_type is when dragonfly | freebsd => execute (bsd_command); when linux => execute (lin_command); when netbsd | solaris => null; when unknown => null; end case; end execute_ldconfig; synth probably expects the packages to handle localbase libraries upon installation in each chroot. I can see one reason for not making /etc/rc.subr accessible inside each chroot, and thus a copy of the ldconfig startup script, and that is to prevent services from being started automatically within each chroot. -- Trond.