Date: Tue, 20 May 2014 16:48:58 +0100 From: Matthew Seaman <matthew@freebsd.org> To: freebsd-ports@freebsd.org Subject: Re: Net-SNMP conflict Message-ID: <537B796A.7060103@freebsd.org> In-Reply-To: <537B613A.7010604@wintek.com> References: <537B0FCB.7020608@altadena.net> <2d991d03fb98e2304c9abf70bcd14f78@mail.feld.me> <537B613A.7010604@wintek.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iGfLAe9ceQuRUxnpM5dEDnK4Oi1G4coUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/20/14 15:05, Richard Kuhns wrote: > Mark Felder wrote: >> On 2014-05-20 03:18, Pete Carah wrote: >>> PLEASE don't automatically install pkg during the build of ANY other >>> package; if this happens in the middle of a portupgrade -a on a syste= m >>> without pkgng, the result is not pretty; all packages built after >>> net-snmp have a duplicated origin, among other things. I hope I can >>> recover the system since it is supposed to be a production server. >>> >>> Yes, I realize I'll have to convert. However, this forced install >>> doesn't convert the database so the pkg database and /var/db/pkg end = up >>> inconsistent, and I can't tell what is really installed on all of the= >>> packages that show a duplicated origin. >>> >> >> ports-mgmt/pkg should not be a dependency of any port. Are you saying >> this happened? Can you identify which port? Actually, pkg(8) being a dependency of something else is OK. It's pkg(8) itself that should not have any dependencies. >> _______________________________________________ >=20 >=20 > The Makefile for net-mgmt/net-snmp contains this snippet: >=20 > # pkg-1.2 cannot handle this dependency well. > .if !defined(WITH_PKGNG) > LIB_DEPENDS=3D libpkg.so:${PORTSDIR}/ports-mgmt/pkg > .endif >=20 net-snmpd uses pkg(8) to extract the list of installed packages. To the OP: just having pkg(8) installed out of ports and sitting on your drive will not hurt you. You have to start running it before anything (nice or nasty) would happen. If you don't want to switch to pkgng just yet, then don't run pkg2ng. Similarly don't add 'WITH_PKGNG=3Dyes' to /etc/make.conf (if you're going= to be compiling your own ports using portmaster(8) or otherwise) and don't use pkg(8) to install any packages. Everything that is pkgng aware should be using somewhat more sophisticated tests than just 'is /usr/local/sbin/pkg installed' to determine if the system is pkgng-ified or not. Cheers, Matthew --iGfLAe9ceQuRUxnpM5dEDnK4Oi1G4coUB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTe3lxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnJ6cP/iAn9C9/ifR6h7ksIkKhL+u/ bReV7dFzISNKcXmtNvvM9j+H8Bdxh39sctudukgbW0L7YM4NudlQaxA2o1oaxlLk 7Shp2HiydcMMkbYlMNOpTb+Livw9ubU9paVyKHEVvcG8MOgv/beHUtuH+rp9DcLA 73Zo7SAWWoeooPcqlBkpov/gUyN+HIbxecKlteEEPvq5H+opdzoH66iv6LimoJJ2 mve+nkSVa4/g0c5GD1ZQUaA8jyRNAtYUOzvGnxWAMJDzqH0lYBQLO0uDQyoi9yK8 sGmOBhuiMz3Fhg/IJKkbCJ4NOTa1Ub44whrizrnw3bfB3d4ptV9vzfGOlXkB2sfQ jMzFAHTaLp0Xut2bVP3Dp37kKmWO1m/AArCwSyMLahQLsD8jMgJcgXl/b0/jK6jF gUjLlz6xTxrG5RBD3L0rhL+svbIET04ujGa8s7jJDOSV8MPRel9kZxmHzIVpdWif A30qqCsSzHwQMpEXPBoBPsMYlwfg/NQDkK65496IlAJ/wod8AapCdgu+wuqk0Q9m XXJE2cEFousQuJNtNX31gfriXOuK/4xm+VDV+cwr4a7eJFMolOdbEVfnzSHuOR/i G4b8dZb3GCXceYtAWI80CAQ1Nj5ngcFwIXSgvRYOvqCw5SaPcMYDf1aPgQMRJWSF GfXXnly4UYniwwdKG0Zx =cJ6P -----END PGP SIGNATURE----- --iGfLAe9ceQuRUxnpM5dEDnK4Oi1G4coUB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537B796A.7060103>