pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48333: "ffmpeg2" package installs incorrect pkg-config files

>Number:         48333
>Category:       pkg
>Synopsis:       "ffmpeg2" package installs incorrect pkg-config files
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 17:55:00 +0000 2013
>Originator:     Matthias Scheler
>Release:        NetBSD 6.1_STABLE pkgsrc-HEAD from 2013-10-22 08:00 UTC
Matthias Scheler                        
System: NetBSD 6.1_STABLE NetBSD 6.1_STABLE (COLWYN.64) 
#0: Sat Aug 10 13:03:38 BST 2013 amd64
Architecture: x86_64
Machine: amd64
The contents of "/usr/pkg/lib/ffmpeg2/pkgconfig/libavfilter.pc" looks like
this on my system:


Name: libavfilter
Description: FFmpeg audio/video filtering library
Version: 3.79.101
Requires.private: libpostproc = 52.3.100, libswresample = 0.17.102, libswscale 
= 2.3.100, libavformat = 55.12.100, libavcodec = 55.18.102, libavutil = 
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
        -lvorbisenc.2 => /usr/pkg/lib/
        -lvorbis.0 => /usr/pkg/lib/
        -lm.0 => /usr/lib/
        -lgcc_s.1 => /usr/lib/
        -lc.12 => /usr/lib/
        -logg.0 => /usr/pkg/lib/
        -ltheoraenc.1 => /usr/pkg/lib/
        -ltheora.0 => /usr/pkg/lib/
        -ltheoradec.1 => /usr/pkg/lib/
        -lavdevice.55 => /usr/pkg/lib/ffmpeg2/
        -lavfilter.3 => /usr/pkg/lib/ffmpeg2/
        -lswresample.0 => /usr/pkg/lib/ffmpeg2/
        -lavutil.52 => /usr/pkg/lib/ffmpeg2/
        -lpthread.1 => /usr/lib/
        -lavformat.55 => /usr/pkg/lib/ffmpeg2/
        -lavcodec.55 => /usr/pkg/lib/ffmpeg2/
        -lX11.7 => /usr/X11R7/lib/
        -lxcb.1 => /usr/X11R7/lib/
        -lXau.7 => /usr/X11R7/lib/
        -lXdmcp.7 => /usr/X11R7/lib/
        -lxvidcore.4 => /usr/pkg/lib/
        -lx264.0 => /usr/pkg/lib/
        -lvpx.1 => /usr/pkg/lib/
        -lrt.1 => /usr/lib/
        -lmp3lame.0 => /usr/pkg/lib/
        -lz.1 => /usr/lib/
        -lbz2.1 => /usr/lib/
        -lpostproc.52 => /usr/pkg/lib/ffmpeg2/
        -lswscale.2 => /usr/pkg/lib/ffmpeg2/
        -lass.5 => /usr/pkg/lib/
        -lfribidi.0 => /usr/pkg/lib/
        -lfontconfig.1 => /usr/pkg/lib/
        -lfreetype.7 => /usr/X11R7/lib/
        -lexpat.2 => /usr/lib/
        -lenca.0 => /usr/pkg/lib/
        -lXv.2 => /usr/X11R7/lib/
        -lXext.7 => /usr/X11R7/lib/
        -lossaudio.1 => /usr/lib/
        -lavfilter.3 => /usr/pkg/lib/
        -lswresample.0 => /usr/pkg/lib/
        -lavutil.52 => /usr/pkg/lib/
        -lavformat.54 => /usr/pkg/lib/
        -lavcodec.54 => /usr/pkg/lib/
        -lpostproc.52 => /usr/pkg/lib/
        -lswscale.2 => /usr/pkg/lib/

cd pkgsrc/multimedia/ffmpeg2theora
make install
ldd /usr/pkg/bin/ffmpeg2theora | grep libav

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.

Home | Main Index | Thread Index | Old Index