hidrd: add changelog

This commit is contained in:
lemmi 2022-08-30 14:23:22 +02:00
parent 46cc1c3483
commit 92a5117f16
2 changed files with 50 additions and 1 deletions

View file

@ -0,0 +1,46 @@
From f876ac085a86cc932c7d3093a7d007c78bff4751 Mon Sep 17 00:00:00 2001
From: Jason Gerecke <killertofu@gmail.com>
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

View file

@ -1,13 +1,15 @@
# Template file for 'hidrd' # Template file for 'hidrd'
pkgname=hidrd pkgname=hidrd
version=0.2.0 version=0.2.0
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="automake libtool pkg-config" hostmakedepends="automake libtool pkg-config"
checkdepends="which"
short_desc="HID report descriptor I/O library and conversion tool" short_desc="HID report descriptor I/O library and conversion tool"
maintainer="lemmi <lemmi@nerd2nerd.org>" maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://github.com/DIGImend/hidrd" 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" distfiles="https://github.com/DIGImend/hidrd/archive/${version}.tar.gz"
checksum=0147993dedb3066873d22fab1dc3aafec78d8c5783d168cccc43126f0fc3b307 checksum=0147993dedb3066873d22fab1dc3aafec78d8c5783d168cccc43126f0fc3b307
@ -17,6 +19,7 @@ case $XBPS_TARGET_MACHINE in
*-musl) *-musl)
configure_args+=' LIBS=-lobstack' configure_args+=' LIBS=-lobstack'
makedepends+=" musl-obstack-devel" makedepends+=" musl-obstack-devel"
make_check="no" # needs error.h
;; ;;
esac esac