Skip to content

Commit

Permalink
x11-servers/xorg-server: complete libmap.d switch after 50a34a0
Browse files Browse the repository at this point in the history
libmap.conf(5) supports dlopen(3) but xorg-server uses absolute paths.

PR:		271686
Reviewed by:	gallatin
  • Loading branch information
jbeich committed Aug 12, 2023
1 parent 0d5b626 commit d1b7aad
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 49 deletions.
9 changes: 1 addition & 8 deletions x11-servers/xorg-server/Makefile
@@ -1,6 +1,6 @@
PORTNAME= xorg
PORTVERSION= 21.1.8
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= x11-servers
MASTER_SITES= XORG/individual/xserver
Expand All @@ -24,9 +24,6 @@ USE_GL= gl
PORTNAME= xephyr
.elif ${FLAVOR} == xorg
PKGNAMESUFFIX= -server
SUB_FILES= pkg-post-deinstall pkg-post-install
PKGPOSTINSTALL= ${WRKDIR}/pkg-post-install
PKGPOSTDEINSTALL= ${WRKDIR}/pkg-post-deinstall
.elif ${FLAVOR} == xnest
PORTEPOCH= 2
PKGNAMESUFFIX= -nestserver
Expand Down Expand Up @@ -133,10 +130,6 @@ PLIST_SUB+= SPARC64="@comment "

.if ${FLAVOR} == xorg
post-install:
# Avoid conflict with nvidia-driver, move libglx.so into .xorg directory
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg
${MV} ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/libglx.so \
${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg/
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
@${MKDIR} ${STAGEDIR}${FONTPATHD}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d
Expand Down
1 change: 0 additions & 1 deletion x11-servers/xorg-server/files/pkg-post-deinstall.in

This file was deleted.

11 changes: 0 additions & 11 deletions x11-servers/xorg-server/files/pkg-post-install.in

This file was deleted.

2 changes: 1 addition & 1 deletion x11-servers/xorg-server/pkg-plist
Expand Up @@ -160,7 +160,7 @@ include/xorg/xvdix.h
include/xorg/xvmcext.h
include/xorg/xf86-input-inputtest-protocol.h
lib/xorg/modules/drivers/modesetting_drv.so
lib/xorg/modules/extensions/.xorg/libglx.so
lib/xorg/modules/extensions/libglx.so
lib/xorg/modules/input/inputtest_drv.so
lib/xorg/modules/libexa.so
lib/xorg/modules/libglamoregl.so
Expand Down
2 changes: 1 addition & 1 deletion x11/nvidia-driver-304/Makefile
@@ -1,6 +1,6 @@
DISTVERSION= 304.137
# Explicitly set PORTREVISION as it can be overridden by the master port
PORTREVISION= 9
PORTREVISION= 10

MASTERDIR= ${.CURDIR}/../nvidia-driver
PKGNAMESUFFIX= -304
Expand Down
2 changes: 1 addition & 1 deletion x11/nvidia-driver-340/Makefile
@@ -1,6 +1,6 @@
DISTVERSION= 340.108
# Explicitly set PORTREVISION as it can be overridden by the master port
PORTREVISION= 3
PORTREVISION= 4

MASTERDIR= ${.CURDIR}/../nvidia-driver
PKGNAMESUFFIX= -340
Expand Down
2 changes: 1 addition & 1 deletion x11/nvidia-driver-390/Makefile
@@ -1,6 +1,6 @@
DISTVERSION= 390.154
# Explicitly set PORTREVISION as it can be overridden by the master port
PORTREVISION= 0
PORTREVISION= 1

MASTERDIR= ${.CURDIR}/../nvidia-driver
PKGNAMESUFFIX= -390
Expand Down
3 changes: 0 additions & 3 deletions x11/nvidia-driver/Makefile
Expand Up @@ -64,9 +64,6 @@ SUB_FILES= pkg-message
.if !defined(LIBGLDIR)
SUB_FILES+= nvidia.conf
.endif
.if ${NVVERSION} < 410.057
SUB_FILES+= pkg-deinstall pkg-install
.endif
SUB_PATCHES= extra-patch-src-Makefile \
extra-patch-src-nv-freebsd.h
.if ${NVVERSION} < 510.03901
Expand Down
2 changes: 2 additions & 0 deletions x11/nvidia-driver/files/nvidia.conf.in
Expand Up @@ -3,6 +3,8 @@
libGL.so libGL-NVIDIA.so
libGL.so.1 libGL-NVIDIA.so.1

%%PREFIX%%/lib/xorg/modules/extensions/libglx.so %%PREFIX%%/lib/xorg/modules/extensions/.nvidia/libglx.so

%%NVGL%%libEGL.so libEGL-NVIDIA.so
%%NVGL%%libEGL.so.1 libEGL-NVIDIA.so.1

Expand Down
12 changes: 0 additions & 12 deletions x11/nvidia-driver/files/pkg-deinstall.in

This file was deleted.

10 changes: 0 additions & 10 deletions x11/nvidia-driver/files/pkg-install.in

This file was deleted.

0 comments on commit d1b7aad

Please sign in to comment.