openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #06859
Bug#649321: openjdk-6-jre-headless: Piuparts failure - left files on system
Package: openjdk-6-jre-headless
Version: 6-6b23~pre11
Tags: patch
User: debian-qa@xxxxxxxxxxxxxxxx
Usertags: piuparts piuparts.d.o
openjdk-6-jre-headless in sid is failing Piuparts with the following log entry
6m7.7s ERROR: FAIL: Package purging left files on system:
/etc/.java not owned
/etc/.java/.systemPrefs not owned
/etc/.java/.systemPrefs/.system.lock not owned
/etc/.java/.systemPrefs/.systemRootModFile not owned
/etc/java-6-sun not owned
The '.java' files are created in 'openjdk-6-jre-headless.postinst'. I
have not found where '/etc/java-6-sun' is created.
The attached patch handles the /etc/.java directory in postrm. Tested on sid.
The package ca-certificates-java is currently in the sid
state-failed-testing queue on piuparts.d.o. It shares mutual
dependencies with openjdk-6-jre-headless. ca-certificates-java
currently fails with the same error log as above. Once these external
failures are fixed, ca-certificates-java will be able to be
successfully retested. This will free up over 300 packages in the sid
Piuparts dependency-failed-testing list for immediate testing.
http://piuparts.debian.org/sid/state-failed-testing.html#ca-certificates-java
http://piuparts.debian.org/sid/state-dependency-failed-testing.html#openjdk-6-jre-headless
Index: debian/JB-jre-headless.postrm.in
===================================================================
--- debian.orig/JB-jre-headless.postrm.in 2011-11-17 22:01:21.352000000 -0500
+++ debian/JB-jre-headless.postrm.in 2011-11-17 22:02:16.487999218 -0500
@@ -10,9 +10,23 @@
echo >&2 "$(basename $0): Internal error"
exit 1
fi
- # removals of config files in /etc is handled by dpkg
- # XXX should remove /etc/.java ???
+ if [ -f /etc/.java/.systemPrefs/.systemRootModFile ]; then
+ rm /etc/.java/.systemPrefs/.systemRootModFile
+ fi
+
+ if [ -f /etc/.java/.systemPrefs/.system.lock ]; then
+ rm /etc/.java/.systemPrefs/.system.lock
+ fi
+
+ if [ -d /etc/.java/.systemPrefs ]; then
+ rmdir /etc/.java/.systemPrefs
+ fi
+
+ if [ -d /etc/.java ]; then
+ rmdir /etc/.java
+ fi
+
;;
esac
Follow ups