pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/vte3 vte3: Update to 0.68.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ba373964dcf
branches:  trunk
changeset: 376324:1ba373964dcf
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Apr 05 15:51:57 2022 +0000

description:
vte3: Update to 0.68.0.

The recent vala update broke this build, this seems to get it back up
and running again.  Unfortunately upstream have switched to a "git log"
changelog which is only available in distfiles and is all but useless,
so no list of useful changes since 0.60.3 other than "bugfixes?".

Tested on NetBSD and SmartOS.

diffstat:

 x11/vte3/Makefile                         |   13 +-
 x11/vte3/PLIST                            |    9 +-
 x11/vte3/distinfo                         |   20 +--
 x11/vte3/patches/patch-meson.build        |   28 +++-
 x11/vte3/patches/patch-src_app_app.cc     |   48 +++-----
 x11/vte3/patches/patch-src_decoder-cat.cc |   24 ----
 x11/vte3/patches/patch-src_parser-cat.cc  |   24 ----
 x11/vte3/patches/patch-src_pty.cc         |  170 +-----------------------------
 x11/vte3/patches/patch-src_vte.cc         |   77 -------------
 x11/vte3/patches/patch-src_vtedraw.cc     |   22 ---
 x11/vte3/patches/patch-src_widget.cc      |    8 +-
 11 files changed, 68 insertions(+), 375 deletions(-)

diffs (truncated from 570 to 300 lines):

diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/Makefile
--- a/x11/vte3/Makefile Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/Makefile Tue Apr 05 15:51:57 2022 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.46 2022/03/30 10:02:26 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2022/04/05 15:51:57 jperkin Exp $
 
-DISTNAME=      vte-0.60.3
+DISTNAME=      vte-0.68.0
 PKGNAME=       ${DISTNAME:S/vte/vte3/}
-PKGREVISION=   14
 CATEGORIES=    x11
-MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/vte/0.60/}
-EXTRACT_SUFX=  .tar.xz
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=GNOME/}
+GITHUB_PROJECT=        vte
+GITHUB_TAG=    ${PKGVERSION_NOREV}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://www.gnome.org/
@@ -33,6 +33,7 @@
 MAKE_DIRS+=            ${PKG_SYSCONFDIR}/profile.d
 
 PYTHON_FOR_BUILD_ONLY= tool
