The quagga port contains some bugs that are revealed if installing from a binary package: 1. It sets "quagga" user homedir to /etc/quagga 2. It emits a poorly formatted message: Added group "quagga\. 3. It runs ldconfig against %D/lib after setting prefix to /etc/rc.d Fix: A possible fix should affect pkg-install and pkg-plist. How-To-Repeat: rt2# pkg_add quagga-0.98.2.tgz ldconfig: warning: /etc/rc.d/lib: No such file or directory Added group "quagga\. Added user "quagga". rt2# ls -ld /etc/quagga /usr/local/etc/quagga ls: /usr/local/etc/quagga: No such file or directory drwxr-xr-x 2 quagga quagga 512 Feb 6 22:54 /etc/quagga rt2# pkg_delete quagga-0.98.2 pkg_delete: file '/usr/local/etc/quagga' doesn't really exist pkg_delete: unable to completely remove directory '/usr/local/etc/quagga' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?)
Hello! Thanks for the report. Please apply the patch attached. -- With respect, Boris Kovalenko.
Responsible Changed From-To: freebsd-ports-bugs->yar Taking this one.
On Mon, Feb 07, 2005 at 02:55:18PM +0500, Boris Kovalenko wrote: > Hello! > > Thanks for the report. Please apply the patch attached. Thanks, applied and committed. However, I think that the cwd trick should be eliminated eventually. Are you on the freebsd-ports list? I'd appreciate if you raised this issue on the list. Ideally, a package should not depend on the build-time PREFIX setting since it can be changed later via the -p option to pkg_add. Perhaps we need something like @pushwd and @popwd in order to be able to restore the prefix setting for the rest of a packing list for bsd.port.mk to append @exec's to it safely. Therefore I leave this PR open for now. -- Yar
On Mon, Feb 07, 2005 at 01:54:51PM +0300, Yar Tikhiy wrote: > On Mon, Feb 07, 2005 at 02:55:18PM +0500, Boris Kovalenko wrote: > > Hello! > > > > Thanks for the report. Please apply the patch attached. > > Thanks, applied and committed. > > However, I think that the cwd trick should be eliminated eventually. > Are you on the freebsd-ports list? I'd appreciate if you raised > this issue on the list. > > Ideally, a package should not depend on the build-time PREFIX setting > since it can be changed later via the -p option to pkg_add. Perhaps > we need something like @pushwd and @popwd in order to be able to > restore the prefix setting for the rest of a packing list for > bsd.port.mk to append @exec's to it safely. Just for the record: the bug described in ports/59070 looks similar to this one, and the fix committed doesn't look quite correct, too, since it breaks "pkg_add -p /foo" in the same way if a packing list makes use of @cwd. -- Yar
State Changed From-To: open->closed Superseded by PR 77212 and PR 78614.