> for the record, I'm attaching the debdiff against the -2 version.

Oops, I didn't. Here you have it.

diff -Nru virtuoso-opensource-6.1.4+dfsg1/debian/changelog virtuoso-opensource-6.1.4+dfsg1/debian/changelog
--- virtuoso-opensource-6.1.4+dfsg1/debian/changelog	2013-01-01 22:42:04.000000000 +0100
+++ virtuoso-opensource-6.1.4+dfsg1/debian/changelog	2013-01-03 23:31:09.000000000 +0100
@@ -1,3 +1,19 @@
+virtuoso-opensource (6.1.4+dfsg1-3~santa3) UNRELEASED; urgency=low
+
+  * The previous upload didn't actually fix the bug #677286: "unowned files
+    after purge (/root/.odbc.ini)". Looks like this is happening because of a
+    bug in odbcinst, which ignores the -l option (when passing -l it should
+    deal with /etc/odbc.ini and not touch $HOME/.odbc.ini). So I workarounded
+    the bug changing again virtuoso-opensource-6.1.prerm; I removed the
+    previous workaround and now odbinst is executed thus:
+    ODBCSEARCH=ODBC_SYSTEM_DSN odbcinst <arguments_and_stuff>
+    Setting that environment variable should override the arguments given in the
+    command line, it works both as a workaround for the "unowned files after
+    purge" problem and forces obdcinst to actually use the system DSN so it
+    will use /etc/odbc.ini, never $HOME/.odbc.ini (Closes: #677286).
+
+ -- José Manuel Santamaría Lema <panfa...@gmail.com>  Thu, 03 Jan 2013 20:30:42 +0100
+
 virtuoso-opensource (6.1.4+dfsg1-2) unstable; urgency=low
 
   * Add portable-method-for-escaping-symbol-gawk.diff, fixes the conductor web
diff -Nru virtuoso-opensource-6.1.4+dfsg1/debian/virtuoso-opensource-6.1.prerm virtuoso-opensource-6.1.4+dfsg1/debian/virtuoso-opensource-6.1.prerm
--- virtuoso-opensource-6.1.4+dfsg1/debian/virtuoso-opensource-6.1.prerm	2012-12-30 23:52:44.000000000 +0100
+++ virtuoso-opensource-6.1.4+dfsg1/debian/virtuoso-opensource-6.1.prerm	2013-01-03 22:59:04.000000000 +0100
@@ -9,17 +9,10 @@
 
 db_get virtuoso-opensource-6.1/register-odbc-dsn || true
 if [ "$RET" = "true" ]; then
-	if [ ! -f "$HOME/.odbc.ini" ]; then
-		REMOVE_ODBC_INI=true
-	fi
-	odbcinst -u -s -l -n VOS || true
-	# The previous odbcinst command may create the file $HOME/.odbc.ini
-	# if it didn't exist previously, leaving unowned files after removing
-	# the package, so we remove the .odbc.ini if it's neccesary, see:
+	# We set ODBCSEARCH=ODBC_SYSTEM_DSN because looks like odbcinst has a bug,
+        # it ignores the -l option when uninstalling a data source. See:
 	# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677286
-	if [ -n "$REMOVE_ODBC_INI" ]; then
-		rm -f $HOME/.odbc.ini
-	fi	
+	ODBCSEARCH=ODBC_SYSTEM_DSN odbcinst -u -s -l -n VOS || true
 fi
 
 # removing from list of owners of this question removes us from it's choices

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to