pkgsrc-Users archive

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

MesaLib, libxshmfence and NetBSD


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

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

I patched graphics/MesaLib/ 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/ was only included, if the "dri" option of
MesaLib was set. MesaLib built fine on my NetBSDs with "dri" option

Index: graphics/MesaLib/
RCS file: /cvsroot/pkgsrc/graphics/MesaLib/,v
retrieving revision 1.52
diff -u -p -r1.52
--- graphics/MesaLib/	25 Apr 2015 11:19:18 -0000	1.52
+++ graphics/MesaLib/	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/"
+.if empty(MACHINE_PLATFORM:MNetBSD-[1-6].*)
+.  include "../../x11/libxshmfence/"
 .if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)

Home | Main Index | Thread Index | Old Index