pkgsrc-Users archive

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

Re: x11/libdrm fails to build



On Mon, 14 Jul 2014 01:44:01 +0900, Rhialto <rhialto%falu.nl@localhost> wrote:

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"


I don't know the situation why libdrm from pkgsrc is required for you,
But you should put libdrm to PREFER_PKGSRC, or set PREFER_PKGSRC.libdrm=yes
and rebuild x11-links.


--
OBATA Akio / obata%lins.jp@localhost


Home | Main Index | Thread Index | Old Index