From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2AB4A13835A for ; Thu, 3 Jun 2021 07:01:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D43AE0863; Thu, 3 Jun 2021 07:01:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E411E0863 for ; Thu, 3 Jun 2021 07:01:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD09D340EDE for ; Thu, 3 Jun 2021 07:01:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8461C7A6 for ; Thu, 3 Jun 2021 07:01:30 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1622703673.f2d80ef84fa04fba88f9afc74a900c2748dc545d.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gui-apps/waypipe/ X-VCS-Repository: repo/gentoo X-VCS-Files: gui-apps/waypipe/metadata.xml gui-apps/waypipe/waypipe-0.7.2.ebuild gui-apps/waypipe/waypipe-9999.ebuild X-VCS-Directories: gui-apps/waypipe/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: f2d80ef84fa04fba88f9afc74a900c2748dc545d X-VCS-Branch: master Date: Thu, 3 Jun 2021 07:01:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 649fa9e1-a0ff-4eef-ac13-64ed940e588d X-Archives-Hash: f865dad449320ae7fd10c47d58944517 commit: f2d80ef84fa04fba88f9afc74a900c2748dc545d Author: Aisha Tammy aisha cc> AuthorDate: Tue Mar 2 00:08:00 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Jun 3 07:01:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2d80ef8 gui-apps/waypipe: fix emesonargs and move to CPU_FLAGS_ARM Closes: https://bugs.gentoo.org/782745 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Aisha Tammy aisha.cc> Signed-off-by: Joonas Niilola gentoo.org> gui-apps/waypipe/metadata.xml | 12 ++++++------ gui-apps/waypipe/waypipe-0.7.2.ebuild | 27 ++++++++++++++++----------- gui-apps/waypipe/waypipe-9999.ebuild | 28 +++++++++++++++------------- 3 files changed, 37 insertions(+), 30 deletions(-) diff --git a/gui-apps/waypipe/metadata.xml b/gui-apps/waypipe/metadata.xml index 34f0e3f23fb..dc98924933d 100644 --- a/gui-apps/waypipe/metadata.xml +++ b/gui-apps/waypipe/metadata.xml @@ -10,14 +10,14 @@ Proxy Maintainers - waypipe is a proxy for wayland clients to allow streaming. - sessions over tcp. It forwards Wayland messages and - serializes changes to shared memory buffers over a single socket. - This makes application forwarding similar to ssh -X feasible. + Waypipe is a proxy for all Wayland clients to allow streaming + sessions over tcp. It forwards Wayland messages and serializes + changes to shared memory buffers over a single socket, to allow + application forwarding similar to ssh -X. - Use dmabuf for data exchange and hardware decoding - Link with ffmpeg for software decoding + Use DMABUFs for data exchange and hardware decoding + Link with ffmpeg to allow buffer displays using video streams Enable SystemTAP/DTrace tracing diff --git a/gui-apps/waypipe/waypipe-0.7.2.ebuild b/gui-apps/waypipe/waypipe-0.7.2.ebuild index 2fa4101e069..07a5a221492 100644 --- a/gui-apps/waypipe/waypipe-0.7.2.ebuild +++ b/gui-apps/waypipe/waypipe-0.7.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7..9} ) inherit meson python-any-r1 -DESCRIPTION="network transparency with Wayland" +DESCRIPTION="Transparent network proxy for Wayland compositors" HOMEPAGE="https://gitlab.freedesktop.org/mstoeckl/waypipe" if [[ ${PV} == 9999 ]]; then @@ -16,14 +16,20 @@ if [[ ${PV} == 9999 ]]; then else SRC_URI="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/${PN}-v${PV} - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi LICENSE="MIT" SLOT="0" -CPU_FLAGS_X86=( "avx2" "avx512f" "sse3" ) -IUSE="dmabuf ffmpeg lz4 man neon systemtap test vaapi zstd ${CPU_FLAGS_X86[@]/#/cpu_flags_x86_}" +WAYPIPE_FLAG_MAP_X86=( avx2:with_avx2 avx512f:with_avx512f sse3:with_sse3 ) +WAYPIPE_FLAG_MAP_ARM=( neon:with_neon_opts ) +WAYPIPE_FLAG_MAP=( + "${WAYPIPE_FLAG_MAP_X86[@]/#/cpu_flags_x86_}" + "${WAYPIPE_FLAG_MAP_ARM[@]/#/cpu_flags_arm_}" +) + +IUSE="dmabuf ffmpeg lz4 man neon systemtap test vaapi zstd ${WAYPIPE_FLAG_MAP[@]%:*}" REQUIRED_USE="vaapi? ( ffmpeg )" RESTRICT="!test? ( test )" @@ -45,18 +51,17 @@ BDEPEND=" ${PYTHON_DEPS} virtual/pkgconfig man? ( app-text/scdoc ) - test? ( dev-libs/weston[wayland-compositor,screen-sharing] ) + test? ( dev-libs/weston[examples,headless,remoting,screen-sharing,wayland-compositor] ) " PATCHES=( - "${FILESDIR}"/waypipe-0.7.2-werror.patch "${FILESDIR}"/waypipe-0.7.2-no-simd.patch ) src_configure() { - local mymesonargs=( + local emesonargs=( + -Dwerror=false $(meson_use systemtap with_systemtap) - $(meson_use neon with_neon_opts) $(meson_feature dmabuf with_dmabuf) $(meson_feature ffmpeg with_video) $(meson_feature lz4 with_lz4) @@ -65,8 +70,8 @@ src_configure() { $(meson_feature zstd with_zstd) ) local fl - for fl in "${CPU_FLAGS_X86[@]}"; do - mymesonargs+=( $(meson_use cpu_flags_x86_$fl with_$fl ) ) + for fl in "${WAYPIPE_FLAG_MAP[@]}"; do + emesonargs+=( $(meson_use "${fl%:*}" "${fl#*:}") ) done meson_src_configure } diff --git a/gui-apps/waypipe/waypipe-9999.ebuild b/gui-apps/waypipe/waypipe-9999.ebuild index 53231be9f67..a105c572261 100644 --- a/gui-apps/waypipe/waypipe-9999.ebuild +++ b/gui-apps/waypipe/waypipe-9999.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7..9} ) inherit meson python-any-r1 -DESCRIPTION="transparent network proxy for Wayland compositors" +DESCRIPTION="Transparent network proxy for Wayland compositors" HOMEPAGE="https://gitlab.freedesktop.org/mstoeckl/waypipe" if [[ ${PV} == 9999 ]]; then @@ -16,14 +16,20 @@ if [[ ${PV} == 9999 ]]; then else SRC_URI="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/${PN}-v${PV} - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi LICENSE="MIT" SLOT="0" -CPU_FLAGS_X86=( "avx2" "avx512f" "sse3" ) -IUSE="dmabuf ffmpeg lz4 man neon systemtap test vaapi zstd ${CPU_FLAGS_X86[@]/#/cpu_flags_x86_}" +WAYPIPE_FLAG_MAP_X86=( avx2:with_avx2 avx512f:with_avx512f sse3:with_sse3 ) +WAYPIPE_FLAG_MAP_ARM=( neon:with_neon_opts ) +WAYPIPE_FLAG_MAP=( + "${WAYPIPE_FLAG_MAP_X86[@]/#/cpu_flags_x86_}" + "${WAYPIPE_FLAG_MAP_ARM[@]/#/cpu_flags_arm_}" +) + +IUSE="dmabuf ffmpeg lz4 man neon systemtap test vaapi zstd ${WAYPIPE_FLAG_MAP[@]%:*}" REQUIRED_USE="vaapi? ( ffmpeg )" RESTRICT="!test? ( test )" @@ -45,17 +51,13 @@ BDEPEND=" ${PYTHON_DEPS} virtual/pkgconfig man? ( app-text/scdoc ) - test? ( dev-libs/weston[wayland-compositor,screen-sharing] ) + test? ( dev-libs/weston[examples,headless,remoting,screen-sharing,wayland-compositor] ) " -PATCHES=( - "${FILESDIR}"/waypipe-0.7.2-werror.patch -) - src_configure() { - local mymesonargs=( + local emesonargs=( + -Dwerror=false $(meson_use systemtap with_systemtap) - $(meson_use neon with_neon_opts) $(meson_feature dmabuf with_dmabuf) $(meson_feature ffmpeg with_video) $(meson_feature lz4 with_lz4) @@ -64,8 +66,8 @@ src_configure() { $(meson_feature zstd with_zstd) ) local fl - for fl in "${CPU_FLAGS_X86[@]}"; do - mymesonargs+=( $(meson_use cpu_flags_x86_$fl with_$fl ) ) + for fl in "${WAYPIPE_FLAG_MAP[@]}"; do + emesonargs+=( $(meson_use "${fl%:*}" "${fl#*:}") ) done meson_src_configure }