pkgsrc-Users archive

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

MesaLib, libxshmfence and NetBSD



Hello,

I had trouble building packages on NetBSD (5.1, 6.1) on i386 if they
use MesaLib (i.e. if they include the MesaLib buildlink3.mk).

Build would stop with an error that it cannot buildlink libxshmfence.

I patched graphics/MesaLib/buildlink3.mk to avoid including libxshmfence
on NetBSD, which fixed the build errors (patch attached).

I don't know if the now missing libxshmfence include leads to runtime
failures, this is only compile-tested.

x11/libxshmfence/buildlink3.mk was only included, if the "dri" option of
MesaLib was set. MesaLib built fine on my NetBSDs with "dri" option
active. 


Regards
Matthias
Index: graphics/MesaLib/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/MesaLib/buildlink3.mk,v
retrieving revision 1.52
diff -u -p -r1.52 buildlink3.mk
--- graphics/MesaLib/buildlink3.mk	25 Apr 2015 11:19:18 -0000	1.52
+++ graphics/MesaLib/buildlink3.mk	29 May 2015 14:51:46 -0000
@@ -33,6 +33,9 @@ PKG_BUILD_OPTIONS.MesaLib+=	dri
 
 .if !empty(PKG_BUILD_OPTIONS.MesaLib:Mdri)
 .  include "../../graphics/MesaLib/dri.mk"
+.if empty(MACHINE_PLATFORM:MNetBSD-[1-6].*)
+.  include "../../x11/libxshmfence/buildlink3.mk"
+.endif
 .endif
 
 .if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)


Home | Main Index | Thread Index | Old Index