From 92a5117f16d0f4ea71b4454b9c6f971c757a68b8 Mon Sep 17 00:00:00 2001 From: lemmi Date: Tue, 30 Aug 2022 14:23:22 +0200 Subject: [PATCH] hidrd: add changelog --- ...use-of-tempfile-with-mktemp-in-tests.patch | 46 +++++++++++++++++++ srcpkgs/hidrd/template | 5 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/hidrd/patches/0001-Replace-use-of-tempfile-with-mktemp-in-tests.patch diff --git a/srcpkgs/hidrd/patches/0001-Replace-use-of-tempfile-with-mktemp-in-tests.patch b/srcpkgs/hidrd/patches/0001-Replace-use-of-tempfile-with-mktemp-in-tests.patch new file mode 100644 index 00000000000..730a4768be2 --- /dev/null +++ b/srcpkgs/hidrd/patches/0001-Replace-use-of-tempfile-with-mktemp-in-tests.patch @@ -0,0 +1,46 @@ +From f876ac085a86cc932c7d3093a7d007c78bff4751 Mon Sep 17 00:00:00 2001 +From: Jason Gerecke +Date: Tue, 26 Apr 2016 13:28:04 -0700 +Subject: [PATCH] Replace use of 'tempfile' with 'mktemp' in tests + +The 'tempfile' command has been deprecated in Debian for many years +at this point and may not even be available on modern systems. Use +'mktemp' as the recommended replacement. +--- + lib/fmt/hidrd_read_test | 6 +++--- + lib/fmt/hidrd_write_test | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/lib/fmt/hidrd_read_test b/lib/fmt/hidrd_read_test +index 8ae1350..6b30f6b 100755 +--- a/lib/fmt/hidrd_read_test ++++ b/lib/fmt/hidrd_read_test +@@ -39,9 +39,9 @@ function run () + local input="$1"; shift + local output="$1"; shift + local output_basename="`basename \"$output\"`" +- local test_output="`tempfile -s\"_$output_basename.test\"`" +- local txt_output="`tempfile -s\"_$output_basename.txt\"`" +- local test_txt_output="`tempfile -s\"_$output_basename.txt.test\"`" ++ local test_output="`mktemp --suffix=\"_$output_basename.test\"`" ++ local txt_output="`mktemp --suffix=\"_$output_basename.txt\"`" ++ local test_txt_output="`mktemp --suffix=\"_$output_basename.txt.test\"`" + local status + + echo "Checking \"$format\" reading from \"$input\"" \ +diff --git a/lib/fmt/hidrd_write_test b/lib/fmt/hidrd_write_test +index 3cfb0aa..73dddd8 100755 +--- a/lib/fmt/hidrd_write_test ++++ b/lib/fmt/hidrd_write_test +@@ -34,7 +34,7 @@ function run () + local input="$1"; shift + local output="$1"; shift + local output_basename="`basename \"$output\"`" +- local test_output="`tempfile -s\"_$output_basename.test\"`" ++ local test_output="`mktemp --suffix=\"_$output_basename.test\"`" + local status + + echo "Checking \"$format\" writing of \"$input\"" \ +-- +2.37.2 + diff --git a/srcpkgs/hidrd/template b/srcpkgs/hidrd/template index 3154799a7c3..7a71b10a66b 100644 --- a/srcpkgs/hidrd/template +++ b/srcpkgs/hidrd/template @@ -1,13 +1,15 @@ # Template file for 'hidrd' pkgname=hidrd version=0.2.0 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="automake libtool pkg-config" +checkdepends="which" short_desc="HID report descriptor I/O library and conversion tool" maintainer="lemmi " license="GPL-2.0-or-later" homepage="https://github.com/DIGImend/hidrd" +changelog="https://github.com/DIGImend/hidrd/raw/master/NEWS" distfiles="https://github.com/DIGImend/hidrd/archive/${version}.tar.gz" checksum=0147993dedb3066873d22fab1dc3aafec78d8c5783d168cccc43126f0fc3b307 @@ -17,6 +19,7 @@ case $XBPS_TARGET_MACHINE in *-musl) configure_args+=' LIBS=-lobstack' makedepends+=" musl-obstack-devel" + make_check="no" # needs error.h ;; esac