Date: Wed, 26 Oct 2005 11:47:12 GMT From: Andreas Klemm <bits_@web.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/88027: portupgrade removes symlinks that point to real location of config directories Message-ID: <200510261147.j9QBlCn7048159@www.freebsd.org> Resent-Message-ID: <200510261150.j9QBoF4F095123@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88027 >Category: ports >Synopsis: portupgrade removes symlinks that point to real location of config directories >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 26 11:50:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andreas Klemm >Release: 6.0 rc1 >Organization: home >Environment: FreeBSD titan.klemm.apsfilter.org 6.0-RC1 FreeBSD 6.0-RC1 #8: Sun Oct 23 14:48:39 CEST 2005 root@titan.klemm.apsfilter.org:/usr/obj/usr/src/sys/TITANi386 i386 >Description: Did a portupgrade -af last recently. After that squid and uucp didn't work anymore. Reason: I keep my uucp and squid configuration in different filesystems. /usr/local/squid -> /data/squid (which is on a different disk for better throughput) /usr/local/etc/uucp -> /etc/uucp (because important config files are easier for me to handle under one place under /etc and because I'm used to have the real UUCP config files there. portupgrade or whatever tool in the upgrade chain fails here should honour symlinks correctly. Maybe somewhere a -f for follow option is missing, or the tools should not only check for the existance of a directory but the existence of a symlink as well... I think more, that -f or such is needed, since keeping a symlink pointing to a non-existing directory also would be wrong IMHO. At least its a bad thing as it is. Regarding getting mail via uucp its a bad think to do a portupgrade -a and then seeing, that you are not getting any mail from your UUCP feed. It irritated me a bit since some mail came in via fetchmail ... So it was not easy to see, what happend. But it was not fine to see, that portupgrade does something nasty and does not honour symlinks. >How-To-Repeat: Install squid. then: cd /usr/local mv squid /data ln -s /data/squid /usr/local/squid Install freebsd-uucp then cd /usr/local/etc mv uucp /etc ln -s /etc/uucp /usr/local/etc/uucp >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510261147.j9QBlCn7048159>