gstreamer-qapt.postinst script "update-alternatives: error: alternative path /usr/lib/kde4/libexec/qapt-gst-helper doesn't exist"

Bug #1680576 reported by Rik Mills
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libqapt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

gstreamer-qapt.postinst script produces error update-alternatives: error: alternative path /usr/lib/kde4/libexec/qapt-gst-helper doesn't exist

In fact, both the postinst and prerm scripts are using the old incorrect paths to qapt-gst-helper

Should for example be /usr/lib/x86_64-linux-gnu/libexec/qapt-gst-helper on amd64 and similar multiarch paths in place of 'x86_64-linux-gnu' on other architectures.

Debian 'fixed' this with:

https://anonscm.debian.org/cgit/pkg-kde/kde-extras/qapt.git/commit/?id=cef992921a18ebb918178f704b4c5c689d1a94a3

however, it does not produce the correct path.

i.e. /$DPKG_MAINTSCRIPT/_ARCH becomes /amd64/ /i386/ etc, so this would still fail.

As kindly suggested by Maximiliano Curia from debian, we need to

"move the maintscripts to .in and generate the "right" maintscript at build time [10:29] (using a magic rule and sed)"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libqapt (Ubuntu):
status: New → Confirmed
Revision history for this message
Jb (jebsolutions) wrote :

Problem still exists on Ubuntu 16.04:

Setting up gstreamer-qapt (3.0.2-0ubuntu1.2) ...
update-alternatives: error: alternative path /usr/lib/kde4/libexec/qapt-gst-helper doesn't exist

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.