pkgsrc-Bugs archive

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

pkg/56169: modular-xorg-xephyr build problem on Solaris 10



>Number:         56169
>Category:       pkg
>Synopsis:       modular-xorg-xephyr build problem on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 14 18:35:00 +0000 2021
>Originator:     Claes Nästén
>Release:        trunk 2021-05-14
>Organization:
>Environment:
SunOS u40 5.10 Generic_147148-26 i86pc i386 i86pc

>Description:
Building modular-xorg-xephyr on Solaris 10 x86_64 fails due to missing strnlen and err.h.
>How-To-Repeat:
Build modular-xorg-xephyr on Solaris 10.
>Fix:
diff --git a/x11/modular-xorg-server/Makefile.common b/x11/modular-xorg-server/Makefile.common
index 75c3600e464..4642c09239e 100644
--- a/x11/modular-xorg-server/Makefile.common
+++ b/x11/modular-xorg-server/Makefile.common
@@ -15,6 +15,7 @@ GNU_CONFIGURE=        yes
 USE_LIBTOOL=   yes
 USE_TOOLS+=    gmake pkg-config
 USE_LANGUAGES+=        c99
+USE_FEATURES+= strnlen err
 
 CHECK_PORTABILITY_SKIP+=       hw/xquartz/bundle/mk_bundke.sh
 
diff --git a/x11/modular-xorg-server/distinfo b/x11/modular-xorg-server/distinfo
index 3c45bf9ff07..6639fe06b50 100644
--- a/x11/modular-xorg-server/distinfo
+++ b/x11/modular-xorg-server/distinfo
@@ -5,7 +5,7 @@ RMD160 (xorg-server-1.20.11.tar.bz2) = 9b451d5523e9384df37e0e91f52d843090590d23
 SHA512 (xorg-server-1.20.11.tar.bz2) = 1017015b9fd5d53788abe3641d877e6df8609841fa5c1847c0a5e133ddcc1b758a5d695304ebd36828099ec201a85b6b70b46f5ea4f81c5bd3a16fa6e175e3c2
 Size (xorg-server-1.20.11.tar.bz2) = 6476116 bytes
 SHA1 (patch-configure) = 4c2d439e622ec14ec2f8a3a2f556c67e60259f82
-SHA1 (patch-hw_kdrive_ephyr_hostx.c) = b681ee28bc7af06774f10bc882d355d42ac965d3
+SHA1 (patch-hw_kdrive_ephyr_hostx.c) = ec8b6128a26d605e50e8d1be3477558eda17a096
 SHA1 (patch-hw_xfree86_common_xf86AutoConfig.c) = 70adf85be9fc6222a335686e7e9e9f385aca02f9
 SHA1 (patch-hw_xfree86_common_xf86sbusBus.h) = f56f87336b2f669413ebb1005a2b64568a111f92
 SHA1 (patch-hw_xfree86_dri2_dri2.c) = 0bf58305059321e10f6f58186301dbb7cb858c2a
@@ -17,5 +17,7 @@ SHA1 (patch-hw_xfree86_os-support_bus_Sbus.c) = 0035b970bdae1bab51b8ca6bfeed060e
 SHA1 (patch-hw_xfree86_os-support_solaris_solaris-amd64.S) = 088a3118deb7567194e08dd46e34cb6edba38400
 SHA1 (patch-hw_xfree86_os-support_xf86_OSproc.h) = e1c049857893d2f050d5fb297a3e8ef86f0b1d7e
 SHA1 (patch-hw_xfree86_os_support_bus_xf86Sbus.h) = 0e0a243b737f8f762c9f8f24a2265d1b6aefb544
-SHA1 (patch-hw_xwayland_xwayland-input.c) = b876642a56f4930dfaa88cff77d4518cfe9d73e0
+SHA1 (patch-hw_xwayland_xwayland-input.c) = 9920680b4a4dfac95737563e018253a01eb6098d
+SHA1 (patch-os_backtrace.c) = 832b0f6fd5087d2c761af42e6d354ab870704087
 SHA1 (patch-test_xtest.c) = 77622ef481e91e64b3a6dd64b8579404f33ec88f
