From f9f6fa91738181ebe9aca71b75d157d8b5df5335 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 18 Nov 2024 03:03:03 +0000 Subject: gentoo auto-resync : 18:11:2024 - 03:03:03 --- dev-util/usb-robot/Manifest | 6 ++++-- dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch | 14 ++++++++++++++ dev-util/usb-robot/files/usb-robot-0.2.0-configure.patch | 15 +++++++++++++++ dev-util/usb-robot/metadata.xml | 4 +++- dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild | 11 ++++++++++- 5 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch create mode 100644 dev-util/usb-robot/files/usb-robot-0.2.0-configure.patch (limited to 'dev-util/usb-robot') diff --git a/dev-util/usb-robot/Manifest b/dev-util/usb-robot/Manifest index 04e488faf804..c58fda7d1738 100644 --- a/dev-util/usb-robot/Manifest +++ b/dev-util/usb-robot/Manifest @@ -1,3 +1,5 @@ +AUX usb-robot-0.2.0-clang-warn.patch 571 BLAKE2B c645bf464df3f06d1c067bd066f835e3b56681747f77d46755b73ec253f8f40d0d6d6c6dc42cd1be3b955cee34393d60b2694eb7238bcdbd460f144fd056a010 SHA512 8334a12ccd22e1317dcbc0b0bf7881fa0126137ed1047ecdfc4c2558229388f86929ec1e355fb8c5cc0c0b9e0ff8a32b637ea8138df5c206e9aa7af4daeb3a37 +AUX usb-robot-0.2.0-configure.patch 467 BLAKE2B 9b4cbdb1411810441498c8d69f27d4fcb2a5dc9b424cb9cea677eda184622b8f8a285f7abbfe14dd3b1ed0a43dbde6ede43525496c17baf20c6fac151af57157 SHA512 c91f9e82bc78221428025e9dce04e60efba3757ffe23b9e32c559561cb84145731d84336b50b7ff8526f959c6008cc201ab24ffe19cba9358165081b96bcba33 DIST usb-robot-0.2.0.tar.gz 43682 BLAKE2B 10deb05b78781dd9d004b357af359de6713c0394dae741b544c501e32675b01719792b4e7ee787f7efe4dfdb255c0660f848a59ec9f35d88a59b3d1b6da5b518 SHA512 45d7332a10ba881ade03e1f927a6f36e13d31661ac85950c2f31534b313db4bb354e75404b98bdbe522ab22a08a18592a8ab3b4c73bd6cd902e97285b505e37b -EBUILD usb-robot-0.2.0-r1.ebuild 452 BLAKE2B 5bc37e027ed96350af0d4508000ad45ca553843d1ef0108eb26e1932bda09130c81fea071921918da968f553315955245a5df2b27ecbf32ca403e20dba4a3790 SHA512 a7f1ba39aa0cf56a382351ef58baa9e1a9c2d8df6e296d11d1b0b18c281656e1fc0fc5bd2ab6766dc67357f546818496ddab9a3c8c1cec174738dc8604dddc49 -MISC metadata.xml 247 BLAKE2B cbfa2434c2070bd9a5dd4a84048b94cdd0a056e7ae2f5652718f95a2198524cb197639970aadd80681dfeec111e9192351a5309627598e0ed4e3c367f4f330cb SHA512 48fe7008636e2985de7454d85aaf8fc1d94326fa8889fb6c482f2a8ce09d8abc2743502bd978021a4b170d8eb2ad2ced39f88f5a687615ca9ac799ed6f7e0514 +EBUILD usb-robot-0.2.0-r1.ebuild 610 BLAKE2B 6031f90503ffc7e7c419fdec3cee182b247f190466b3af5b46c9dc49b2118c3d9fa9d5de88fb6641ed91e10e1beeca44992a3f5efeabcf31d8fa4a3c51201f4f SHA512 26561ea84d87af52feea51a19c186e1c10a6de24bc2f343cfa59959e401d738d4e86182af7e21af5494a4d90c01c500c087a8ea0f736fc719189a3b005ee5434 +MISC metadata.xml 298 BLAKE2B d68ec04249a7dc4a8cb708ef0260664f252d879f8e30e48fe0703b75ddd01755d2d647974ce9c224a9dab9d857727dee1e13d55ca3805f8b3c5d2d6afebe6d9d SHA512 8eccc4dfb9293c98338270547200af5357228b82d999142adfe2e3b496ea7b56fac30e7c1459c148f4aed1f4f50d4bc4991846a919ea8202fc7eed6d8f649498 diff --git a/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch b/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch new file mode 100644 index 000000000000..9a09d6af5266 --- /dev/null +++ b/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch @@ -0,0 +1,14 @@ +diff '--color=auto' -NuarwbB usb-robot-0.2.0.orig/control.c usb-robot-0.2.0/control.c +--- usb-robot-0.2.0.orig/control.c 2001-02-22 21:18:14.000000000 -0800 ++++ usb-robot-0.2.0/control.c 2024-11-17 14:53:27.633932807 -0800 +@@ -457,8 +457,8 @@ + + switch(dir) + { +- case dir_in: assert( data = malloc( size ) );break; +- case dir_out: data = context->read( context, size );break; ++ case dir_in: data = malloc( size ); assert(data) ;break; ++ case dir_out: data = context->read( context, size ); assert(data) ;break; + default: cant_get_here(); + } + diff --git a/dev-util/usb-robot/files/usb-robot-0.2.0-configure.patch b/dev-util/usb-robot/files/usb-robot-0.2.0-configure.patch new file mode 100644 index 000000000000..78bb7c18738e --- /dev/null +++ b/dev-util/usb-robot/files/usb-robot-0.2.0-configure.patch @@ -0,0 +1,15 @@ +--- usb-robot-0.2.0.orig/configure.in 2001-02-22 21:02:39.000000000 -0800 ++++ usb-robot-0.2.0/configure.in 2024-11-17 14:39:08.090396454 -0800 +@@ -19,11 +19,7 @@ + + dnl Check for libraries + +-AC_CHECK_LIB(ncurses,tgetent,, +-AC_CHECK_LIB(termcap,tgetent,, +-AC_CHECK_LIB(curses,tgetent,, +- AC_MSG_WARN([could not find a curses library - readline might not work])))) +- ++AC_CHECK_LIB(ncurses,tgetent) + AC_CHECK_LIB(readline,readline) + AC_CHECK_LIB(history,add_history) + diff --git a/dev-util/usb-robot/metadata.xml b/dev-util/usb-robot/metadata.xml index 8a3bee1e60c3..dbba33fa9213 100644 --- a/dev-util/usb-robot/metadata.xml +++ b/dev-util/usb-robot/metadata.xml @@ -1,7 +1,9 @@ - + + robbat2@gentoo.org + usb-robot diff --git a/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild b/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild index e8674447c9a5..89c639ec9d49 100644 --- a/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild +++ b/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit toolchain-funcs +inherit toolchain-funcs autotools DESCRIPTION="USB Reverse engineering tools" HOMEPAGE="https://usb-robot.sourceforge.net/" @@ -16,6 +16,15 @@ KEYWORDS="amd64 ppc x86" DEPEND="virtual/libusb:0 sys-libs/readline:=" RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/usb-robot-0.2.0-configure.patch" + "${FILESDIR}/usb-robot-0.2.0-clang-warn.patch" +) + +src_prepare() { + default + eautoreconf +} src_compile() { emake CC="$(tc-getCC)" -- cgit v1.2.3