tech-x11 archive

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

Re: libX11's libXcursor dlopen



hello!

the attached patch works for me. tested on NetBSD-11.0_RC2.
please triple-check if it aligns with your policies.
if you want I can have a look at your bug as well, please direct me to a URL since google seems to not have indexed it.

---

include /usr/pkg/share/icons into the Xcursor(3) theme search path.
this allows any application that calls XCreateFontCursor() to be able to set a theme installed via pkgsrc.

Index: Makefile
===================================================================
RCS file: /cvsroot/src/external/mit/xorg/lib/libXcursor/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	3 May 2022 13:46:22 -0000	1.8
+++ Makefile	24 Mar 2026 21:15:24 -0000
@@ -12,8 +12,11 @@
 INCS=	Xcursor.h
 INCSDIR=${X11INCDIR}/X11/Xcursor
 
+XCURSORPATH="~/.local/share/icons:~/.icons:/usr/share/icons:/usr/share/pixmaps:${X11LIBDIR}/icons:/usr/pkg/share/icons"
+
 CPPFLAGS+=	${X11FLAGS.THREADLIB}
 CPPFLAGS+=	-DICONDIR=\"${X11LIBDIR}/icons\"
+CPPFLAGS+=	-DXCURSORPATH=\"${XCURSORPATH}\"
 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11/Xcursor
 CPPFLAGS+=	-I${X11SRCDIR.${LIB}}/../include
 
@@ -29,12 +32,7 @@
 
 X11EXTRAMANDEFS += -e s%__XCURSORPATH__%${__XCURSORPATH__:Q}%g
 
-__XCURSORPATH__	= \
-	~/.local/share/icons, \
-	~/.icons, \
-	/usr/share/icons, \
-	/usr/share/pixmaps, \
-	${X11LIBDIR}/icons
+__XCURSORPATH__	= ${XCURSORPATH:S/:/, /g}
 
 MLINKS += Xcursor.3 XcursorCursorsCreate.3
 MLINKS += Xcursor.3 XcursorCursorsDestroy.3


Home | Main Index | Thread Index | Old Index