Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 15:24:20 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: ldconfig(8) oddity on 11.2-BETA3?
Message-ID:  <alpine.BSF.2.21.999.1805281509400.89219@mail.fig.ol.no>
In-Reply-To: <20180528114427.GA32825@elch.exwg.net>
References:  <CAJuc1zPurH94998BhcHGZOqAu04VV3pNFWnXBq-FknpydNWZqQ@mail.gmail.com> <CAALwa8kUTdN1FV8e5d0oOs5O%2BEKZ_ueKjk5UA16%2BH3%2BEt5GrqQ@mail.gmail.com> <20180527154219.GR88128@kib.kiev.ua> <CAJuc1zMHhQjF=jCNLeyNzRYtEDAAYMT%2BX1jX9MV4MyRVU0PsHQ@mail.gmail.com> <20180528114427.GA32825@elch.exwg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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