+REPLACE_PYTHON=                src/*.py
 
 .include "options.mk"
 .include "../../devel/meson/build.mk"
@@ -42,7 +43,7 @@
 .include "../../devel/pango/buildlink3.mk"
 .include "../../devel/pcre2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
-BUILDLINK_DEPMETHOD.vala?=     build
+.include "../../lang/python/tool.mk"
 .include "../../lang/vala/buildlink3.mk"
 .include "../../security/gnutls/buildlink3.mk"
 .include "../../x11/gtk3/buildlink3.mk"
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/PLIST
--- a/x11/vte3/PLIST    Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/PLIST    Tue Apr 05 15:51:57 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2020/11/17 12:05:01 nia Exp $
+@comment $NetBSD: PLIST,v 1.7 2022/04/05 15:51:57 jperkin Exp $
 bin/vte-2.91
 include/vte-2.91/vte/vte.h
 include/vte-2.91/vte/vtedeprecated.h
@@ -8,17 +8,22 @@
 include/vte-2.91/vte/vtepty.h
 include/vte-2.91/vte/vteregex.h
 include/vte-2.91/vte/vteterminal.h
+include/vte-2.91/vte/vtetypebuiltins-gtk3.h
 include/vte-2.91/vte/vtetypebuiltins.h
 include/vte-2.91/vte/vteversion.h
 lib/girepository-1.0/Vte-2.91.typelib
 lib/libvte-2.91.so
 lib/libvte-2.91.so.0
-lib/libvte-2.91.so.0.6000.3
+lib/libvte-2.91.so.0.6800.0
 lib/pkgconfig/vte-2.91.pc
 libexec/vte-urlencode-cwd
 share/examples/profile.d/vte.csh
 share/examples/profile.d/vte.sh
 share/gir-1.0/Vte-2.91.gir
+share/glade/catalogs/vte-2.91.xml
+share/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
+share/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png
+share/locale/ab/LC_MESSAGES/vte-2.91.mo
 share/locale/am/LC_MESSAGES/vte-2.91.mo
 share/locale/an/LC_MESSAGES/vte-2.91.mo
 share/locale/ang/LC_MESSAGES/vte-2.91.mo
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/distinfo
--- a/x11/vte3/distinfo Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/distinfo Tue Apr 05 15:51:57 2022 +0000
@@ -1,17 +1,13 @@
-$NetBSD: distinfo,v 1.16 2021/10/26 11:34:31 nia Exp $
+$NetBSD: distinfo,v 1.17 2022/04/05 15:51:57 jperkin Exp $
 
-BLAKE2s (vte-0.60.3.tar.xz) = 461043eadab4af4579353914eee51daeecb65ddd7d4fc402c499c192030ea7d2
-SHA512 (vte-0.60.3.tar.xz) = 3694fe711e0b3eb9d6ba37ad8036f5d3cca4265635ed7afcde750a8445b17f820d1c55b557d0ea1c8a5a45e5408915d8da2ffd65b4d397c6582f288812ae1f18
-Size (vte-0.60.3.tar.xz) = 535504 bytes
+BLAKE2s (vte-0.68.0.tar.gz) = 1583ddbed30f848687a1ce02df9d03ce89a5b905a72a9cd1d866195931acbcb1
+SHA512 (vte-0.68.0.tar.gz) = fb2260ae1363203cdccd0e0c6cafe29e5fb25947d2830a7ce1051f672fdc11c067791a8b74cb3017548e366976763fec2022e0c196ed501f46abb08876ad24d6
+Size (vte-0.68.0.tar.gz) = 641981 bytes
 SHA1 (patch-bindings_vala_app.vala) = 09444285f642ab48849bbbc1ae663bee3567b8d4
-SHA1 (patch-meson.build) = ac82a0168f221fb67839062cb9a832b542470616
-SHA1 (patch-src_app_app.cc) = ff76c74840342195a4d318418474f69e385f6571
-SHA1 (patch-src_decoder-cat.cc) = 438b934314a440f04ab586022fdb057b6512167b
+SHA1 (patch-meson.build) = 82125d3c18d848afffcb7a063c9e53ad8fd4ac62
+SHA1 (patch-src_app_app.cc) = 2548e01629aa563595387328638a52a5616ff0bd
 SHA1 (patch-src_dumpkeys.c) = 102f24d7404d46b13194f3431d0a864d480e5da7
 SHA1 (patch-src_meson.build) = a8e159688fb36e4cfac40249e279a670c9c6cda8
 SHA1 (patch-src_mev.c) = b38dc42e02a8d5fa1e579349319f0b8c8b31dbce
-SHA1 (patch-src_parser-cat.cc) = 2ee7d7113b4688a631021bcbef13ee6196f534e9
-SHA1 (patch-src_pty.cc) = a9f52d89f356eb0a34de90748a7881d34ae27f12
-SHA1 (patch-src_vte.cc) = 6f8c3a7d64be7a813b740d098d51e17d3187b2ce
-SHA1 (patch-src_vtedraw.cc) = 1deab7738ae7c7bbb53e5b951df4d8a6ad9312f9
-SHA1 (patch-src_widget.cc) = adcecb612c6a0945f13c26e3b6a89131bcab4b1f
+SHA1 (patch-src_pty.cc) = bf65a5384090772eafb441cd8d3aae4eb8383d5b
+SHA1 (patch-src_widget.cc) = cbc8b715b21248996bfb7c6abe355c5f4e510539
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/patches/patch-meson.build
--- a/x11/vte3/patches/patch-meson.build        Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/patches/patch-meson.build        Tue Apr 05 15:51:57 2022 +0000
@@ -1,21 +1,33 @@
-$NetBSD: patch-meson.build,v 1.1 2020/09/25 08:51:41 jperkin Exp $
+$NetBSD: patch-meson.build,v 1.2 2022/04/05 15:51:58 jperkin Exp $
 
 Remove silly asserts that do nothing except break portability.
+NetBSD requires -D_NETBSD_SOURCE for grantpt().
 
---- meson.build.orig   2020-05-13 09:51:07.000000000 +0000
+--- meson.build.orig   2022-03-27 17:52:19.000000000 +0000
 +++ meson.build
-@@ -170,10 +170,6 @@ check_symbols_required = [
-   ['TIOCGWINSZ', 'sys/ioctl.h'],
- ]
+@@ -230,13 +230,6 @@ endforeach
+ 
+ # Check for symbols
  
+-check_symbols_required = [
+-  ['TIOCGWINSZ', 'sys/ioctl.h'],
+-]
+-
 -foreach symbol: check_symbols_required
 -  assert(cxx.has_header_symbol(symbol[1], symbol[0]), symbol[0] + ' not found')
 -endforeach
--
+ 
  # Check for functions
  
- check_functions_required = [
-@@ -389,14 +385,10 @@ linker_flags = [
+@@ -388,6 +381,7 @@ foreach func: check_functions
+     args: [
+       '-D_GNU_SOURCE',
+       '-D_XOPEN_SOURCE',
++      '-D_NETBSD_SOURCE',
+     ],
+     dependencies: __deps,
+     name: __name,
+@@ -558,14 +552,10 @@ linker_flags = [
  foreach flag: linker_flags
    if cc.has_link_argument(flag[0])
      add_project_link_arguments(flag[0], language: 'c')
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/patches/patch-src_app_app.cc
--- a/x11/vte3/patches/patch-src_app_app.cc     Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/patches/patch-src_app_app.cc     Tue Apr 05 15:51:57 2022 +0000
@@ -1,32 +1,22 @@
-$NetBSD: patch-src_app_app.cc,v 1.4 2019/03/07 21:36:07 jmcneill Exp $
+$NetBSD: patch-src_app_app.cc,v 1.5 2022/04/05 15:51:58 jperkin Exp $
 
-Fix NetBSD build.
+Add SunOS compat for cfmakeraw().
 
---- src/app/app.cc.orig        2018-12-10 21:32:12.000000000 +0000
+--- src/app/app.cc.orig        2022-03-27 17:52:19.000000000 +0000
 +++ src/app/app.cc
-@@ -23,6 +23,7 @@
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/wait.h>
-+#include <errno.h>
- 
- #include <glib.h>
- #include <glib/gprintf.h>
-@@ -308,7 +309,7 @@ public:
-                 else
-                         alpha = get_alpha();
- 
--                GdkRGBA color{bg_color};
-+                GdkRGBA color = bg_color;
-                 color.alpha = alpha;
-                 return color;
-         }
-@@ -1292,7 +1293,7 @@ vteapp_window_fork(VteappWindow* window,
-         auto pid = fork();
-         switch (pid) {
-         case -1: /* error */
--                g_set_error(error, G_IO_ERROR, G_IO_ERROR_FAILED, "Error forking: %m");
-+                g_set_error(error, G_IO_ERROR, G_IO_ERROR_FAILED, "Error forking: %s", strerror(errno));
-                 return false;
- 
-         case 0: /* child */ {
+@@ -3040,7 +3040,15 @@ main(int argc,
+                struct termios tcattr;
+                if (tcgetattr(STDIN_FILENO, &tcattr) == 0) {
+                        saved_tcattr = tcattr;
++#ifdef __sun
++                       tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
++                       tcattr.c_oflag &= ~OPOST;
++                       tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
++                       tcattr.c_cflag &= ~(CSIZE|PARENB);
++                       tcattr.c_cflag |= CS8;
++#else
+                        cfmakeraw(&tcattr);
++#endif
+                        if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) == 0)
+                                reset_termios = true;
+                }
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/patches/patch-src_decoder-cat.cc
--- a/x11/vte3/patches/patch-src_decoder-cat.cc Tue Apr 05 14:00:02 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_decoder-cat.cc,v 1.1 2020/06/20 16:00:07 nia Exp $
-
-Fix NetBSD build.
-
---- src/decoder-cat.cc.orig    2020-05-13 09:51:07.000000000 +0000
-+++ src/decoder-cat.cc
-@@ -422,7 +422,7 @@ private:
- 
-                 for (auto i = 0; i < options.repeat(); ++i) {
-                         if (i > 0 && lseek(fd, 0, SEEK_SET) != 0) {
--                                g_printerr("Failed to seek: %m\n");
-+                                g_printerr("Failed to seek: %s\n", strerror(errno));
-                                 return false;
-                         }
- 
-@@ -472,7 +472,7 @@ public:
-                                 } else {
-                                         fd = ::open(filename, O_RDONLY);
-                                         if (fd == -1) {
--                                                g_printerr("Error opening file %s: %m\n", filename);
-+                                                g_printerr("Error opening file %s: %s\n", filename, strerror(errno));
-                                         }
-                                 }
-                                 if (fd != -1) {
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/patches/patch-src_parser-cat.cc
--- a/x11/vte3/patches/patch-src_parser-cat.cc  Tue Apr 05 14:00:02 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_parser-cat.cc,v 1.1 2020/06/20 16:00:07 nia Exp $
-
-Fix NetBSD build.
-
---- src/parser-cat.cc.orig     2020-05-13 09:51:07.000000000 +0000
-+++ src/parser-cat.cc
-@@ -706,7 +706,7 @@ private:
- 
-                 for (auto i = 0; i < repeat; ++i) {
-                         if (i > 0 && lseek(fd, 0, SEEK_SET) != 0) {
--                                g_printerr("Failed to seek: %m\n");
-+                                g_printerr("Failed to seek: %s\n", strerror(errno));
-                                 return false;
-                         }
- 
-@@ -747,7 +747,7 @@ public:
-                                 } else {
-                                         fd = open(filename, O_RDONLY);
-                                         if (fd == -1) {
--                                                g_printerr("Error opening file %s: %m\n", filename);
-+                                                g_printerr("Error opening file %s: %s\n", filename, strerror(errno));
-                                         }
-                                 }
-                                 if (fd != -1) {
diff -r 0208cfc41911 -r 1ba373964dcf x11/vte3/patches/patch-src_pty.cc
--- a/x11/vte3/patches/patch-src_pty.cc Tue Apr 05 14:00:02 2022 +0000
+++ b/x11/vte3/patches/patch-src_pty.cc Tue Apr 05 15:51:57 2022 +0000
@@ -1,12 +1,10 @@
-$NetBSD: patch-src_pty.cc,v 1.5 2020/06/20 16:00:07 nia Exp $
+$NetBSD: patch-src_pty.cc,v 1.6 2022/04/05 15:51:58 jperkin Exp $
 
-NetBSD fix
 Use correct includes on SunOS.
-Don't use packet mode on SunOS.
 
---- src/pty.cc.orig    2020-05-13 09:51:07.000000000 +0000
+--- src/pty.cc.orig    2022-03-27 17:52:19.000000000 +0000
 +++ src/pty.cc
-@@ -64,7 +64,9 @@
+@@ -62,7 +62,9 @@
  #ifdef HAVE_PTY_H
  #include <pty.h>
  #endif
@@ -17,165 +15,3 @@
  #include <stropts.h>
  #endif
  #include <glib.h>
-@@ -111,7 +113,7 @@ Pty::child_setup() const noexcept
-         sigset_t set;
-         sigemptyset(&set);
-         if (pthread_sigmask(SIG_SETMASK, &set, nullptr) == -1) {
--                _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %m\n", "pthread_sigmask");
-+                _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n", "pthread_sigmask", strerror(errno));
-                 _exit(127);
-         }
- 
-@@ -134,7 +136,7 @@ Pty::child_setup() const noexcept
-                  */
-                 _vte_debug_print (VTE_DEBUG_PTY, "Starting new session\n");
-                 if (setsid() == -1) {
--                        _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %m\n", "setsid");
-+                        _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %s\n", "setsid", strerror(errno));
-                         _exit(127);
-                 }
-         }
-@@ -158,7 +160,7 @@ Pty::child_setup() const noexcept
-         if (fd == -1 &&
-             errno != EINVAL &&
-             errno != ENOTTY) {



Home | Main Index | Thread Index | Old Index