+SHA1 (patch-xkb_XKBGAlloc.c) = d0ed7954600e63444c500269752e918a8d7d7541
diff --git a/x11/modular-xorg-server/patches/patch-hw_kdrive_ephyr_hostx.c b/x11/modular-xorg-server/patches/patch-hw_kdrive_ephyr_hostx.c
index a3ece3b72e9..c53ad3c1d65 100644
--- a/x11/modular-xorg-server/patches/patch-hw_kdrive_ephyr_hostx.c
+++ b/x11/modular-xorg-server/patches/patch-hw_kdrive_ephyr_hostx.c
@@ -2,9 +2,23 @@ $NetBSD: patch-hw_kdrive_ephyr_hostx.c,v 1.1 2020/09/28 01:08:15 khorben Exp $
 
 Fix Xephyr visual with -parent option
 
---- hw/kdrive/ephyr/hostx.c.orig       2020-03-29 20:21:15.000000000 +0000
+--- hw/kdrive/ephyr/hostx.c.orig       2021-04-13 14:11:40.000000000 +0000
 +++ hw/kdrive/ephyr/hostx.c
-@@ -622,7 +622,7 @@ hostx_init(void)
+@@ -36,7 +36,13 @@
+ #include <string.h>             /* for memset */
+ #include <errno.h>
+ #include <time.h>
++#if defined(HAVE_NBCOMPAT_H)
++#include <nbcompat/config.h>
++#include <nbcompat/cdefs.h>
++#include <nbcompat/err.h>
++#else
+ #include <err.h>
++#endif
+ 
+ #include <sys/ipc.h>
+ #include <sys/shm.h>
+@@ -622,7 +628,7 @@ hostx_init(void)
                                scrpriv->win_height,
                                0,
                                XCB_WINDOW_CLASS_COPY_FROM_PARENT,
diff --git a/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c b/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
index b4edafc969e..182c22a4439 100644
--- a/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
+++ b/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
@@ -2,12 +2,20 @@ $NetBSD: patch-hw_xwayland_xwayland-input.c,v 1.2 2019/10/29 22:46:39 nia Exp $
 
 Support non-evdev platforms.
 
---- hw/xwayland/xwayland-input.c.orig  2019-02-26 19:28:50.000000000 +0000
+--- hw/xwayland/xwayland-input.c.orig  2021-04-13 14:11:40.000000000 +0000
 +++ hw/xwayland/xwayland-input.c
-@@ -26,7 +26,14 @@
+@@ -26,7 +26,22 @@
  
  #include "xwayland.h"
  
++#if defined(HAVE_NBCOMPAT_H)
++#include <nbcompat/config.h>
++#include <nbcompat/cdefs.h>
++#include <nbcompat/string.h>
++#else
++#include <string.h>
++#endif
++
 +#if defined(__linux__) || defined(__FreeBSD__)
  #include <linux/input.h>
 +#else
diff --git a/x11/modular-xorg-server/patches/patch-os_backtrace.c b/x11/modular-xorg-server/patches/patch-os_backtrace.c
new file mode 100644
index 00000000000..5295e193153
--- /dev/null
+++ b/x11/modular-xorg-server/patches/patch-os_backtrace.c
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- os/backtrace.c.orig        2021-04-13 14:11:40.000000000 +0000
++++ os/backtrace.c
+@@ -29,6 +29,7 @@
+ #include "misc.h"
+ #include <errno.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ #ifdef HAVE_LIBUNWIND
+ 
diff --git a/x11/modular-xorg-server/patches/patch-xkb_XKBGAlloc.c b/x11/modular-xorg-server/patches/patch-xkb_XKBGAlloc.c
new file mode 100644
index 00000000000..d6f851448f7
--- /dev/null
+++ b/x11/modular-xorg-server/patches/patch-xkb_XKBGAlloc.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- xkb/XKBGAlloc.c.orig       2021-04-13 14:11:40.000000000 +0000
++++ xkb/XKBGAlloc.c
+@@ -29,6 +29,13 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ #endif
+ 
+ #include <stdio.h>
++#if defined(HAVE_NBCOMPAT_H)
++#include <nbcompat/config.h>
++#include <nbcompat/cdefs.h>
++#include <nbcompat/string.h>
++#else
++#include <string.h>
++#endif
+ #include <X11/X.h>
+ #include <X11/Xproto.h>
+ #include "misc.h"


Home | Main Index | Thread Index | Old Index