From b194e0e9d0a5d9eb6b83d101ca710fd0e9c457f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 6 Jun 2024 12:14:26 -0600 Subject: [PATCH 1/6] gui-libs/wlroots: fix automagic of lcms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Leonardo Hernández Hernández Signed-off-by: Arthur Zamarin --- gui-libs/wlroots/wlroots-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild index 77c372411845f..e2f9010afd444 100644 --- a/gui-libs/wlroots/wlroots-9999.ebuild +++ b/gui-libs/wlroots/wlroots-9999.ebuild @@ -19,7 +19,7 @@ else fi LICENSE="MIT" -IUSE="liftoff +libinput +drm +session tinywl vulkan x11-backend xcb-errors X" +IUSE="liftoff +libinput +drm +session tinywl lcms vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) @@ -41,6 +41,7 @@ DEPEND=" sys-apps/hwdata liftoff? ( >=dev-libs/libliftoff-0.4 ) ) + lcms? ( media-libs/lcms:2 ) libinput? ( >=dev-libs/libinput-1.14.0:= ) session? ( sys-auth/seatd:= @@ -85,6 +86,7 @@ src_configure() { $(meson_feature X xwayland) -Dbackends=${meson_backends} $(meson_feature session) + $(meson_feature lcms color-management) ) meson_src_configure From 21f07887b141ab22aff8aaa32b993883409aa781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 6 Jun 2024 11:50:26 -0600 Subject: [PATCH 2/6] gui-libs/wlroots: fix automagic of libliftoff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/933600 Signed-off-by: Leonardo Hernández Hernández Signed-off-by: Arthur Zamarin --- ...lroots-0.17-fix-automagic-libliftoff.patch | 43 +++++++++++++++++++ ...7.3-r2.ebuild => wlroots-0.17.3-r3.ebuild} | 6 +++ gui-libs/wlroots/wlroots-9999.ebuild | 2 + 3 files changed, 51 insertions(+) create mode 100644 gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch rename gui-libs/wlroots/{wlroots-0.17.3-r2.ebuild => wlroots-0.17.3-r3.ebuild} (92%) diff --git a/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch b/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch new file mode 100644 index 0000000000000..86dd42521e436 --- /dev/null +++ b/gui-libs/wlroots/files/wlroots-0.17-fix-automagic-libliftoff.patch @@ -0,0 +1,43 @@ +https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/385c9ade5f7a8ce9e5c13f762d56e6bd1c8d1b0a +From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= + +Date: Wed, 5 Jun 2024 22:33:05 -0600 +Subject: [PATCH] add an option to enable/disable libliftoff +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +instead of always using it if found + +Signed-off-by: Leonardo Hernández Hernández +--- a/backend/drm/meson.build ++++ b/backend/drm/meson.build +@@ -16,7 +16,7 @@ libliftoff = dependency( + 'libliftoff', + version: '>=0.4.0', + fallback: 'libliftoff', +- required: false, ++ required: get_option('libliftoff'), + ) + + if not (hwdata.found() and libdisplay_info.found() and features['session']) +--- a/meson.build ++++ b/meson.build +@@ -98,6 +98,7 @@ features = { + internal_features = { + 'xcb-errors': false, + 'egl': false, ++ 'libliftoff': false, + } + internal_config = configuration_data() + +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -7,3 +7,4 @@ option('backends', type: 'array', choices: ['auto', 'drm', 'libinput', 'x11'], v + option('allocators', type: 'array', choices: ['auto', 'gbm'], value: ['auto'], + description: 'Select built-in allocators') + option('session', type: 'feature', value: 'auto', description: 'Enable session support') ++option('libliftoff', type: 'feature', value: 'auto', description: 'Enable support for libliftoff') +-- +2.45.2 + diff --git a/gui-libs/wlroots/wlroots-0.17.3-r2.ebuild b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild similarity index 92% rename from gui-libs/wlroots/wlroots-0.17.3-r2.ebuild rename to gui-libs/wlroots/wlroots-0.17.3-r3.ebuild index 8dc3bc02f4a29..d9dee7d3ca135 100644 --- a/gui-libs/wlroots/wlroots-0.17.3-r2.ebuild +++ b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild @@ -23,9 +23,12 @@ IUSE="liftoff +libinput +drm +session tinywl vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) + liftoff? ( drm ) xcb-errors? ( || ( x11-backend X ) ) " +PATCHES=( "${FILESDIR}/${PN}-0.17-fix-automagic-libliftoff.patch" ) + RDEPEND=" >=dev-libs/wayland-1.22.0 media-libs/libglvnd @@ -62,6 +65,8 @@ RDEPEND=" x11-base/xwayland ) " + +# TODO: 0.17.4 will add support for libliftoff-0.5 DEPEND=" ${RDEPEND} liftoff? ( @@ -89,6 +94,7 @@ src_configure() { $(meson_feature X xwayland) -Dbackends=${meson_backends} $(meson_feature session) + $(meson_feature liftoff libliftoff) ) meson_src_configure diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild index e2f9010afd444..32f3a4f0b9615 100644 --- a/gui-libs/wlroots/wlroots-9999.ebuild +++ b/gui-libs/wlroots/wlroots-9999.ebuild @@ -23,6 +23,7 @@ IUSE="liftoff +libinput +drm +session tinywl lcms vulkan x11-backend xcb-errors REQUIRED_USE=" drm? ( session ) libinput? ( session ) + liftoff? ( drm ) xcb-errors? ( || ( x11-backend X ) ) " @@ -87,6 +88,7 @@ src_configure() { -Dbackends=${meson_backends} $(meson_feature session) $(meson_feature lcms color-management) + $(meson_feature liftoff libliftoff) ) meson_src_configure From 2a213c5219cba78a9d1c6adf669b29f5f55b73f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 6 Jun 2024 12:47:45 -0600 Subject: [PATCH 3/6] gui-libs/wlroots: drop USE=tinywl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wlroots is now slotted, USE=tinywl causes file collisions between slots split tinywl into its own package to avoid it. Signed-off-by: Leonardo Hernández Hernández Signed-off-by: Arthur Zamarin --- gui-libs/wlroots/wlroots-0.17.3-r3.ebuild | 8 ++------ gui-libs/wlroots/wlroots-9999.ebuild | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild index d9dee7d3ca135..4002b88934c66 100644 --- a/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild +++ b/gui-libs/wlroots/wlroots-0.17.3-r3.ebuild @@ -19,7 +19,7 @@ else fi LICENSE="MIT" -IUSE="liftoff +libinput +drm +session tinywl vulkan x11-backend xcb-errors X" +IUSE="liftoff +libinput +drm +session vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) @@ -89,7 +89,7 @@ src_configure() { local meson_backends=$(IFS=','; echo "${backends[*]}") local emesonargs=( $(meson_feature xcb-errors) - $(meson_use tinywl examples) + -Dexamples=false -Drenderers=$(usex vulkan 'gles2,vulkan' gles2) $(meson_feature X xwayland) -Dbackends=${meson_backends} @@ -103,10 +103,6 @@ src_configure() { src_install() { meson_src_install dodoc docs/* - - if use tinywl; then - dobin "${BUILD_DIR}"/tinywl/tinywl - fi } pkg_postinst() { diff --git a/gui-libs/wlroots/wlroots-9999.ebuild b/gui-libs/wlroots/wlroots-9999.ebuild index 32f3a4f0b9615..05772f2c09af1 100644 --- a/gui-libs/wlroots/wlroots-9999.ebuild +++ b/gui-libs/wlroots/wlroots-9999.ebuild @@ -19,7 +19,7 @@ else fi LICENSE="MIT" -IUSE="liftoff +libinput +drm +session tinywl lcms vulkan x11-backend xcb-errors X" +IUSE="liftoff +libinput +drm +session lcms vulkan x11-backend xcb-errors X" REQUIRED_USE=" drm? ( session ) libinput? ( session ) @@ -82,7 +82,7 @@ src_configure() { local meson_backends=$(IFS=','; echo "${backends[*]}") local emesonargs=( $(meson_feature xcb-errors) - $(meson_use tinywl examples) + -Dexamples=false -Drenderers=$(usex vulkan 'gles2,vulkan' gles2) $(meson_feature X xwayland) -Dbackends=${meson_backends} @@ -97,10 +97,6 @@ src_configure() { src_install() { meson_src_install dodoc docs/* - - if use tinywl; then - dobin "${BUILD_DIR}"/tinywl/tinywl - fi } pkg_postinst() { From a417f0ab12ef83a62cb70994f810696701112904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 6 Jun 2024 12:43:17 -0600 Subject: [PATCH 4/6] gui-wm/tinywl: new package (split from gui-libs/wlroots[tinywl]), add 0.17.3, 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wlroots is now slotted, USE=tinywl causes file collisions between slots split tinywl into its own package to avoid it. Signed-off-by: Leonardo Hernández Hernández Closes: https://github.com/gentoo/gentoo/pull/37060 Signed-off-by: Arthur Zamarin --- gui-wm/tinywl/Manifest | 1 + gui-wm/tinywl/metadata.xml | 15 ++++++++++ gui-wm/tinywl/tinywl-0.17.3.ebuild | 47 ++++++++++++++++++++++++++++++ gui-wm/tinywl/tinywl-9999.ebuild | 47 ++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 gui-wm/tinywl/Manifest create mode 100644 gui-wm/tinywl/metadata.xml create mode 100644 gui-wm/tinywl/tinywl-0.17.3.ebuild create mode 100644 gui-wm/tinywl/tinywl-9999.ebuild diff --git a/gui-wm/tinywl/Manifest b/gui-wm/tinywl/Manifest new file mode 100644 index 0000000000000..a21edb849e46e --- /dev/null +++ b/gui-wm/tinywl/Manifest @@ -0,0 +1 @@ +DIST wlroots-0.17.3.tar.gz 608292 BLAKE2B 7caab3c3a58595d3a745c0b20a5db2193c54931cdd7bc1b9de11c151af82503a03a6a3166a86f42486cc69c6ac18ca2a5596809a5c5e6d7b44c9845f509c1093 SHA512 b88747daba304db6dc302acdebb8764e719d84134118963c019d5f0d0d38552e0ffd2a50bf560b3b84549c5a0f2d11a6187ac8ddcd9faa28c5b42f86c585b555 diff --git a/gui-wm/tinywl/metadata.xml b/gui-wm/tinywl/metadata.xml new file mode 100644 index 0000000000000..c478e8b9eaf9b --- /dev/null +++ b/gui-wm/tinywl/metadata.xml @@ -0,0 +1,15 @@ + + + + + leohdz172@proton.me + Leonardo Hernández Hernández + + + proxy-maint@gentoo.org + Proxy Maintainers + + + wlroots/wlroots + + diff --git a/gui-wm/tinywl/tinywl-0.17.3.ebuild b/gui-wm/tinywl/tinywl-0.17.3.ebuild new file mode 100644 index 0000000000000..891403933f458 --- /dev/null +++ b/gui-wm/tinywl/tinywl-0.17.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="\"minimum viable product\" Wayland compositor based on wlroots" +HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/wlroots-${PV}" +fi + +LICENSE="CC0-1.0" +SLOT="0" +DEPEND=" + dev-libs/wayland + x11-libs/libxkbcommon + =gui-libs/wlroots-$(ver_cut 1-2)*:= +" +RDEPEND=" + ${DEPEND} + !gui-libs/wlroots[tinywl(-)] +" +BDEPEND=" + dev-libs/wayland-protocols + dev-util/wayland-scanner + virtual/pkgconfig +" + +src_prepare() { + sed -i -e "s/-Werror //" tinywl/Makefile || die + default +} + +src_compile() { + emake -C tinywl +} + +src_install() { + dodoc tinywl/README.md + dobin tinywl/tinywl +} diff --git a/gui-wm/tinywl/tinywl-9999.ebuild b/gui-wm/tinywl/tinywl-9999.ebuild new file mode 100644 index 0000000000000..891403933f458 --- /dev/null +++ b/gui-wm/tinywl/tinywl-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="\"minimum viable product\" Wayland compositor based on wlroots" +HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git" + inherit git-r3 +else + SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/wlroots-${PV}" +fi + +LICENSE="CC0-1.0" +SLOT="0" +DEPEND=" + dev-libs/wayland + x11-libs/libxkbcommon + =gui-libs/wlroots-$(ver_cut 1-2)*:= +" +RDEPEND=" + ${DEPEND} + !gui-libs/wlroots[tinywl(-)] +" +BDEPEND=" + dev-libs/wayland-protocols + dev-util/wayland-scanner + virtual/pkgconfig +" + +src_prepare() { + sed -i -e "s/-Werror //" tinywl/Makefile || die + default +} + +src_compile() { + emake -C tinywl +} + +src_install() { + dodoc tinywl/README.md + dobin tinywl/tinywl +} From b6c59b220263639b482b28a12b02ba05496f11be Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Tue, 11 Jun 2024 08:52:51 +0300 Subject: [PATCH 5/6] www-client/firefox: adapt to split tinywl We split tinywl from wlroot, because soon wlroots will become slotted. Since it's not in stable yet, enable to depend on one of them, with priority for split tinywl. No revbump since this is just BDEPEND. Signed-off-by: Arthur Zamarin --- www-client/firefox/firefox-115.11.0.ebuild | 5 ++++- www-client/firefox/firefox-126.0.1.ebuild | 5 ++++- www-client/firefox/firefox-127.0.ebuild | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/www-client/firefox/firefox-115.11.0.ebuild b/www-client/firefox/firefox-115.11.0.ebuild index ceca36d6b063c..9764cb0160da4 100644 --- a/www-client/firefox/firefox-115.11.0.ebuild +++ b/www-client/firefox/firefox-115.11.0.ebuild @@ -133,7 +133,10 @@ BDEPEND="${PYTHON_DEPS} x11-apps/xhost ) !X? ( - >=gui-libs/wlroots-0.15.1-r1[tinywl] + || ( + gui-wm/tinywl + Date: Tue, 11 Jun 2024 08:54:24 +0300 Subject: [PATCH 6/6] mail-client/thunderbird: adapt to split tinywl We split tinywl from wlroot, because soon wlroots will become slotted. Since it's not in stable yet, enable to depend on one of them, with priority for split tinywl. No revbump since this is just BDEPEND. Signed-off-by: Arthur Zamarin --- mail-client/thunderbird/thunderbird-115.11.0.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail-client/thunderbird/thunderbird-115.11.0.ebuild b/mail-client/thunderbird/thunderbird-115.11.0.ebuild index 2619c8d75b476..582b2c7d6c1df 100644 --- a/mail-client/thunderbird/thunderbird-115.11.0.ebuild +++ b/mail-client/thunderbird/thunderbird-115.11.0.ebuild @@ -134,7 +134,10 @@ BDEPEND="${PYTHON_DEPS} x11-apps/xhost ) wayland? ( - >=gui-libs/wlroots-0.15.1-r1[tinywl] + || ( + gui-wm/tinywl +