From 9ba6b56abcd63bdeacfacc7653293ab05b2b0b34 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 1 Sep 2022 13:17:08 -0700 Subject: rdfind: Fix AC_CHECK_LIB for libnettle Signed-off-by: Khem Raj --- ...0001-configure-Fix-check-for-AC_CHECK_LIB.patch | 30 ++++++++++++++++++++++ meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch diff --git a/meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch b/meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch new file mode 100644 index 0000000000..754c388ae9 --- /dev/null +++ b/meta-oe/recipes-support/rdfind/rdfind/0001-configure-Fix-check-for-AC_CHECK_LIB.patch @@ -0,0 +1,30 @@ +From 823a4deb61f6f9b91b0cfc4a7e7b20922c635777 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 1 Sep 2022 13:13:50 -0700 +Subject: [PATCH] configure: Fix check for AC_CHECK_LIB + +Check for nettle_pbkdf2_hmac_sha256 from libnettle instead of main() +which is not in nettle library + +Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/115] +Signed-off-by: Khem Raj +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index be1b2fd..157a7d7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -46,7 +46,7 @@ AC_CHECK_HEADER(nettle/sha.h,,[AC_MSG_ERROR([ + On Debian-ish systems, use "apt-get install nettle-dev" to get a system + wide nettle install. + ])]) +-AC_CHECK_LIB(nettle,main,,[AC_MSG_ERROR([ ++AC_CHECK_LIB(nettle,nettle_pbkdf2_hmac_sha256,,[AC_MSG_ERROR([ + Could not link to libnettle. Please install nettle + first. If you have already done so; please run ldconfig + as root or check whether the path libnettle was installed +-- +2.37.3 + diff --git a/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb b/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb index 64ae62a2d3..f8eb5d38d4 100644 --- a/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb +++ b/meta-oe/recipes-support/rdfind/rdfind_1.4.1.bb @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa22e16ebbe6638b2bd253338fbded9f" DEPENDS = "nettle autoconf-archive" SRC_URI = "https://rdfind.pauldreik.se/${BP}.tar.gz \ + file://0001-configure-Fix-check-for-AC_CHECK_LIB.patch \ " SRC_URI[md5sum] = "180418c863b861d1df221bc486a07ce7" -- cgit v1.2.3-54-g00ecf