Subject: pkg/20106: suse_base creates empty dirs that interfere with path translation
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@pobox.com>
List: netbsd-bugs
Date: 01/29/2003 07:53:45
>Number:         20106
>Category:       pkg
>Synopsis:       suse_base creates empty dirs that interfere with path translation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 29 04:54:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Todd Vierling
>Release:        pkgsrc 20030127
>Organization:
	DUH.ORG:  Pointing out the obvious since 1994.

>Environment:
N/A

>Description:

suse_base creates craploads of empty directories that interfere with path
translation, such as /emul/linux/opt, /emul/linux/mnt, etc.  Many programs
get confused when some parts install in /opt and the rest ends up in
/emul/linux/opt.

Also, a symlink /emul/linux/dev/null points to /dev/null; that's redundant
and should be removable at this point.

>How-To-Repeat:

cd /usr/pkgsrc/emulators/suse_base; make install

>Fix:

Do something similar to the following (although this particular solution spews
errors; a more complex "find" expression would be best):

find /emul/linux -type d | xargs rmdir -p

Additionally, after the above, symlinks with no valid targets should be removed,
such as /emul/linux/floppy and /emul/linux/cdrom (which would otherwise point
to the empty directories /emul/linux/media/floppy and /emul/linux/media/cdrom,
respectively).
>Release-Note:
>Audit-Trail:
>Unformatted: