pkgsrc-Users archive

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

Re: x11/libdrm fails to build



On Fri 11 Jul 2014 at 14:08:46 +0200, Rhialto wrote:
> ld: warning: libdrm.so.3, needed by 
> /pkg_comp/obj/pkgsrc/x11/libdrm/default/.buildlink/lib/libdrm_intel.so, may 
> conflict with libdrm.so.2
> test_decode.o: In function `main':
> test_decode.c:(.text+0x191): undefined reference to 
> `drm_intel_decode_context_alloc'
[...]
> Maybe it gets confused with
> /scratch/chroot/pkg_comp.amd64-6.0/default/usr/X11R7/lib/libdrm_intel.a
>  ?

x11-links makes links to the native X libdrm* files. Just the ones we're
trying to replace here, so we don't need or want to see them.

I found a terrible hack that works to compile it at least. I haven't
tried running it yet.

Any better solutions?

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/libdrm/Makefile,v
retrieving revision 1.44
diff -u -r1.44 Makefile
--- Makefile    4 May 2014 16:50:32 -0000       1.44
+++ Makefile    13 Jul 2014 16:42:00 -0000
@@ -45,4 +45,9 @@
 #.else
 #CONFIGURE_ARGS+=      --disable-intel
 .endif
+
+# Remove references to the native libdrm libraries
+post-wrapper:
+       cd ${WRKDIR}/.buildlink/lib && rm libdrm*
+
 .include "../../mk/bsd.pkg.mk"

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpqb9cKEDy29.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index