[ports-i386@pointyhat.freebsd.org: linux_base-8-8.0_12 failed
on i386 6]
John E Hein
jhein at timing.com
Fri Jan 27 08:33:16 PST 2006
Kris Kennaway wrote at 02:16 -0500 on Jan 27, 2006:
[snip]
> === Checking filesystem state
> list of extra files and directories in / (not present before this port was installed but present after it was deinstalled)
> 401931 16 drwxr-xr-x 3 root wheel 512 Jan 27 06:41 compat/linux/usr
> 89818 16 drwxr-xr-x 12 root wheel 512 Jan 27 06:24 compat/linux/usr/local
[snip]
The following patch will help with this. It avoids whacking usr/local
if someone adds something to it in their compat tree after install and
then upgrades their linux-base port. It only removes empty dirs.
A test install/deinstall shows that it solves the problem pointyhat
found... clean /compat/linux before and after.
Index: Makefile
===================================================================
RCS file: /base/FreeBSD-CVS/ports/emulators/linux_base-8/Makefile,v
retrieving revision 1.117
diff -u -p -r1.117 Makefile
--- Makefile 25 Jan 2006 18:57:36 -0000 1.117
+++ Makefile 27 Jan 2006 16:25:49 -0000
@@ -109,7 +109,7 @@ RPMFLAGS= --root ${PREFIX} --dbpath ${D
--replacepkgs --ignoreos --ignorearch
RPMDIR= ${DISTDIR}/${DIST_SUBDIR}
-REMOVE_DIRS= boot dev home initrd root tmp var/run var/tmp usr/tmp
+REMOVE_DIRS= boot dev home initrd root tmp var/run var/tmp usr/local usr/tmp
REMOVE_FILES= bin/df bin/su etc/exports etc/group etc/localtime \
etc/motd etc/passwd etc/printcap etc/services \
etc/protocols
@@ -176,7 +176,7 @@ do-install:
# Finish
#
@for D in ${REMOVE_DIRS}; do \
- ${RM} -rf ${PREFIX}/$$D; \
+ ${FIND} ${PREFIX}/$$D -depth -type d -exec ${RMDIR} {} \; || true ; \
done
@for F in ${REMOVE_FILES}; do \
${RM} -f ${PREFIX}/$$F; \
More information about the freebsd-emulation
mailing list