Subject: pkg/25325: pkgsrc/pkgtools/x11-links removal does not work
To: None <>
From: None <>
List: pkgsrc-bugs
Date: 04/25/2004 21:37:39
>Number:         25325
>Category:       pkg
>Synopsis:       pkgsrc/pkgtools/x11-links removal does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 25 21:38:00 UTC 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
IRIX lorenz 5.3 08031225 IP20 mips
pkgsrc/pkgtools/x11-links/Makefile uses the following code to create a list of installed dirs which would need to be rmdir'd if that package is removed:
${FILES_LIST_CMD} | ${SED} -e "s,/[^/]*$,," | ${SORT} -u | ....
If the file list, as is at least the case with files/xsgi, contains files in a nested directory ../a/b but none directly in ../a only .../a/b enters the list, and thus later .../a is not being removed when pkg_deleting. Since ${LOALBASE}/share/x11-links won't be empty it cannot be rmdir'd then, and pkg_delete fails (since MKDIR actually uses -p it does not matter for creating the dir in the first place).