Bug#706747: olvwm: fails to install [i386]: update-alternatives: error: alternative path /usr/bin/X11/olvwm-x-window-manager doesn't exist.

2013-05-04 Thread Andreas Beckmann
Package: olvwm
Version: 4.4.3.2p1.4-28.1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

From the attached log (scroll to the bottom...):

  Setting up olvwm (4.4.3.2p1.4-25) ...
  update-alternatives: error: alternative path 
/usr/bin/X11/olvwm-x-window-manager doesn't exist.
  dpkg: error processing olvwm (--configure):
   subprocess installed post-installation script returned error exit status 2
  configured to not write apport reports
  Errors were encountered while processing:
   olvwm


cheers,

Andreas


olvwm_4.4.3.2p1.4-28.1.log.gz
Description: GNU Zip compressed data


Bug#706747: olvwm: fails to install [i386]: update-alternatives: error: alternative path /usr/bin/X11/olvwm-x-window-manager doesn't exist.

2013-05-04 Thread Andreas Beckmann
Control: notfound -1 4.4.3.2p1.4-28.1
Control: found -1 4.4.3.2p1.4-25
Control: fixed -1 3.2p1.4-26

olvwm/squeeze does not exist on amd64 ... so this was not discovered
earlier.

I'll try to get this fixed via (o)pu.


Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#706747: olvwm: fails to install [i386]: update-alternatives: error: alternative path /usr/bin/X11/olvwm-x-window-manager doesn't exist.

2013-05-04 Thread Andreas Beckmann
Followup-For: Bug #706747
Control: tag -1 patch

Attached is a patch backporting the alternatives fixes from wheezy and
cleaning up some more old alternatives.


Andreas
diff -u xview-3.2p1.4/debian/olvwm.prerm xview-3.2p1.4/debian/olvwm.prerm
--- xview-3.2p1.4/debian/olvwm.prerm
+++ xview-3.2p1.4/debian/olvwm.prerm
@@ -8,5 +8,5 @@
   upgrade) ;;
   remove|failed-upgrade|deconfigure)
-update-alternatives --remove x-window-manager /usr/bin/X11/olvwm-x-window-manager
+update-alternatives --remove x-window-manager /usr/bin/olvwm-x-window-manager
 ;;
 esac
diff -u xview-3.2p1.4/debian/changelog xview-3.2p1.4/debian/changelog
--- xview-3.2p1.4/debian/changelog
+++ xview-3.2p1.4/debian/changelog
@@ -1,3 +1,13 @@
+xview (3.2p1.4-25+squeeze1) squeeze; urgency=low
+
+  * Non-maintainer upload.
+  * ol[v]wm: Fix alternatives handling. We are no longer installed in
+/usr/bin/X11/ and /usr/X11R6/. Backported from 3.2p1.4-26 (#411131,
+#617211) and 3.2p1.4-28.1 (#656450, #668448). Cleanup more old
+alternatives.  (Closes: #706747)
+
+ -- Andreas Beckmann a...@debian.org  Sat, 04 May 2013 11:04:30 +0200
+
 xview (3.2p1.4-25) unstable; urgency=low
 
   * QA upload.
diff -u xview-3.2p1.4/debian/olwm.prerm xview-3.2p1.4/debian/olwm.prerm
--- xview-3.2p1.4/debian/olwm.prerm
+++ xview-3.2p1.4/debian/olwm.prerm
@@ -8,5 +8,5 @@
   upgrade) ;;
   remove|failed-upgrade|deconfigure)
-update-alternatives --remove x-window-manager /usr/bin/X11/olwm-x-window-manager
+update-alternatives --remove x-window-manager /usr/bin/olwm-x-window-manager
 ;;
 esac
diff -u xview-3.2p1.4/debian/olwm.postinst xview-3.2p1.4/debian/olwm.postinst
--- xview-3.2p1.4/debian/olwm.postinst
+++ xview-3.2p1.4/debian/olwm.postinst
@@ -8,6 +8,7 @@
   # Remove old alternative (if it's still there)
   update-alternatives --remove x-window-manager /usr/bin/X11/olwm  /dev/null 21 || true
+  update-alternatives --remove x-window-manager /usr/bin/X11/olwm-x-window-manager  /dev/null 21 || true
   # ...and install new one that now points to the wrapper
-  update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/X11/olwm-x-window-manager 44 \
+  update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/olwm-x-window-manager 44 \
  --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/share/man/man1/olwm.1.gz
 fi
diff -u xview-3.2p1.4/debian/olvwm.postinst xview-3.2p1.4/debian/olvwm.postinst
--- xview-3.2p1.4/debian/olvwm.postinst
+++ xview-3.2p1.4/debian/olvwm.postinst
@@ -21,5 +21,6 @@
   update-alternatives --remove x-window-manager /usr/bin/X11/olvwm  /dev/null 21 || true
+  update-alternatives --remove x-window-manager /usr/bin/X11/olvwm-x-window-manager  /dev/null 21 || true
   # ...and install new one that now points to the wrapper
-  update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/X11/olvwm-x-window-manager 45 \
- --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/X11R6/man/man1/olvwm.1.gz
+  update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/olvwm-x-window-manager 45 \
+ --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/share/man/man1/olvwm.1.gz
 fi