pkgsrc-Users archive

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

Re: libvpx and gcc 4.4 dependency



On Thu, Sep 04, 2014 at 02:54:32PM +0200, Richard PALO wrote:
> Le 04/09/14 13:35, Patrick Welche a écrit :
> >Doubly puzzled: after using jpkerkin's suggestion of gcc47-libs
> >and USE_PKGSRC_GCC_RUNTIME=yes, I no longer see a dependency on
> >gcc in libvpx's BUILD_INFO:
> >
> >REQUIRES=/lib/libc.so.12
> >REQUIRES=/usr/lib/libc.so.12
> >REQUIRES=/usr/lib/libm.so.0
> >REQUIRES=/usr/lib/libpthread.so.0
> >REQUIRES=/usr/lib/librt.so.0
> >
> >and from objdump -x /usr/pkg/lib/libvpx.so.1.0.3:
> >
> >   NEEDED      libm.so.0
> >   NEEDED      librt.so.0
> >   NEEDED      libpthread.so.0
> >   SONAME      libvpx.so.1
> >   SYMBOLIC    0x0
> >   RPATH       
> > /usr/pkg/gcc47/i386--netbsdelf/lib/.:/usr/pkg/gcc47/lib/gcc/i386--netbsdelf/4.7.3:/usr/pkg/gcc47/lib:/usr/pkg/lib
> >
> >vpxdec successfully prints help after mv /usr/pkg/gcc47 /usr/pkg/gcc47.bak
> >
> >So gcc47-libs aren't needed if libvpx is built using gcc47?
> >(It behaves differently to gcc44?)

> I believe there is ongoing work to reduce "unnecessary" dependencies on
> libgcc_s.so... see the gcc mailing list...

Well, it already seems to work with 4.7! No sign of a gcc_s requirement.

Given that libvpx doesn't seem to need the runtime, I tried simply:

 # PR pkg/48508: GCC 4.4 or later is required to compile ssse3 code on NetBSD & 
Solaris.
-GCC_REQD+=     4.4
+GCC_REQD+=     4.7
 . endif

This gives me a package with no gcc47 REQUIRES, but there still is a

@blddep gcc47-4.7.3nb5
@pkgdep {gcc47,gcc47-libs}>=4.7
@blddep gcc47-4.7.3nb5
@pkgdep {gcc47,gcc47-libs}>=4.7.0

pkgdep on the runtime.

Is that expected when one doesn't set USE_PKGSRC_GCC_RUNTIME?


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index