Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 04:11:37 +0100
From:      Miguel C <miguelmclara@gmail.com>
To:        Barry Allard <barry.allard@gmail.com>
Cc:        NGie Cooper <yaneurabeya@gmail.com>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: [fix] Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy"
Message-ID:  <CADGo8CVr8BOHnLe3sxJQYfmS7_BLpRQ2WyLGq4OqRsLf6Ls8aw@mail.gmail.com>
In-Reply-To: <D4D8105F-547D-4F60-8BFF-D2F60BD24464@gmail.com>
References:  <D4D8105F-547D-4F60-8BFF-D2F60BD24464@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I was testing with this again recently and it seems the big difference is
local_unbound!

BtW Barry thanks for the suggestion but I (and I think others) mentioned in
the thread that adding ldconfig REQUIRE in dnscrypt made no difference.

A box with dnscrypt+unbound doesn't have the issue,so I compared the 2 rc.d
scripts and noticed unbound doesn't use:

"# BEFORE: NETWORKING"

btw why would we want local_unbound "BEFORE" networking? doesn't it make
more sense to run it after, If something fails there (NETWORKG)
local_unbound won't be usable anyway, or am I saying something stupid? :P

Melhores Cumprimentos // Best Regards
-----------------------------------------------
*Miguel Clara*
*IT - Sys Admin & Developer*

On Fri, Jul 24, 2015 at 11:35 PM, Barry Allard <barry.allard@gmail.com>
wrote:

> Folks,
>
> The issue is that ldconfig must run before dnscrypt-proxy so it can find
> the sodium shared lib.
>
> One simple fix is to change /usr/local/etc/rc.d/dnscrypt-proxy (might not
> cover every edge case, but it appears to work.)
>
> # PROVIDE: dnscrypt_proxy
> # REQUIRE: ldconfig cleanvar
> # BEFORE: SERVERS
> # KEYWORD: shutdown
>
> No more circular depends and ldconfig is always first.
>
> $ rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | awk
> '/SERVERS|dnscrypt-proxy|cleanvar|ldconfig|dbus/{print NR,$0}'
> 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: requirement `tpmd' in file `/usr/local/etc/rc.d/tcsd' has no
> providers.
> rcorder: requirement `slapd' in file `/usr/local/etc/rc.d/postfix' has no
> providers.
> rcorder: requirement `slapd' in file `/usr/local/etc/rc.d/dovecot' has no
> providers.
> 18 /etc/rc.d/cleanvar
> 67 /etc/rc.d/ldconfig
> 68 /usr/local/etc/rc.d/dnscrypt-proxy
> 75 /etc/rc.d/SERVERS
>
> (Feel free to fw: to the list. Also documented upstream
> https://github.com/jedisct1/dnscrypt-proxy/issues/242 in case someone
> else runs into this.)
>
> Regards,
> Barry Allard
>
>



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