Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2015 19:18:43 +0000
From:      Miguel Clara <miguelmclara@gmail.com>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: rc.d provides and recent changes to rc.d scripts in base (was Re: Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy")
Message-ID:  <CADGo8CUTnSsoAMkOA7Opa=viQJazCccXkek9s_aeF_xMuanG-w@mail.gmail.com>
In-Reply-To: <6CFFAB58-D5E9-4355-9F0F-1A28CDCD68FF@gmail.com>
References:  <CADGo8CURnvyLD55zs5m=hgrG9g6xct0q4ZMSNiY%2BzLA1GBi0Ug@mail.gmail.com> <CAGHfRMC1_jRQxkxu-aaJJBvqb8oPvOrCiJwOWhLsR1A81YKrEw@mail.gmail.com> <CADGo8CWyyFJXR5fD%2BYe%2BSynzH0mqfh3Fsx8ULmQzOxTwR0Bd8A@mail.gmail.com> <FF6DD5BB-7D15-4224-8EF5-DA1C89908B1B@gmail.com> <B506CD41-42F8-4DAF-B2D3-B09C70A2A28D@gmail.com> <64AF7708-217B-4AC0-A47A-AD1B0BFF7EDC@gmail.com> <CADGo8CUCCjrW-3p9F4aiwRh1fbid%2BfNjikag55%2BNheJYBUt-Rg@mail.gmail.com> <885DA4D0-9644-4F06-97C9-04EAD7B4958C@gmail.com> <CADGo8CVjVig6HT6o2MYMzXizFLG62WMEFTe278nq8qoOg3-akQ@mail.gmail.com> <6CFFAB58-D5E9-4355-9F0F-1A28CDCD68FF@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 24, 2015 at 6:58 PM, Garrett Cooper <yaneurabeya@gmail.com>
wrote:

> On Feb 24, 2015, at 10:53, Miguel Clara <miguelmclara@gmail.com> wrote:
>
> >
> > On Tue, Feb 24, 2015 at 6:13 PM, Garrett Cooper <yaneurabeya@gmail.com>
> wrote:
> > On Feb 24, 2015, at 6:35, Miguel Clara <miguelmclara@gmail.com> wrote:
> >
> > > ]# rcorder /etc/rc.d/* /usr/local/etc/rc.d/* >/dev/null
> > > rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision
> `kerberos'
> > > rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision
> `named'
> > > rcorder: file `/usr/local/etc/rc.d/dnscrypt-proxy' is before unknown
> provision `unbound'
> > > rcorder: Circular dependency on file `/usr/local/etc/rc.d/webcamd'.
> > > rcorder: Circular dependency on provision `dbus' in file
> `/usr/local/etc/rc.d/webcamd'.
> > > rcorder: Circular dependency on provision `ldconfig' in file
> `/usr/local/etc/rc.d/dnscrypt-proxy'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/devfs'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/mdconfig2'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/newsyslog'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/syslogd'.
> > > rcorder: Circular dependency on provision `NETWORKING' in file
> `/etc/rc.d/kdc'.
> > > rcorder: Circular dependency on provision `ldconfig' in file
> `/etc/rc.d/SERVERS'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/archdep'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/SERVERS'.
> > > rcorder: requirement `tpmd' in file `/usr/local/etc/rc.d/tcsd' has no
> providers.
> > > rcorder: Circular dependency on file `/usr/local/etc/rc.d/uuidd'.
> > > rcorder: requirement `usbd' in file `/usr/local/etc/rc.d/hald' has no
> providers.
> > >
> > > # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | awk
> =E2=80=98/SERVERS|cleanvar|ldconfig|dbus/ { print NR, $0 }=E2=80=99
> > > rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision
> `kerberos'
> > > rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision
> `named'
> > > rcorder: file `/usr/local/etc/rc.d/dnscrypt-proxy' is before unknown
> provision `unbound'
> > > rcorder: Circular dependency on file `/usr/local/etc/rc.d/webcamd'.
> > > rcorder: Circular dependency on provision `dbus' in file
> `/usr/local/etc/rc.d/webcamd'.
> > > rcorder: Circular dependency on provision `ldconfig' in file
> `/usr/local/etc/rc.d/dnscrypt-proxy'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/devfs'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/mdconfig2'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/newsyslog'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/syslogd'.
> > > rcorder: Circular dependency on provision `NETWORKING' in file
> `/etc/rc.d/kdc'.
> > > rcorder: Circular dependency on provision `ldconfig' in file
> `/etc/rc.d/SERVERS'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/archdep'.
> > > rcorder: Circular dependency on provision `mountcritremote' in file
> `/etc/rc.d/SERVERS'.
> > > rcorder: requirement `tpmd' in file `/usr/local/etc/rc.d/tcsd' has no
> providers.
> > > rcorder: Circular dependency on file `/usr/local/etc/rc.d/uuidd'.
> > > rcorder: requirement `usbd' in file `/usr/local/etc/rc.d/hald' has no
> providers.
> > > cleanvar: Command not found.
> > > dbus/: Command not found.
> > >
> > > Note that this is still with the change to dnscrypt-ptoxy REQUIRE
> (adding ldconfig)
> >
> > Your rcorder is 50 shades of broken :(. Please remove all local
> modifications to scripts, then repost the output of the rcorder commands
> again. I suspect what=E2=80=99s going wrong is the result of some of my c=
hanges to
> remove etc/rc.d based on build knobs=E2=80=A6
> > Cheers,
> >
> > So much like the movies them... damn.... :X
> >
> > I don't recall any changes to the rc.d scripts except the one to
> dnscrypt-proxy (adding the ldconfig REQUIRE)
>
> Adding ldconfig can screw everything up, depending on what the ordering
> is. Dependency loops can be longer than you think.


Hum... removing it gives the same output.. and the issue with the order
already existed anyway, so I don't think the change to dnscrypt-proxy is
the main issue here...


> > I also don't really know what to make of the output... expect this part=
:
> >
> > "Circular dependency on provision", but the man says:
> > A set of files has a circular dependency which was    detected while
> processing the stated condition.
> >
> > So it should mean that 'A' requires 'B' but 'B' requires 'A'... but thi=
s
> does not seem to be the case=E2=80=A6
>
> Not directly, but indirectly, maybe.
>
> > I guess I'll have to go one by one and see if I can identify issue. But
> first I'll make sure the ports that use those rc.d scripts are up to date=
.
>
> Some of your ports are depending on named (which is no longer in base),
> and unbound (which isn=E2=80=99t installed if MK_UNBOUND=3Dno).
>
> It looks like you=E2=80=99re installing world with MK_KERBEROS=3Dno.
>

I'm used the provided "GENERIC-NODEBUG" config, and I'm jus running "make
installworld" no options... just followed the guide (1).
make delete-old and make delete-old-libs were both run...



> I was going to create a dummy provider called =E2=80=9CDNS=E2=80=9D for a=
ll scripts to
> depend on (and named/unbound would PROVIDE: DNS), but it would require
> backporting that script everywhere (and I haven=E2=80=99t done that quite=
 yet=E2=80=A6).
>
> Please also run `make delete-old` and delete any stale rc.d scripts if
> prompted by mergemaster/etcupdate.


As stated above make delete-old was run and re-runing show nothing to
delete.

>
>
HTH,
>


(1) https://www.freebsd.org/doc/handbook/makeworld.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGo8CUTnSsoAMkOA7Opa=viQJazCccXkek9s_aeF_xMuanG-w>