Date: Sun, 03 May 2015 22:48:29 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-pkg@freebsd.org Subject: Re: Broken _DEPENDS logic Message-ID: <554697AD.8080707@FreeBSD.org> In-Reply-To: <20150503192742.807ABD83@hub.freebsd.org> References: <alpine.BSF.2.11.1505022127140.30964@eboyr.pbz> <20150503192742.807ABD83@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1iD1vcxuXlE7fJwtVNNsNtGupe12MUSwT Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 03/05/2015 20:27, Roger Marquis wrote: > Short of editing mail/mailman/Makefile and building the port is there a= > way force 'pkg install' to just install a package and ignore its > dependencies? The man page doesn't indicate any such logic (a differen= ce > from other package managers). pkg(8) goes to a great deal of effort to ensure that all the necessary dependencies are installed. Avoiding that: well, you'll quite likely regret it, but... pkg install -M pkgname.txz And if that doesn't work, then use 'pkg fetch' to download a pkg .txz tarball, and try 'pkg add -M pkg.txz' This will likely leave your pkg database in a weird state causing undefined behaviour for subsequent operations. >> Found why mailman is trying (and failing) to reinstall postfix and it >> appears to be a bug in other ports as well. >>=20 >> # cd /usr/ports/mail && grep '_DEPENDS+=3D.*postfix' */Makefile >> dk-milter/Makefile:RUN_DEPENDS+=3D ${LOCALBASE}/libexec/postfix/smtpd= :${PORTSDIR}/mail/postfix-current >> dk-milter/Makefile:RUN_DEPENDS+=3D ${LOCALBASE}/libexec/postfix/smtpd= :${PORTSDIR}/mail/postfix >> drac/Makefile:RUN_DEPENDS+=3D postfix:${PORTSDIR}/mail/postfix >> enma/Makefile:RUN_DEPENDS+=3D ${LOCALBASE}/libexec/postfix/smtpd:${PO= RTSDIR}/mail/postfix-current >> enma/Makefile:RUN_DEPENDS+=3D ${LOCALBASE}/libexec/postfix/smtpd:${PO= RTSDIR}/mail/postfix >> mailman/Makefile:BUILD_DEPENDS+=3D /usr/sbin/postconf:${PORTSDIR}/mai= l/postfix >> mailman/Makefile:RUN_DEPENDS+=3D /usr/sbin/postconf:${PORTSDIR}/mail= /postfix >>=20 >> Shouldn't these ports be querying the pkg db rather than checking for = a >> particular file, particularly when the file is incorrectly specified? This is a ports thing, and it's been like that for a long time. Originally it was so you could install postfix some other way than using the ports, and then install mailman from ports. However, that *only* works when you're compiling stuff yourself. Whether it still make sense today is a different question. If you use precompiled packages the dependency check is that the postfix package is installed. However, precompiled pkgs are not relocatable. If you're using binary packages from the FreeBSD repos then they're going to have LOCALBASE=3D/usr/local hardwired into them. There are now options for installing to a different system root using pkg-add(8), but these are experimental and meant to facilitate cross-architecture installation. Everything will expect to find themselves installed under /usr/local come run-time though. Cheers, Matthew --1iD1vcxuXlE7fJwtVNNsNtGupe12MUSwT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJVRpetXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT6GoQAI3hmYZqIiLRzUbFZNNRaJ/Z ZnVYLBl6t18LKL5+ZsAdCTI0t9V3Nc7e3X8GAsZtm7BaQin1v22FjsTDGmLwpgoX slWV3eDJn/vnmWFdexaTo9KSZWlmpMUs0R4TJzuMdwR2PjtDVEiWumVxNyhmHSTj 4253raZOANR/SU82/YxH7hb1mHGkEfVPTZ/K+veW+Ha837eR5i0Dk4jlDcuNcPJR wRVmgc80cuQWQiS8kx+ufUCulI0QmZZljAGe6Jxhxh4xazlvtFxKu71H7LV9vmVd HlUVpqJRYYunseqj8jbnwwW+NXlLBEXOQOMlUPAHlN6PsJfPOU57LiPivFvCc58P l4LnWQ7aTGBXhdz0hLNtrYVmhFeK5+d4jQVpTIXNBelM5BMYVJDKuPJ4VNaKCzYp qEBWeOQbCCwft/Gkv9u9lCj2iQWcKoF+wrxr+EguHvWsXi1/zJNvbFaGYb0oYxEt Jcu8kuFS4QsnqazB8jUL2qa9aTycuVeGxsY6ge0hEyeicULjZ2cW0h5Iy/jH7KZb dJbZZHjQ9q319xnZNzJ4JVGkhYfiDEtwjuB9G0d6EL2qXC1/dClg72pO7rMxMfTb bGt+WNDRIjO3SIzPkqIIhjA+APx9yAB2goRNJf90iBP5I6ZgGPhAfKeGiSYt6woT cYCFqA3fGw0ohtZok1P0 =YeH0 -----END PGP SIGNATURE----- --1iD1vcxuXlE7fJwtVNNsNtGupe12MUSwT--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?554697AD.8080707>