NetBSD Problem Report #48333

From tron@zhadum.org.uk  Tue Oct 22 17:54:28 2013
Return-Path: <tron@zhadum.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DFFECA58D8
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Oct 2013 17:54:27 +0000 (UTC)
Message-Id: <20131022175422.EAC4EA3BA03@mail.zhadum.org.uk>
Date: Tue, 22 Oct 2013 18:54:22 +0100 (BST)
From: tron@zhadum.org.uk
Reply-To: tron@zhadum.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: "ffmpeg2" package installs incorrect pkg-config files
X-Send-Pr-Version: 3.95

>Number:         48333
>Category:       pkg
>Synopsis:       "ffmpeg2" package installs incorrect pkg-config files
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 17:55:00 +0000 2013
>Closed-Date:    Sat Jan 16 13:44:52 +0000 2021
>Last-Modified:  Sat Jan 16 13:44:52 +0000 2021
>Originator:     Matthias Scheler
>Release:        NetBSD 6.1_STABLE pkgsrc-HEAD from 2013-10-22 08:00 UTC
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 6.1_STABLE NetBSD 6.1_STABLE (COLWYN.64) #0: Sat Aug 10 13:03:38 BST 2013 tron@colwyn.zhadum.org.uk:/src/sys/compile/COLWYN.64 amd64
Architecture: x86_64
Machine: amd64
>Description:
The contents of "/usr/pkg/lib/ffmpeg2/pkgconfig/libavfilter.pc" looks like
this on my system:

prefix=/usr/pkg
exec_prefix=${prefix}
libdir=/usr/pkg/lib/ffmpeg2
includedir=/usr/pkg/include/ffmpeg2

Name: libavfilter
Description: FFmpeg audio/video filtering library
Version: 3.79.101
Requires:
Requires.private: libpostproc = 52.3.100, libswresample = 0.17.102, libswscale = 2.3.100, libavformat = 55.12.100, libavcodec = 55.18.102, libavutil = 52.38.100
Conflicts:
Libs: -L${libdir} -Wl,-R${libdir} -lavfilter
Libs.private: -lXv -lX11 -lXext -lossaudio -lossaudio -lxvidcore -lx264 -lvpx -lvpx -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lass -lm -pthread -lbz2 -lz
Cflags: -I${includedir}

The references to "/usr/pkg/lib" are problematic. They cause problems to
get linked with the "ffmpeg2" and "ffmpeg" libraries if both packages
are installed:

> ldd /usr/pkg/bin/ffmpeg2theora
/usr/pkg/bin/ffmpeg2theora:
        -lvorbisenc.2 => /usr/pkg/lib/libvorbisenc.so.2
        -lvorbis.0 => /usr/pkg/lib/libvorbis.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
        -logg.0 => /usr/pkg/lib/libogg.so.0
        -ltheoraenc.1 => /usr/pkg/lib/libtheoraenc.so.1
        -ltheora.0 => /usr/pkg/lib/libtheora.so.0
        -ltheoradec.1 => /usr/pkg/lib/libtheoradec.so.1
        -lavdevice.55 => /usr/pkg/lib/ffmpeg2/libavdevice.so.55
        -lavfilter.3 => /usr/pkg/lib/ffmpeg2/libavfilter.so.3
        -lswresample.0 => /usr/pkg/lib/ffmpeg2/libswresample.so.0
        -lavutil.52 => /usr/pkg/lib/ffmpeg2/libavutil.so.52
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lavformat.55 => /usr/pkg/lib/ffmpeg2/libavformat.so.55
        -lavcodec.55 => /usr/pkg/lib/ffmpeg2/libavcodec.so.55
        -lX11.7 => /usr/X11R7/lib/libX11.so.7
        -lxcb.1 => /usr/X11R7/lib/libxcb.so.1
        -lXau.7 => /usr/X11R7/lib/libXau.so.7
        -lXdmcp.7 => /usr/X11R7/lib/libXdmcp.so.7
        -lxvidcore.4 => /usr/pkg/lib/libxvidcore.so.4
        -lx264.0 => /usr/pkg/lib/libx264.so.0
        -lvpx.1 => /usr/pkg/lib/libvpx.so.1
        -lrt.1 => /usr/lib/librt.so.1
        -lmp3lame.0 => /usr/pkg/lib/libmp3lame.so.0
        -lz.1 => /usr/lib/libz.so.1
        -lbz2.1 => /usr/lib/libbz2.so.1
        -lpostproc.52 => /usr/pkg/lib/ffmpeg2/libpostproc.so.52
        -lswscale.2 => /usr/pkg/lib/ffmpeg2/libswscale.so.2
        -lass.5 => /usr/pkg/lib/libass.so.5
        -lfribidi.0 => /usr/pkg/lib/libfribidi.so.0
        -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
        -lfreetype.7 => /usr/X11R7/lib/libfreetype.so.7
        -lexpat.2 => /usr/lib/libexpat.so.2
        -lenca.0 => /usr/pkg/lib/libenca.so.0
        -lXv.2 => /usr/X11R7/lib/libXv.so.2
        -lXext.7 => /usr/X11R7/lib/libXext.so.7
        -lossaudio.1 => /usr/lib/libossaudio.so.1
        -lavfilter.3 => /usr/pkg/lib/libavfilter.so.3
        -lswresample.0 => /usr/pkg/lib/libswresample.so.0
        -lavutil.52 => /usr/pkg/lib/libavutil.so.52
        -lavformat.54 => /usr/pkg/lib/libavformat.so.54
        -lavcodec.54 => /usr/pkg/lib/libavcodec.so.54
        -lpostproc.52 => /usr/pkg/lib/libpostproc.so.52
        -lswscale.2 => /usr/pkg/lib/libswscale.so.2


>How-To-Repeat:
cd pkgsrc/multimedia/ffmpeg2theora
make install
ldd /usr/pkg/bin/ffmpeg2theora | grep libav

>Fix:
I'm not convinced that the attempt to allow installing both the "ffmpeg2"
and the "ffmpeg" package at the same time is worth all the problems.
Changing those two packages to conflict and install all the files in
the normal place would be easier to maintain.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Sat, 16 Jan 2021 13:44:52 +0000
State-Changed-Why:
There's no longer any unversioned ffmpeg in pkgsrc so I think this
was fixed a long time ago.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.