Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: x11-libs/vte/, x11-libs/vte/files/
Date: Sun, 30 May 2021 15:43:54
Message-Id: 1622389424.70e5d00844d9298c799a5c624420f61b7e8b87eb.anarchy@gentoo
1 commit: 70e5d00844d9298c799a5c624420f61b7e8b87eb
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 30 15:43:44 2021 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sun May 30 15:43:44 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=70e5d008
7
8 x11-libs/vte: sync with ::gentoo stable
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 x11-libs/vte/Manifest | 6 +-
14 .../files/vte-0.54.2-musl-remove-W_EXITCODE.patch | 23 ------
15 ...python-explicitly-to-honor-downstream-pyt.patch | 48 +++++++++++++
16 x11-libs/vte/vte-0.60.3.ebuild | 82 ----------------------
17 .../vte/{vte-0.62.3.ebuild => vte-0.64.1.ebuild} | 17 +++--
18 5 files changed, 63 insertions(+), 113 deletions(-)
19
20 diff --git a/x11-libs/vte/Manifest b/x11-libs/vte/Manifest
21 index e0b2e27..15fc69b 100644
22 --- a/x11-libs/vte/Manifest
23 +++ b/x11-libs/vte/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST vte-0.60.3-command-notify.patch.xz 6108 BLAKE2B 1f96788c097b003a3f9041529a0ff8ad083fe60597920632450e65ce13ad7181cb3bd4f2713ee19ab7d15154e3546720cdd0a72fabb3710ea7149c63cb159a1f SHA512 070d17fa2dfeed5ccb5ad67687bfb65a6a9dd79db300bb6e00f7d35b8ab3563c331e5f48bbecc32f8037475db319fb71f35e72108f260b6446fd2dd8e1a2897e
26 -DIST vte-0.60.3.tar.xz 535504 BLAKE2B c5556fdb91d876aa681d2a9466fa4f4c0ee6be630d076949fbd01878baffdf319e50ec75575729c49c09484914d9ee103d4d491861aedb678b0e336cd4ddcc2e SHA512 3694fe711e0b3eb9d6ba37ad8036f5d3cca4265635ed7afcde750a8445b17f820d1c55b557d0ea1c8a5a45e5408915d8da2ffd65b4d397c6582f288812ae1f18
27 -DIST vte-0.62.1-command-notify.patch.xz 4844 BLAKE2B 22301fdc5f1969beb2ad9b316fea8972f696f0e54e1a24d5eceedec71162afc2991b7963a71ce8925a94f6c40e5303d3db760b872d0eebbdc6d05b22d3c59ecc SHA512 491e241b0f5aae50e59d25751e95579d40c47e7e4c7f2b279522347f7f2f7f00c92bdf5fa4a651e4146bcfa9439f03b6311b4061fb20c5679c09b97a4924dcf1
28 -DIST vte-0.62.3.tar.xz 447152 BLAKE2B 2c55430490af577cdbad8bbcbb53902ccc4ab8d9643d5e8b3279e96b4285347e652e761644c957961732eeb50d12e33fa3d3c735be9899ad14c1e2f35377f2a7 SHA512 0475e2813b305bf1b5d48ece5959f2feb10e89b589fa3b75032ae466fd5254bf5c2fc6085dc296d65c5df84790a38892534ff401109843bf964ae62a8c540a81
29 +DIST vte-0.64.1-command-notify.patch.xz 4880 BLAKE2B d6ff5f4acac161980c8c18245e65795c7f0ea3d0819748894b055306ecd731d698cac578eff2750795a9180a9b17d79f220e814083012d5a04f4f351ff2a0e36 SHA512 174397aeca00399b138286fd4cc88941add041a1f2596fd42222d44c886c2e35b2a33041b58a102ee3acbcddc0cc40fcfde39d72ec46b640ee1db22d8ae684c4
30 +DIST vte-0.64.1.tar.bz2 486720 BLAKE2B bd8fb1f471a43aadf015cce8ae38c646521ca66e37652b72f7e94cec15a2a0a844d67116e9123ede44ba1b6ee569d1ecd0ff5e83067f6231802f5a77a798e446 SHA512 38bbbb4ed3d86740091c9ddee83f97bf5cb5c69c48e8a78592dd46e8f9334859a6c523e7b16dce110de71cd4a9a3b8b99a11816b61eae6e251dfc20cdbee6716
31
32 diff --git a/x11-libs/vte/files/vte-0.54.2-musl-remove-W_EXITCODE.patch b/x11-libs/vte/files/vte-0.54.2-musl-remove-W_EXITCODE.patch
33 deleted file mode 100644
34 index dfbc366..0000000
35 --- a/x11-libs/vte/files/vte-0.54.2-musl-remove-W_EXITCODE.patch
36 +++ /dev/null
37 @@ -1,23 +0,0 @@
38 -Expanded non-standard W_EXITCODE macro for Musl compatibility
39 -
40 -diff -Naur vte-0.54.2.orig/src/widget.cc vte-0.54.2/src/widget.cc
41 ---- vte-0.54.2.orig/src/widget.cc 2018-09-28 10:06:12.000000000 +0200
42 -+++ vte-0.54.2/src/widget.cc 2018-11-06 15:04:30.275949689 +0100
43 -@@ -20,8 +20,6 @@
44 -
45 - #include "widget.hh"
46 -
47 --#include <sys/wait.h> // for W_EXITCODE
48 --
49 - #include <new>
50 - #include <string>
51 -
52 -@@ -126,7 +124,7 @@
53 - Widget::dispose() noexcept
54 - {
55 - if (m_terminal->terminate_child()) {
56 -- int status = W_EXITCODE(0, SIGKILL);
57 -+ int status = (0) << 8 | (SIGKILL); // W_EXITCODE(ret, sig)
58 - emit_child_exited(status);
59 - }
60 - }
61
62 diff --git a/x11-libs/vte/files/vte-0.64.1-meson-Find-python-explicitly-to-honor-downstream-pyt.patch b/x11-libs/vte/files/vte-0.64.1-meson-Find-python-explicitly-to-honor-downstream-pyt.patch
63 new file mode 100644
64 index 0000000..79171d2
65 --- /dev/null
66 +++ b/x11-libs/vte/files/vte-0.64.1-meson-Find-python-explicitly-to-honor-downstream-pyt.patch
67 @@ -0,0 +1,48 @@
68 +https://gitlab.gnome.org/GNOME/vte/-/issues/350
69 +
70 +From d459d32126119c8d78f8239b8b857a255e6005d7 Mon Sep 17 00:00:00 2001
71 +From: Matt Turner <mattst88@×××××.com>
72 +Date: Sat, 1 May 2021 08:31:45 -0400
73 +Subject: [PATCH] meson: Find python explicitly to honor downstream python
74 + choice
75 +
76 +---
77 + meson.build | 1 +
78 + src/meson.build | 2 ++
79 + 2 files changed, 3 insertions(+)
80 +
81 +diff --git a/meson.build b/meson.build
82 +index 4f5a7c57..6404802f 100644
83 +--- a/meson.build
84 ++++ b/meson.build
85 +@@ -461,6 +461,7 @@ pango_dep = dependency('pango', version: '>=' + pango_req_version)
86 + pcre2_dep = dependency('libpcre2-8', version: '>=' + pcre2_req_version)
87 + pthreads_dep = dependency('threads')
88 + zlib_dep = dependency('zlib')
89 ++python = import('python').find_installation('python3')
90 +
91 + if get_option('fribidi')
92 + fribidi_dep = dependency('fribidi', version: '>=' + fribidi_req_version)
93 +diff --git a/src/meson.build b/src/meson.build
94 +index a1440da5..4ac6a7f2 100644
95 +--- a/src/meson.build
96 ++++ b/src/meson.build
97 +@@ -60,6 +60,7 @@ modes_sources = files(
98 + modes_sources += custom_target(
99 + 'modes',
100 + command: [
101 ++ python,
102 + files('modes.py'),
103 + '--destdir', '@OUTDIR@',
104 + ],
105 +@@ -92,6 +93,7 @@ parser_sources = files(
106 + parser_sources += custom_target(
107 + 'parser-seq',
108 + command: [
109 ++ python,
110 + files('parser-seq.py'),
111 + '--destdir', '@OUTDIR@',
112 + ],
113 +--
114 +2.26.3
115 +
116
117 diff --git a/x11-libs/vte/vte-0.60.3.ebuild b/x11-libs/vte/vte-0.60.3.ebuild
118 deleted file mode 100644
119 index 9605876..0000000
120 --- a/x11-libs/vte/vte-0.60.3.ebuild
121 +++ /dev/null
122 @@ -1,82 +0,0 @@
123 -# Copyright 1999-2020 Gentoo Authors
124 -# Distributed under the terms of the GNU General Public License v2
125 -
126 -EAPI="7"
127 -VALA_USE_DEPEND="vapigen"
128 -VALA_MIN_API_VERSION="0.32"
129 -
130 -inherit gnome.org meson vala xdg
131 -
132 -DESCRIPTION="Library providing a virtual terminal emulator widget"
133 -HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/VTE"
134 -
135 -LICENSE="LGPL-3+ GPL-3+"
136 -SLOT="2.91"
137 -IUSE="+crypt debug gtk-doc +icu +introspection systemd +vala vanilla"
138 -KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 x86"
139 -REQUIRED_USE="vala? ( introspection )"
140 -
141 -SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~leio/distfiles/${PN}-0.60.3-command-notify.patch.xz )"
142 -
143 -RDEPEND="
144 - >=x11-libs/gtk+-3.24.14:3[introspection?]
145 - >=dev-libs/fribidi-1.0.0
146 - >=dev-libs/glib-2.52:2
147 - crypt? ( >=net-libs/gnutls-3.2.7:0= )
148 - icu? ( dev-libs/icu:= )
149 - >=x11-libs/pango-1.22.0
150 - >=dev-libs/libpcre2-10.21
151 - systemd? ( >=sys-apps/systemd-220:= )
152 - sys-libs/zlib
153 - introspection? ( >=dev-libs/gobject-introspection-1.56:= )
154 - x11-libs/pango[introspection?]
155 -"
156 -DEPEND="${RDEPEND}"
157 -BDEPEND="
158 - dev-libs/libxml2:2
159 - dev-util/glib-utils
160 - gtk-doc? ( >=dev-util/gtk-doc-1.13
161 - app-text/docbook-xml-dtd:4.1.2 )
162 - >=sys-devel/gettext-0.19.8
163 - virtual/pkgconfig
164 -
165 - vala? ( $(vala_depend) )
166 -"
167 -
168 -src_prepare() {
169 - if ! use vanilla; then
170 - # Part of https://src.fedoraproject.org/rpms/vte291/raw/f31/f/vte291-cntnr-precmd-preexec-scroll.patch
171 - # Adds OSC 777 support for desktop notifications in gnome-terminal or elsewhere
172 - eapply "${WORKDIR}"/${PN}-0.60.3-command-notify.patch
173 - fi
174 -
175 - use elibc_musl && eapply "${FILESDIR}/${PN}-0.54.2-musl-remove-W_EXITCODE.patch"
176 -
177 - # -Ddebugg option enables various debug support via VTE_DEBUG, but also ggdb3; strip the latter
178 - sed -e '/ggdb3/d' -i meson.build || die
179 -
180 - use vala && vala_src_prepare
181 - xdg_src_prepare
182 -}
183 -
184 -src_configure() {
185 - local emesonargs=(
186 - -Da11y=true
187 - $(meson_use debug debugg)
188 - $(meson_use gtk-doc docs)
189 - $(meson_use introspection gir)
190 - -Dfribidi=true # pulled in by pango anyhow
191 - $(meson_use crypt gnutls)
192 - -Dgtk3=true
193 - -Dgtk4=false
194 - $(meson_use icu)
195 - $(meson_use systemd _systemd)
196 - $(meson_use vala vapi)
197 - )
198 - meson_src_configure
199 -}
200 -
201 -src_install() {
202 - meson_src_install
203 - mv "${ED}"/etc/profile.d/vte{,-${SLOT}}.sh || die
204 -}
205
206 diff --git a/x11-libs/vte/vte-0.62.3.ebuild b/x11-libs/vte/vte-0.64.1.ebuild
207 similarity index 80%
208 rename from x11-libs/vte/vte-0.62.3.ebuild
209 rename to x11-libs/vte/vte-0.64.1.ebuild
210 index e263de4..cd0ca0f 100644
211 --- a/x11-libs/vte/vte-0.62.3.ebuild
212 +++ b/x11-libs/vte/vte-0.64.1.ebuild
213 @@ -2,10 +2,11 @@
214 # Distributed under the terms of the GNU General Public License v2
215
216 EAPI=7
217 +PYTHON_COMPAT=( python3_{7..9} )
218 VALA_USE_DEPEND="vapigen"
219 VALA_MIN_API_VERSION="0.32"
220
221 -inherit gnome.org meson vala xdg
222 +inherit gnome.org meson python-any-r1 vala xdg
223
224 DESCRIPTION="Library providing a virtual terminal emulator widget"
225 HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/VTE"
226 @@ -13,10 +14,12 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/VTE"
227 LICENSE="LGPL-3+ GPL-3+"
228 SLOT="2.91"
229 IUSE="+crypt debug gtk-doc +icu +introspection systemd +vala vanilla"
230 -KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
231 +KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 x86"
232 REQUIRED_USE="vala? ( introspection )"
233
234 -SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~mattst88/distfiles/${PN}-0.62.1-command-notify.patch.xz )"
235 +# Upstream is hostile and refuses to upload tarballs.
236 +SRC_URI="https://gitlab.gnome.org/GNOME/${PN}/-/archive/${PV}/${P}.tar.bz2"
237 +SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~mattst88/distfiles/${PN}-0.64.1-command-notify.patch.xz )"
238
239 RDEPEND="
240 >=x11-libs/gtk+-3.24.14:3[introspection?]
241 @@ -33,6 +36,7 @@ RDEPEND="
242 "
243 DEPEND="${RDEPEND}"
244 BDEPEND="
245 + ${PYTHON_DEPS}
246 dev-libs/libxml2:2
247 dev-util/glib-utils
248 gtk-doc? ( >=dev-util/gtk-doc-1.13
249 @@ -43,11 +47,15 @@ BDEPEND="
250 vala? ( $(vala_depend) )
251 "
252
253 +PATCHES=(
254 + "${FILESDIR}"/${PN}-0.64.1-meson-Find-python-explicitly-to-honor-downstream-pyt.patch
255 +)
256 +
257 src_prepare() {
258 if ! use vanilla; then
259 # Part of https://src.fedoraproject.org/rpms/vte291/raw/f31/f/vte291-cntnr-precmd-preexec-scroll.patch
260 # Adds OSC 777 support for desktop notifications in gnome-terminal or elsewhere
261 - eapply "${WORKDIR}"/${PN}-0.62.1-command-notify.patch
262 + eapply "${WORKDIR}"/${PN}-0.64.1-command-notify.patch
263 fi
264
265 use elibc_musl && eapply "${FILESDIR}/${PN}-0.62.3-musl-remove-W_EXITCODE.patch"
266 @@ -66,6 +74,7 @@ src_configure() {
267 $(meson_use gtk-doc docs)
268 $(meson_use introspection gir)
269 -Dfribidi=true # pulled in by pango anyhow
270 + -Dglade=true
271 $(meson_use crypt gnutls)
272 -Dgtk3=true
273 -Dgtk4=false