FreeBSD Bugzilla – Attachment 188648 Details for
Bug 224202
[PATCH] x11-toolkits/wlc: Update to 0.0.10
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to update x11-toolkits/wlc to 0.0.10
wlc.diff (text/plain), 9.16 KB, created by
Johannes Lundberg
on 2017-12-09 14:24:04 UTC
(
hide
)
Description:
Patch to update x11-toolkits/wlc to 0.0.10
Filename:
MIME Type:
Creator:
Johannes Lundberg
Created:
2017-12-09 14:24:04 UTC
Size:
9.16 KB
patch
obsolete
>diff --git a/x11-toolkits/wlc/Makefile b/x11-toolkits/wlc/Makefile >index b15a53c605e8..118f2c47e8c7 100644 >--- a/x11-toolkits/wlc/Makefile >+++ b/x11-toolkits/wlc/Makefile >@@ -1,7 +1,7 @@ > # $FreeBSD$ > > PORTNAME= wlc >-PORTVERSION= 0.0.8 >+PORTVERSION= 0.0.10 > PORTREVISION= 1 > CATEGORIES= x11-toolkits wayland > >@@ -9,8 +9,9 @@ MAINTAINER= x11@FreeBSD.org > COMMENT= Wayland compositor library > > LICENSE= MIT >-LICENSE_FILES= ${WRKSRC}/LISENSE >+LICENSE_FILES= ${WRKSRC}/LICENSE > >+RUN_DEPENDS= xkeyboard-config>=0:x11/xkeyboard-config > BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols > LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \ > libxcb-ewmh.so:x11/xcb-util-wm \ >@@ -20,14 +21,12 @@ LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \ > libinput.so:x11/libinput \ > libxcb-image.so:x11/xcb-util-image > >-RUN_DEPENDS= xkeyboard-config>=0:x11/xkeyboard-config >- > USE_GITHUB= yes > GH_ACCOUNT= cloudef >-GH_TAGNAME= fa780ce >+GH_TAGNAME= v0.0.10 > GH_TUPLE= cloudef:chck:3f27d2a:chck > >-USES= cmake gnome localbase pkgconfig pathfix >+USES= cmake gnome localbase pkgconfig > USE_XORG= pixman x11 xcb xcursor xfixes > USE_GL= egl gbm glesv2 > USE_GNOME= cairo >diff --git a/x11-toolkits/wlc/distinfo b/x11-toolkits/wlc/distinfo >index a37c6796eb25..0e06ce05df6a 100644 >--- a/x11-toolkits/wlc/distinfo >+++ b/x11-toolkits/wlc/distinfo >@@ -1,5 +1,5 @@ >-TIMESTAMP = 1488036711 >-SHA256 (cloudef-wlc-0.0.8-fa780ce_GH0.tar.gz) = bf22b99b52cc2fb4ecc27da90ee47f516f8d5d1a02afdc495488c14d01788bc8 >-SIZE (cloudef-wlc-0.0.8-fa780ce_GH0.tar.gz) = 120603 >+TIMESTAMP = 1507979369 >+SHA256 (cloudef-wlc-0.0.10-v0.0.10_GH0.tar.gz) = 4f806cc695eebfb5c18297563427836c0997900bedc3011a5e7a99efb4000ac3 >+SIZE (cloudef-wlc-0.0.10-v0.0.10_GH0.tar.gz) = 136429 > SHA256 (cloudef-chck-3f27d2a_GH0.tar.gz) = fa3765dbaad52e968aae8b9a06a8ace24fab0d9ca53cc08a1f5543ff33959ebd > SIZE (cloudef-chck-3f27d2a_GH0.tar.gz) = 119955 >diff --git a/x11-toolkits/wlc/files/patch-src_session_fd.c b/x11-toolkits/wlc/files/patch-src_session_fd.c >deleted file mode 100644 >index 341a8fd8974d..000000000000 >--- a/x11-toolkits/wlc/files/patch-src_session_fd.c >+++ /dev/null >@@ -1,48 +0,0 @@ >---- src/session/fd.c.orig 2016-08-19 13:28:50 UTC >-+++ src/session/fd.c >-@@ -10,7 +10,9 @@ >- #include <sys/select.h> >- #include <sys/socket.h> >- #include <sys/types.h> >-+#if !defined(__FreeBSD__) >- #include <linux/major.h> >-+#endif >- #include <xf86drm.h> >- #include "internal.h" >- #include "macros.h" >-@@ -135,7 +137,7 @@ recv_fd(int sock, int *out_fd, void *out >- return read; >- >- if (message.msg_controllen == 0) >-- return read; >-+ return read; >- >- if (!(cmsg = CMSG_FIRSTHDR(&message))) >- return read; >-@@ -171,6 +173,7 @@ fd_open(const char *path, int flags, enu >- } >- >- /* we will only open allowed paths */ >-+#if !defined(__FreeBSD__) >- #define FILTER(x, m) { x, (sizeof(x) > 32 ? 32 : sizeof(x)) - 1, m } >- static struct { >- const char *base; >-@@ -186,14 +189,15 @@ fd_open(const char *path, int flags, enu >- wlc_log(WLC_LOG_WARN, "Denying open from: %s", path); >- return -1; >- } >-+#endif >- >- struct stat st; >- if (stat(path, &st) < 0) >-- return -1; >-+ return -1; >- >--#ifdef __linux__ >-+#if !defined(__FreeBSD__) >- if (major(st.st_rdev) != allow[type].major) >-- return -1; >-+ return -1; >- #endif >- >- int fd; >diff --git a/x11-toolkits/wlc/files/patch-src_session_tty.c b/x11-toolkits/wlc/files/patch-src_session_tty.c >deleted file mode 100644 >index 888296ba5e77..000000000000 >--- a/x11-toolkits/wlc/files/patch-src_session_tty.c >+++ /dev/null >@@ -1,165 +0,0 @@ >---- src/session/tty.c.orig 2016-08-19 13:28:50 UTC >-+++ src/session/tty.c >-@@ -9,27 +9,18 @@ >- #include "internal.h" >- #include "tty.h" >- >--#if defined(__linux__) >--# define TTY_BASENAME "/dev/tty" >--# define TTY_0 "/dev/tty0" >--# include <linux/kd.h> >--# include <linux/major.h> >--# include <linux/vt.h> >--#elif defined(__FreeBSD__) >-+#if defined(__FreeBSD__) >-+# include <termios.h> >- # include <sys/consio.h> >- # include <sys/kbio.h> >- # define TTY_BASENAME "/dev/ttyv" >- # define TTY_0 "/dev/ttyv0" >--# define TTY_MAJOR 0 >--# define VT_GETSTATE 0x5603 >--# define VT_ACTIVATE 0x5606 >--# define K_UNICODE 0x03 >--# define K_OFF 0x04 >--struct vt_stat { >-- unsigned short v_active; /* active vt */ >-- unsigned short v_signal; /* signal to send */ >-- unsigned short v_state; /* vt bitmask */ >--}; >-+#else >-+# include <linux/kd.h> >-+# include <linux/major.h> >-+# include <linux/vt.h> >-+# define TTY_BASENAME "/dev/tty" >-+# define TTY_0 "/dev/tty0" >- #endif >- >- #ifndef KDSKBMUTE >-@@ -100,22 +91,22 @@ open_tty(int vt) >- } >- >- static bool >--setup_tty(int fd, bool replace_vt) >-+setup_tty(int fd, int vt, bool replace_vt) >- { >- if (fd < 0) >- return false; >- >-+#if defined(__FreeBSD__) >-+ wlc.vt = vt+1; >-+#else >- struct stat st; >- if (fstat(fd, &st) == -1) >- die("Could not stat tty fd"); >-- >- wlc.vt = minor(st.st_rdev); >-- >- if (major(st.st_rdev) != TTY_MAJOR || wlc.vt == 0) >- die("Not a valid vt"); >-+#endif >- >--/* FreeBSD's new vt is still missing some bits */ >--#if defined(__linux__) >- if (!replace_vt) { >- int kd_mode; >- if (ioctl(fd, KDGETMODE, &kd_mode) == -1) >-@@ -125,18 +116,20 @@ setup_tty(int fd, bool replace_vt) >- die("vt%d is already in graphics mode (%d). Is another display server running?", wlc.vt, kd_mode); >- } >- >-+#if defined(__FreeBSD__) >-+ ioctl(fd, VT_GETACTIVE, &wlc.old_state.vt); >-+#else >- struct vt_stat state; >- if (ioctl(fd, VT_GETSTATE, &state) == -1) >- die("Could not get current vt"); >-- >- wlc.old_state.vt = state.v_active; >-+#endif >- >- if (ioctl(fd, VT_ACTIVATE, wlc.vt) == -1) >- die("Could not activate vt%d", wlc.vt); >- >- if (ioctl(fd, VT_WAITACTIVE, wlc.vt) == -1) >- die("Could not wait for vt%d to become active", wlc.vt); >--#endif >- >- if (ioctl(fd, KDGKBMODE, &wlc.old_state.kb_mode) == -1) >- die("Could not get keyboard mode"); >-@@ -144,7 +137,19 @@ setup_tty(int fd, bool replace_vt) >- // vt will be restored from now on >- wlc.tty = fd; >- >--#if defined(__linux__) >-+#if defined(__FreeBSD__) >-+ if (ioctl(fd, KDSKBMODE, K_CODE) == -1) { >-+ wlc_tty_terminate(); >-+ die("Could not set keyboard mode to K_CODE"); >-+ } >-+ /* Put the tty into raw mode */ >-+ struct termios tios; >-+ if (tcgetattr(fd, &tios)) >-+ die("Failed to get terminal attribute"); >-+ cfmakeraw(&tios); >-+ if (tcsetattr(fd, TCSANOW, &tios)) >-+ die("Failed to set terminal attribute"); >-+#else >- if (ioctl(fd, KDSKBMUTE, 1) == -1 && ioctl(fd, KDSKBMODE, K_OFF) == -1) { >- wlc_tty_terminate(); >- die("Could not set keyboard mode to K_OFF"); >-@@ -156,18 +161,19 @@ setup_tty(int fd, bool replace_vt) >- die("Could not set console mode to KD_GRAPHICS"); >- } >- >--#if defined(__linux__) >- struct vt_mode mode = { >- .mode = VT_PROCESS, >- .relsig = SIGUSR1, >- .acqsig = SIGUSR2 >- }; >-+#if defined(__FreeBSD__) >-+ mode.frsig = SIGIO; /* not used, but has to be set anyway */ >-+#endif >- >- if (ioctl(fd, VT_SETMODE, &mode) == -1) { >- wlc_tty_terminate(); >- die("Could not set vt%d mode", wlc.vt); >- } >--#endif >- >- return true; >- } >-@@ -230,13 +236,19 @@ wlc_tty_terminate(void) >- // The ACTIVATE / WAITACTIVE may be potentially bad here. >- // However, we need to make sure the vt we initially opened is also active on cleanup. >- // We can't make sure this is synchronized due to unclean exits. >-+ >- if (ioctl(wlc.tty, VT_ACTIVATE, wlc.vt) != -1 && ioctl(wlc.tty, VT_WAITACTIVE, wlc.vt) != -1) { >- wlc_log(WLC_LOG_INFO, "Restoring vt %d (0x%lx) (fd %d)", wlc.vt, wlc.old_state.kb_mode, wlc.tty); >- >-- if (ioctl(wlc.tty, KDSKBMUTE, 0) == -1 && >-- ioctl(wlc.tty, KDSKBMODE, wlc.old_state.kb_mode) == -1 && >-- ioctl(wlc.tty, KDSKBMODE, K_UNICODE) == -1) >-- wlc_log(WLC_LOG_ERROR, "Failed to restore vt%d KDSKMODE", wlc.vt); >-+#if defined(__FreeBSD__) >-+ if (ioctl(wlc.tty, KDSKBMODE, wlc.old_state.kb_mode) == -1 && >-+ ioctl(wlc.tty, KDSKBMODE, K_XLATE) == -1) >-+#else >-+ if (ioctl(wlc.tty, KDSKBMUTE, 0) == -1 && >-+ ioctl(wlc.tty, KDSKBMODE, wlc.old_state.kb_mode) == -1 && >-+ ioctl(wlc.tty, KDSKBMODE, K_UNICODE) == -1) >-+#endif >-+ wlc_log(WLC_LOG_ERROR, "Failed to restore vt%d KDSKMODE", wlc.vt); >- >- if (ioctl(wlc.tty, KDSETMODE, KD_TEXT) == -1) >- wlc_log(WLC_LOG_ERROR, "Failed to restore vt%d mode to VT_AUTO", wlc.vt); >-@@ -271,7 +283,7 @@ wlc_tty_init(int vt) >- if (!vt && !(vt = find_vt(getenv("XDG_VTNR"), &replace_vt))) >- die("Could not find vt"); >- >-- if (!setup_tty(open_tty(vt), replace_vt)) >-+ if (!setup_tty(open_tty(vt), vt, replace_vt)) >- die("Could not open tty with vt%d", vt); >- >- struct sigaction action = { >diff --git a/x11-toolkits/wlc/pkg-plist b/x11-toolkits/wlc/pkg-plist >index 9b8ec78ed1a7..371144b4e54e 100644 >--- a/x11-toolkits/wlc/pkg-plist >+++ b/x11-toolkits/wlc/pkg-plist >@@ -5,5 +5,5 @@ include/wlc/wlc-wayland.h > include/wlc/wlc.h > lib/libwlc.so > lib/libwlc.so.0 >-lib/libwlc.so.0.0.5 >+lib/libwlc.so.0.0.9 > libdata/pkgconfig/wlc.pc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224202
: 188648 |
188670