pkgbinarymanager: symlink_doc should ignore dependencies part of an alternative set

Bug #1761264 reported by Laurent Bonnaud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ffmpeg (Ubuntu)
New
Undecided
Unassigned
pkgbinarymangler (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

here is the problem:

$ symlinks /usr/share/doc/ffmpeg/
dangling: /usr/share/doc/ffmpeg/changelog.Debian.gz -> ../libavcodec57/changelog.Debian.gz

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ffmpeg 7:3.4.2-1build1
Uname: Linux 4.15.15-041515-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
CurrentDesktop: MATE
Date: Wed Apr 4 20:10:55 2018
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ffmpeg
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
James Cowgill (jcowgill) wrote :

Does running "apt-get -f install" help. For some reason you don't have libavcodec57 installed even though it is a dependency of ffmpeg.

Changed in ffmpeg (Ubuntu):
status: New → Incomplete
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

> Does running "apt-get -f install" help.

No because my system has no package dependency problems.

What happens on my system is that libavcodec-extra57 is installed instead of libavcodec57.

summary: - changelog.Debian.gz is a dangling symlink
+ changelog.Debian.gz is a dangling symlink when libavcodec-extra57 is
+ installed
Changed in ffmpeg (Ubuntu):
status: Incomplete → New
Revision history for this message
James Cowgill (jcowgill) wrote :

Thanks that makes more sense.

The bug is in Ubuntu's pkgbinarymangler which is responsible for symlinking these changelogs. It seems to think that libavcodec57 is a dependency of ffmpeg, but in fact libavcodec57 is part of a set of alternatives where libavcodec-extra57 could be installed instead. I think pkgbinarymangler should ignore any dependencies part of an alternative set (ie containing a "|" character) which should fix this.

summary: - changelog.Debian.gz is a dangling symlink when libavcodec-extra57 is
- installed
+ pkgbinarymanager: symlink_doc should ignore dependencies part of an
+ alternative set
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in Ubuntu 19.04/disco:

$ symlinks /usr/share/doc/ffmpeg/
dangling: /usr/share/doc/ffmpeg/changelog.Debian.gz -> ../libavcodec58/changelog.Debian.gz

tags: added: disco
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in hirsute:

$ symlinks /usr/share/doc/ffmpeg/
dangling: /usr/share/doc/ffmpeg/changelog.Debian.gz -> ../libavcodec58/changelog.Debian.gz

tags: added: eoan focal groovy hirsute
Norbert (nrbrtx)
tags: removed: disco eoan groovy
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in lunar:

$ symlinks /usr/share/doc/ffmpeg/
dangling: /usr/share/doc/ffmpeg/changelog.Debian.gz -> ../libavcodec59/changelog.Debian.gz

tags: added: jammy kinetic lunar
removed: bionic hirsute
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in mantic:

$ symlinks /usr/share/doc/ffmpeg/
dangling: /usr/share/doc/ffmpeg/changelog.Debian.gz -> ../libavcodec60/changelog.Debian.gz

tags: added: mantic
tags: added: noble
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.