summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2023-04-11 16:34:42 -0700
committerSam James <sam@gentoo.org>2023-04-14 01:27:49 +0100
commitf7aa70157eaa0561b4eb24135380ce0e072576de (patch)
treea8b02ebbc2f15272d7e287d9092b1712e85a0860 /net-libs/libssh2
parentnet-analyzer/ettercap: Fix musl build (diff)
downloadgentoo-f7aa70157eaa0561b4eb24135380ce0e072576de.tar.gz
gentoo-f7aa70157eaa0561b4eb24135380ce0e072576de.tar.bz2
gentoo-f7aa70157eaa0561b4eb24135380ce0e072576de.zip
net-libs/libssh2: Update live patch
Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/30562 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/libssh2')
-rw-r--r--net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch49
1 files changed, 8 insertions, 41 deletions
diff --git a/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
index 3a33bf744167..c8b791f01789 100644
--- a/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
+++ b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
@@ -1,41 +1,8 @@
---- a/tests/mansyntax.sh
-+++ b/tests/mansyntax.sh
-@@ -1,37 +1,2 @@
- #!/bin/sh
--set -e
--
--# Written by Mikhail Gusarov
--#
--# Run syntax checks for all manpages in the documentation tree.
--#
--
--srcdir=${srcdir:-$PWD}
--dstdir=${builddir:-$PWD}
--mandir=${srcdir}/../docs
--
--#
--# Only test if suitable man is available
--#
--if ! man --help | grep -q warnings; then
-- echo "man version not suitable, skipping tests"
-- exit 0
--fi
--
--ec=0
--
--trap "rm -f $dstdir/man3" EXIT
--
--ln -sf "$mandir" "$dstdir/man3"
--
--for manpage in $mandir/libssh2_*.*; do
-- echo "$manpage"
-- warnings=$(LANG=en_US.UTF-8 MANWIDTH=80 man -M "$dstdir" --warnings \
-- -E UTF-8 -l "$manpage" 2>&1 >/dev/null)
-- if [ -n "$warnings" ]; then
-- echo "$warnings"
-- ec=1
-- fi
--done
--
--exit $ec
-+:
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -179,5 +179,4 @@ mark_as_advanced(SH_EXECUTABLE MAN_EXECUTABLE GREP_EXECUTABLE)
+ if(SH_EXECUTABLE AND MAN_EXECUTABLE AND GREP_EXECUTABLE)
+ set(cmd "srcdir=${CMAKE_CURRENT_SOURCE_DIR}")
+ set(cmd "${cmd} ${CMAKE_CURRENT_SOURCE_DIR}/mansyntax.sh")
+- add_test(mansyntax ${SH_EXECUTABLE} -c "${cmd}")
+ endif()