FreeBSD Bugzilla – Attachment 248651 Details for
Bug 276387
x11/xvt: removes DEPRECIATED and returns it to MAINTAINER
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to update x11/xvt to version 3.0.3
x11_xvt03.diff (text/plain), 7.81 KB, created by
Chris Hutchinson
on 2024-02-21 00:32:19 UTC
(
hide
)
Description:
patch to update x11/xvt to version 3.0.3
Filename:
MIME Type:
Creator:
Chris Hutchinson
Created:
2024-02-21 00:32:19 UTC
Size:
7.81 KB
patch
obsolete
>diff --git a/x11/xvt/Makefile b/x11/xvt/Makefile >index 3ce0b94af06b..0be26b023d0d 100644 >--- a/x11/xvt/Makefile >+++ b/x11/xvt/Makefile >@@ -1,22 +1,18 @@ > PORTNAME= xvt >-PORTVERSION= 3.0.1 >-PORTREVISION= 1 >+PORTVERSION= 3.0.3 > CATEGORIES+= x11 >-MASTER_SITES= https://BSDforge.com/projects/source/x11/xvt/ >+MASTER_SITES= https://codeberg.org/BSDforge/${PORTNAME}/archive/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= portmaster@BSDforge.com > COMMENT= Xterm replacement, supporting color, transparency, and more, with less >-WWW= https://BSDforge.com/projects/x11/xvt/ >+WWW= https://codeberg.org/BSDforge/xvt/ > > LICENSE= BSD2CLAUSE GPLv2 > LICENSE_COMB= multi > >-DEPRECATED= Deprecated in favour of various forks, consider using x11/rxvt-unicode >-EXPIRATION_DATE=2024-02-29 >+PORTDOCS= xvt.1.html xvtRef.html xvtRef.txt README.xvt > >-PORTDOCS= xvt.1.html xvtRef.html xvtRef.txt >- >-USES= libtool perl5 tar:xz xorg >+USES= libtool perl5 xorg > USE_LDCONFIG= yes > USE_PERL5= build patch > USE_XORG= x11 xpm >@@ -89,6 +85,10 @@ XTERM_CONFIGURE_ON= --enable-xterm-scroll > # make resources checking via XGetDefault > XGETDEFAULT_CONFIGURE_ON= --enable-xgetdefault > >+# because the ports framework doesn't cope well with bare ${PORTNAME} ${WRKSRC} >+post-extract: >+ ${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION} >+ > post-patch: > @${PERL} -pi -e 's|(PTYCHAR2\s+"[^"]+)"|\1ghijklmnopqrstuv"|' \ > ${WRKSRC}/src/ptytty.c >diff --git a/x11/xvt/distinfo b/x11/xvt/distinfo >index fdab06afb482..aff4d032347c 100644 >--- a/x11/xvt/distinfo >+++ b/x11/xvt/distinfo >@@ -1,2 +1,3 @@ >-SHA256 (xvt-3.0.1.tar.xz) = f218db092449eb183de540f6500aefbcca6f8f4e3a40110c728e578c27593e6d >-SIZE (xvt-3.0.1.tar.xz) = 431296 >+TIMESTAMP = 1708475120 >+SHA256 (xvt-3.0.3.tar.gz) = 02dcf972217f0ea326de0e2275bc69d36ae2ff768f2f240ba87b5fbdb74c1798 >+SIZE (xvt-3.0.3.tar.gz) = 610220 >diff --git a/x11/xvt/files/patch-src__command.c b/x11/xvt/files/patch-src__command.c >deleted file mode 100644 >index 995854c0449b..000000000000 >--- a/x11/xvt/files/patch-src__command.c >+++ /dev/null >@@ -1,11 +0,0 @@ >---- src/command.c.orig 2014-12-09 12:06:57.000000000 -0800 >-+++ src/command.c 2014-12-09 12:07:41.000000000 -0800 >-@@ -3098,7 +3098,7 @@ >- unsigned char buf[256]; >- >- va_start(arg_ptr, fmt); >-- vsprintf((char *)buf, fmt, arg_ptr); >-+ vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr); >- va_end(arg_ptr); >- xvt_tt_write(r, buf, (unsigned int)STRLEN(buf)); >- } >diff --git a/x11/xvt/files/patch-src__init.c b/x11/xvt/files/patch-src__init.c >deleted file mode 100644 >index 85febc23474e..000000000000 >--- a/x11/xvt/files/patch-src__init.c >+++ /dev/null >@@ -1,22 +0,0 @@ >---- src/init.c.orig 2014-12-09 12:50:59.000000000 -0800 >-+++ src/init.c 2014-12-09 12:54:55.000000000 -0800 >-@@ -1531,6 +1531,9 @@ >- # ifdef VEOL2 >- tio->c_cc[VEOL2] = VDISABLE; >- # endif >-+# ifdef VERASE2 >-+ tio->c_cc[VERASE2] = CERASE2; >-+# endif >- # ifdef VSWTC >- tio->c_cc[VSWTC] = VDISABLE; >- # endif >-@@ -1651,6 +1654,9 @@ >- # ifdef VEOL2 >- FOO(VEOL2, "VEOL2"); >- # endif >-+# ifdef VERASE2 >-+ FOO(VERASE2, "VERASE2"); >-+# endif >- # ifdef VSWTC >- FOO(VSWTC, "VSWTC"); >- # endif >diff --git a/x11/xvt/files/patch-src__screen.c b/x11/xvt/files/patch-src__screen.c >deleted file mode 100644 >index c79e5c5e107c..000000000000 >--- a/x11/xvt/files/patch-src__screen.c >+++ /dev/null >@@ -1,62 +0,0 @@ >---- src/screen.c.orig 2014-12-09 13:14:46.000000000 -0800 >-+++ src/screen.c 2014-12-09 13:14:57.000000000 -0800 >-@@ -3520,6 +3520,7 @@ >- Atom32 target_list[3]; >- #endif >- Atom target; >-+ Atom property; >- XTextProperty ct; >- XICCEncodingStyle style; >- char *cl[2], dummy[1]; >-@@ -3532,6 +3533,15 @@ >- ev.target = rq->target; >- ev.time = rq->time; >- >-+ /* ICCCM: 2.2. Responsibilities of the Selection Owner >-+ * SelectionRequest: >-+ * If the specified property is None , the requestor >-+ * an obsolete client. Owners are encouraged >-+ * to support these clients by using the specified >-+ * target atom as the property name to be used for >-+ * the reply. >-+ */ >-+ property = (rq->property == 0) ? rq->target : rq->property; >- if (rq->target == r->h->xa[XA_TARGETS]) { >- target_list[0] = (Atom32) r->h->xa[XA_TARGETS]; >- target_list[1] = (Atom32) XA_STRING; >-@@ -3539,7 +3549,7 @@ >- #ifdef USE_XIM >- target_list[3] = (Atom32) r->h->xa[XA_COMPOUND_TEXT]; >- #endif >-- XChangeProperty(r->Xdisplay, rq->requestor, rq->property, XA_ATOM, >-+ XChangeProperty(r->Xdisplay, rq->requestor, property, XA_ATOM, >- (8 * sizeof(target_list[0])), PropModeReplace, >- (unsigned char *)target_list, >- (sizeof(target_list) / sizeof(target_list[0]))); >-@@ -3547,10 +3557,10 @@ >- } else if (rq->target == r->h->xa[XA_MULTIPLE]) { >- /* TODO: Handle MULTIPLE */ >- } else if (rq->target == r->h->xa[XA_TIMESTAMP] && r->selection.text) { >-- XChangeProperty(r->Xdisplay, rq->requestor, rq->property, XA_INTEGER, >-- (8 * sizeof(Time)), PropModeReplace, >-+ XChangeProperty(r->Xdisplay, rq->requestor, property, XA_INTEGER, >-+ 32, PropModeReplace, >- (unsigned char *)&r->h->selection_time, 1); >-- ev.property = rq->property; >-+ ev.property = property; >- } else if (rq->target == XA_STRING >- || rq->target == r->h->xa[XA_COMPOUND_TEXT] >- || rq->target == r->h->xa[XA_TEXT]) { >-@@ -3588,10 +3598,10 @@ >- ct.value = (unsigned char *)cl[0]; >- ct.nitems = selectlen; >- } >-- XChangeProperty(r->Xdisplay, rq->requestor, rq->property, >-+ XChangeProperty(r->Xdisplay, rq->requestor, property, >- target, 8, PropModeReplace, >- ct.value, (int)ct.nitems); >-- ev.property = rq->property; >-+ ev.property = property; >- #ifdef USE_XIM >- if (freect) >- XFree(ct.value); >diff --git a/x11/xvt/files/patch-src__xvt.h b/x11/xvt/files/patch-src__xvt.h >deleted file mode 100644 >index dc899723fe6b..000000000000 >--- a/x11/xvt/files/patch-src__xvt.h >+++ /dev/null >@@ -1,11 +0,0 @@ >---- src/xvt.h.orig 2014-12-09 12:59:35.000000000 -0800 >-+++ src/xvt.h 2014-12-09 12:59:39.000000000 -0800 >-@@ -804,7 +804,7 @@ >- #define xvt_Gr_ButtonRelease(x,y) xvt_Gr_ButtonReport (r, 'R',(x),(y)) >- >- #ifdef UTMP_SUPPORT >--# if !defined(XVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX) >-+# if !defined(HAVE_STRUCT_UTMPX) >- # undef HAVE_UTMPX_H >- # undef HAVE_STRUCT_UTMPX >- # endif >diff --git a/x11/xvt/files/patch-src_logging.c b/x11/xvt/files/patch-src_logging.c >deleted file mode 100644 >index ec071a168302..000000000000 >--- a/x11/xvt/files/patch-src_logging.c >+++ /dev/null >@@ -1,50 +0,0 @@ >---- src/logging.c.orig 2014-12-09 13:47:18.000000000 -0800 >-+++ src/logging.c 2014-12-09 13:47:35.000000000 -0800 >-@@ -82,7 +82,8 @@ >- else if (sscanf(pty, "pts/%d", &i) == 1) >- sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */ >- #endif >-- else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) { >-+ else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3) && >-+ STRNCMP(pty, "pts/", 4)) { >- xvt_print_error("can't parse tty name \"%s\"", pty); >- return; >- } >-@@ -137,7 +138,9 @@ >- STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?", >- sizeof(utx->ut_user)); >- STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id)); >-+#if 0 >- utx->ut_session = getsid(0); >-+#endif >- utx->ut_tv.tv_sec = time(NULL); >- utx->ut_tv.tv_usec = 0; >- utx->ut_pid = r->h->cmd_pid; >-@@ -202,7 +205,7 @@ >- xvt_update_wtmp(XVT_WTMP_FILE, ut); >- # endif >- # endif >--# ifdef HAVE_STRUCT_UTMPX >-+# if 0 >- updwtmpx(XVT_WTMPX_FILE, utx); >- # endif >- } >-@@ -254,7 +257,9 @@ >- if ((tmputx = getutxid(utx))) /* position to entry in utmp file */ >- utx = tmputx; >- utx->ut_type = DEAD_PROCESS; >-+#if 0 >- utx->ut_session = getsid(0); >-+#endif >- utx->ut_tv.tv_sec = time(NULL); >- utx->ut_tv.tv_usec = 0; >- #endif >-@@ -274,7 +279,7 @@ >- xvt_update_wtmp(XVT_WTMP_FILE, ut); >- # endif >- # endif >--# ifdef HAVE_STRUCT_UTMPX >-+# if 0 >- updwtmpx(XVT_WTMPX_FILE, utx); >- # endif >- }
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
Flags:
portmaster
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 276387
:
247713
|
247731
|
248650
|
248651
|
248666
|
248674
|
248682
|
248683