From owner-freebsd-current@freebsd.org Thu Aug 27 03:12:17 2015 Return-Path: Delivered-To: freebsd-current@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 6BE369C3DFA for ; Thu, 27 Aug 2015 03:12:17 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 37A4E2EF for ; Thu, 27 Aug 2015 03:12:17 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by iods203 with SMTP id s203so42745635iod.0 for ; Wed, 26 Aug 2015 20:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=a1P+ngaAfhNszO2NPC861Yn2+47AewJ3BkuFqp67Y64=; b=TKxcPTv0VkaZZyUvaHvTx4GZZJU04vLAmi7SxZYVeMrJDS+SDBcZbzkGv6/3KJceyu i5Jeu0P8aQYCz6I5RGlktPypH3BPMuLwYSObsRoD65jLcJjbmuDTUHdCvuacTsA+HkyQ T0ufZ2MFGhdoZkMHKJ6wl3F8J1HM1pCj53XqPORA95IVupJ5bgAYRM4fubPc5spWQlLF h98UdSrdVdvgJU3B5ZmdrqTCHa3IczmvYgwqpKH9eMCnaEGgKSkg4xZKiISOsUeWORPG 4PdQjztR82jaJFAyHA9Skk9kRMYya125fEOmpDpU009/WqkH6LvvNjJYOf0+V6G4sbG7 7sog== X-Received: by 10.107.3.149 with SMTP id e21mr7325525ioi.19.1440645136505; Wed, 26 Aug 2015 20:12:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.67.11 with HTTP; Wed, 26 Aug 2015 20:11:37 -0700 (PDT) In-Reply-To: References: From: Miguel C Date: Thu, 27 Aug 2015 04:11:37 +0100 Message-ID: Subject: Re: [fix] Shared object "libsodium.so.13" not found, required by "dnscrypt-proxy" To: Barry Allard Cc: NGie Cooper , freebsd-current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2015 03:12:17 -0000 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 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 > >