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 DC51213835A for ; Sat, 27 Jun 2020 12:15:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDF4FE0907; Sat, 27 Jun 2020 12:15:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 C8FEAE0907 for ; Sat, 27 Jun 2020 12:15:57 +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 23FFF34ED85 for ; Sat, 27 Jun 2020 12:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5F9A29A for ; Sat, 27 Jun 2020 12:15:52 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1593260137.4917a4e4865c7854528acd1d95c7c1996aa57214.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libvncserver/, net-libs/libvncserver/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-includetest.patch net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-tjunittest.patch net-libs/libvncserver/libvncserver-0.9.13.ebuild X-VCS-Directories: net-libs/libvncserver/files/ net-libs/libvncserver/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4917a4e4865c7854528acd1d95c7c1996aa57214 X-VCS-Branch: master Date: Sat, 27 Jun 2020 12:15:52 +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: cba5bb99-65bd-4b86-ae7f-9c6e8b01967a X-Archives-Hash: 7a28d70b47a5b9e04179b53093dc7389 commit: 4917a4e4865c7854528acd1d95c7c1996aa57214 Author: Alexander Tsoy tsoy me> AuthorDate: Thu Jun 25 11:15:54 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Jun 27 12:15:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4917a4e4 net-libs/libvncserver: Fix tests * Fix includetest with CMAKE_MAKEFILE_GENERATOR=ninja * Do not run tjunittest with USE=-jpeg Commiting straight to stable as only tests are affected by these changes. Closes: https://bugs.gentoo.org/729092 Bug: https://bugs.gentoo.org/729188 Signed-off-by: Alexander Tsoy tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/16411 Signed-off-by: Andreas Sturmlechner gentoo.org> .../libvncserver-0.9.13-test-fix-includetest.patch | 54 ++++++++++++++++++++++ .../libvncserver-0.9.13-test-fix-tjunittest.patch | 29 ++++++++++++ net-libs/libvncserver/libvncserver-0.9.13.ebuild | 5 ++ 3 files changed, 88 insertions(+) diff --git a/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-includetest.patch b/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-includetest.patch new file mode 100644 index 00000000000..76770828883 --- /dev/null +++ b/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-includetest.patch @@ -0,0 +1,54 @@ +From 39cff3dd6b5d9ebcf86f01e2c7e0bef62abd9d6f Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy +Date: Thu, 25 Jun 2020 11:35:04 +0300 +Subject: [PATCH 1/2] test: fix includetest to use CMAKE_MAKE_PROGRAM (#431) + +includetest currently fais if, for example, ninja is used as a CMake +generator. Fix it by using CMAKE_MAKE_PROGRAM in the test. +--- + CMakeLists.txt | 2 +- + test/includetest.sh | 7 ++++--- + 2 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0b6228a2..290deb38 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -680,7 +680,7 @@ endif(LIBVNCSERVER_WITH_WEBSOCKETS) + + add_test(NAME cargs COMMAND test_cargstest) + if(UNIX) +- add_test(NAME includetest COMMAND ${TESTS_DIR}/includetest.sh ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) ++ add_test(NAME includetest COMMAND ${TESTS_DIR}/includetest.sh ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR} ${CMAKE_MAKE_PROGRAM}) + endif(UNIX) + if(FOUND_LIBJPEG_TURBO) + add_test(NAME turbojpeg COMMAND test_tjunittest) +diff --git a/test/includetest.sh b/test/includetest.sh +index 23d602e6..6b064208 100755 +--- a/test/includetest.sh ++++ b/test/includetest.sh +@@ -5,10 +5,11 @@ + + # expects install prefix like /usr as an argument + PREFIX=$1 ++CMAKE_MAKE_PROGRAM=$2 + + TMPDIR=$(mktemp -d) + +-make install DESTDIR=$TMPDIR ++DESTDIR="$TMPDIR" $CMAKE_MAKE_PROGRAM install + + echo \ + " +@@ -19,6 +20,6 @@ int main() + { + return 0; + } +-" > $TMPDIR/includetest.c ++" > "$TMPDIR"/includetest.c + +-cc -I $TMPDIR/$PREFIX $TMPDIR/includetest.c ++cc -I "$TMPDIR/$PREFIX" "$TMPDIR"/includetest.c +-- +2.26.2 + diff --git a/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-tjunittest.patch b/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-tjunittest.patch new file mode 100644 index 00000000000..98e3a654b47 --- /dev/null +++ b/net-libs/libvncserver/files/libvncserver-0.9.13-test-fix-tjunittest.patch @@ -0,0 +1,29 @@ +From 8244fab5421fd14d4c75ce488ad18d38b7a6edb4 Mon Sep 17 00:00:00 2001 +From: Christian Beier +Date: Thu, 25 Jun 2020 12:21:50 +0200 +Subject: [PATCH 2/2] CMake: only add turbojpeg test if configured WITH_JPEG + +Closes #430 +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 290deb38..fdca4d81 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -682,9 +682,9 @@ add_test(NAME cargs COMMAND test_cargstest) + if(UNIX) + add_test(NAME includetest COMMAND ${TESTS_DIR}/includetest.sh ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR} ${CMAKE_MAKE_PROGRAM}) + endif(UNIX) +-if(FOUND_LIBJPEG_TURBO) ++if(WITH_JPEG AND FOUND_LIBJPEG_TURBO) + add_test(NAME turbojpeg COMMAND test_tjunittest) +-endif(FOUND_LIBJPEG_TURBO) ++endif(WITH_JPEG AND FOUND_LIBJPEG_TURBO) + if(LIBVNCSERVER_WITH_WEBSOCKETS) + add_test(NAME wstest COMMAND test_wstest) + endif(LIBVNCSERVER_WITH_WEBSOCKETS) +-- +2.26.2 + diff --git a/net-libs/libvncserver/libvncserver-0.9.13.ebuild b/net-libs/libvncserver/libvncserver-0.9.13.ebuild index 2adb6bf71a2..a5f53103e42 100644 --- a/net-libs/libvncserver/libvncserver-0.9.13.ebuild +++ b/net-libs/libvncserver/libvncserver-0.9.13.ebuild @@ -48,6 +48,11 @@ RDEPEND="${DEPEND}" DOCS=( AUTHORS ChangeLog NEWS.md README.md TODO.md ) +PATCHES=( + "${FILESDIR}"/${P}-test-fix-includetest.patch + "${FILESDIR}"/${P}-test-fix-tjunittest.patch +) + src_configure() { local mycmakeargs=( -DWITH_FFMPEG=OFF