mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/cryptsetup: fix build with argp-standalone
Fix the following build failure raised since bump of argp-standalone to version 1.4.1 in commit0fe85041bcande7ff8d9787: /home/autobuild/autobuild/instance-10/output-1/host/lib/gcc/i686-buildroot-linux-musl/10.3.0/../../../../i686-buildroot-linux-musl/bin/ld: tokens/ssh/cryptsetup_ssh-cryptsetup-ssh.o: in function `parse_opt': cryptsetup-ssh.c:(.text+0x14c): undefined reference to `argp_state_help' /home/autobuild/autobuild/instance-10/output-1/host/lib/gcc/i686-buildroot-linux-musl/10.3.0/../../../../i686-buildroot-linux-musl/bin/ld: tokens/ssh/cryptsetup_ssh-cryptsetup-ssh.o: in function `main': cryptsetup-ssh.c:(.text+0x7db): undefined reference to `argp_parse' Fixes: - http://autobuild.buildroot.org/results/cb3fdae4e0da603f304501f65127800346cb3915 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
25f56c5d60
commit
8bbd3e31f1
@@ -0,0 +1,40 @@
|
|||||||
|
From 21515ad7a3b000ee6038f82bbb428ab527002bbd Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
Date: Sun, 24 Apr 2022 19:47:53 +0200
|
||||||
|
Subject: [PATCH] configure.ac: replace argp_usage check
|
||||||
|
|
||||||
|
Replace check for argp_usage by argp_parse as argp_usage is not used by
|
||||||
|
cryptsetup. Moreover, this will fix the following build failure raised
|
||||||
|
with argp-standalone in version 1.4.0 and
|
||||||
|
https://github.com/ericonr/argp-standalone/commit/e7ff8d9787d2641e55f6ac4afb777da60ef98043:
|
||||||
|
|
||||||
|
/home/autobuild/autobuild/instance-10/output-1/host/lib/gcc/i686-buildroot-linux-musl/10.3.0/../../../../i686-buildroot-linux-musl/bin/ld: tokens/ssh/cryptsetup_ssh-cryptsetup-ssh.o: in function `parse_opt':
|
||||||
|
cryptsetup-ssh.c:(.text+0x14c): undefined reference to `argp_state_help'
|
||||||
|
/home/autobuild/autobuild/instance-10/output-1/host/lib/gcc/i686-buildroot-linux-musl/10.3.0/../../../../i686-buildroot-linux-musl/bin/ld: tokens/ssh/cryptsetup_ssh-cryptsetup-ssh.o: in function `main':
|
||||||
|
cryptsetup-ssh.c:(.text+0x7db): undefined reference to `argp_parse'
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
- http://autobuild.buildroot.org/results/cb3fdae4e0da603f304501f65127800346cb3915
|
||||||
|
|
||||||
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
[Upstream status: https://gitlab.com/cryptsetup/cryptsetup/-/issues/737]
|
||||||
|
---
|
||||||
|
configure.ac | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index d31fb0a7..e47179f2 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -413,7 +413,7 @@ if test "x$enable_ssh_token" = "xyes"; then
|
||||||
|
AC_CHECK_DECLS([ssh_session_is_known_server], [], [], [#include <libssh/libssh.h>])
|
||||||
|
AC_CHECK_HEADER([argp.h], [], AC_MSG_ERROR([You need argp library.]))
|
||||||
|
saved_LIBS=$LIBS
|
||||||
|
- AC_SEARCH_LIBS([argp_usage],[argp])
|
||||||
|
+ AC_SEARCH_LIBS([argp_parse],[argp])
|
||||||
|
AC_SUBST(ARGP_LIBS, $LIBS)
|
||||||
|
LIBS=$saved_LIBS
|
||||||
|
fi
|
||||||
|
--
|
||||||
|
2.35.1
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project
|
|||||||
CRYPTSETUP_INSTALL_STAGING = YES
|
CRYPTSETUP_INSTALL_STAGING = YES
|
||||||
|
|
||||||
# 0001-Add-check-program-for-symver-attribute.patch
|
# 0001-Add-check-program-for-symver-attribute.patch
|
||||||
|
# 0002-configure.ac-replace-argp_usage-check.patch
|
||||||
CRYPTSETUP_AUTORECONF = YES
|
CRYPTSETUP_AUTORECONF = YES
|
||||||
|
|
||||||
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
|
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
|
||||||
|
|||||||
Reference in New Issue
Block a user