From owner-freebsd-questions@freebsd.org Sun Apr 24 22:42:26 2016 Return-Path: Delivered-To: freebsd-questions@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 E7B00B1BB08 for ; Sun, 24 Apr 2016 22:42:26 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from lb3-smtp-cloud2.xs4all.net (lb3-smtp-cloud2.xs4all.net [194.109.24.29]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "*.xs4all.nl", Issuer "GlobalSign Domain Validation CA - SHA256 - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 915C71A1A for ; Sun, 24 Apr 2016 22:42:25 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud2.xs4all.net with ESMTP id mNhC1s00707iGuj01NhDac; Mon, 25 Apr 2016 00:41:14 +0200 Received: from rsmith (uid 1001) (envelope-from rsmith@xs4all.nl) id 12385 by slackbox.erewhon.home (DragonFly Mail Agent v0.11); Mon, 25 Apr 2016 00:41:12 +0200 Date: Mon, 25 Apr 2016 00:41:12 +0200 From: Roland Smith To: Odhiambo Washington Cc: User Questions Subject: Re: Sane way to resolve potential conflicts in the system Message-ID: <20160424224112.GC66409@slackbox.erewhon.home> Mail-Followup-To: Odhiambo Washington , User Questions References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JgQwtEuHJzHdouWu" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 22:42:27 -0000 --JgQwtEuHJzHdouWu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 23, 2016 at 02:03:40PM +0300, Odhiambo Washington wrote: > I quite often get the following warning: >=20 > /usr/bin/ld: warning: libz.so.5, needed by /usr/local/lib/libcurl.so, may > conflict with libz.so.6 > /usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libssh2.so.1, m= ay > conflict with libz.so.6 Looks like your ports need updating! > What is the best way to resolve the two? Use a local server (or a jail on your workstation) as a build and test serv= er. On that server, keep the ports tree up-to-date and use e.g. portmaster to build all ports you need on *any* server. Then use rsync to distribute that server's /usr/local/ and /var/db/pkg/ to other servers. This is relatively fast and easy to automate. Of course this only works if all machines run the same architecture and major version. Note that after the /usr/local update, you need to re-install the local configuration files in /usr/local/etc and re-start the services running from /usr/local on every machine. This does mean that some machines will have software installed that they do= n't need. But as long as any services among them aren't enabled in rc.conf, I'd consider that acceptable for the sake of simplicity. But if necessary, you could make scripts to =E2=80=98pkg delete=E2=80=99 the stuff you don't need= on a per-machine basis. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --JgQwtEuHJzHdouWu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJXHUuIAAoJEED21dyjijPgb/AQAMphBrMjFOJsJfj/xYeHtvtW TYN8u1yHHPgSY9LiNJOjm13KVt/kBNHX6WgGdLQpRYS0WTzwGuvFdFv99zsCKZE8 zYqCs07ICp0Ed0Kmet7NPKP2UzbZ6i6u6hDs3edklqFJADjH/oe42U8faiCNBBEO IMeUbO6iFBnWliPa6EPaILsnlOcMXNZfSq+OXEu4GKyiSlCn2rAZe56kfaF4QEg1 BfW2DWlr9F41/lAe12p1woyXFfbaGNFLXmj/yp/X8xub0N8KBlggvsifuSQtoAxN 95Lu7OVRG+A9yb0v8ayEWJL6J0enJlPQFa//wNRisEZHoqzU3bUnJ1KCaR22ybOf RpfHk4gOLW+CcmwGkONGSZH7Y67N001OazBxLzgjjJfMTngUsHKOx4cx5k40dJDM FSPFpP8GG2jxNzE4OgCQ4ILK+BHIe9EFJQZ8QL0VfyYEE/Yg5I8Ju3vAofUChRIQ SR4g9zt1yizmB7/oM1HZmC3GjYHkKr9NivZhgq/O7G4lv4zwcXB/cpRL+lDX2whJ 5tYm0mXMKJP0uGanwo26IxEDXXDEySIKR2sBCpdXGR8V2A0ioSrqNqLWcxsTBxMH wcI0mrh05lXWdNxoqOdHSMhge5FQo+vwFdLWvgjSSkSbA649hE+ia+BrkJp6/Sc8 INlqroD4NI6Fu0PTooym =5dCs -----END PGP SIGNATURE----- --JgQwtEuHJzHdouWu--