package/cryptsetup: fix build failure due to wrong libtool/configure paths
PATCH 1/1 package/cryptsetup: fix build failure due to wrong libtool/configure paths
At the moment cryptsetup is built using libtool/configure as they are, but they don't take into account completely path we're building for. This leads to build failure while libtool checks for:
i686-buildroot-linux-gnu-gcc: ERROR: unsafe header/library path used
in cross-compilation: '-L/usr/lib'
So let's fix it by enabling CRYPTSETUP_AUTORECONF.
--- package/cryptsetup/cryptsetup.mk | 1 + 1 file changed, 1 insertion(+)
package/cryptsetup/cryptsetup.mk +1 -0
@@ -21,6 +21,7 @@ CRYPTSETUP_LICENSE_FILES = \ docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception CRYPTSETUP_CPE_ID_VALID = YES CRYPTSETUP_INSTALL_STAGING = YES +CRYPTSETUP_AUTORECONF = YES CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)" CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2 --disable-asciidoc
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
Quoted 20 lines · Giulio Benetti
At the moment cryptsetup is built using libtool/configure as they are, but they don't take into account completely path we're building for. This leads to build failure while libtool checks for:
i686-buildroot-linux-gnu-gcc: ERROR: unsafe header/library path used
in cross-compilation: '-L/usr/lib'So let's fix it by enabling
CRYPTSETUP_AUTORECONF.Signed-off-by Giulio Benetti <[email protected]>--- package/cryptsetup/cryptsetup.mk | 1 + 1 file changed, 1 insertion(+)package/cryptsetup/cryptsetup.mk +0
-0
package/cryptsetup/cryptsetup.mk CRYPTSETUP_LICENSE_FILES = \ · line 27
Quoted 7 lines
package/cryptsetup/cryptsetup.mk +1
-0@@ -21,6 +21,7 @@ CRYPTSETUP_LICENSE_FILES = \ docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception CRYPTSETUP_CPE_ID_VALID = YES CRYPTSETUP_INSTALL_STAGING = YES +CRYPTSETUP_AUTORECONF = YES CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)" CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2 --disable-asciidoc
Have you looked at this approach [1]?
[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
Regards,
Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Yegor,
Quoted 31 lines
Il giorno 28 set 2026, alle ore 23:04, Yegor Yefremov <[email protected]> ha scritto:
Hi Giulio,
Quoted 27 lines
On Mon, Sep 28, 2026 at 5:07 PM Giulio Benetti
<[email protected]> wrote:At the moment cryptsetup is built using libtool/configure as they are, but they don't take into account completely path we're building for. This leads to build failure while libtool checks for:
i686-buildroot-linux-gnu-gcc: ERROR: unsafe header/library path used
in cross-compilation: '-L/usr/lib'So let's fix it by enabling
CRYPTSETUP_AUTORECONF.Signed-off-by Giulio Benetti <[email protected]>---
package/cryptsetup/cryptsetup.mk| 1 +1 file changed, 1 insertion(+)package/cryptsetup/cryptsetup.mk +0
-0@@ -21,6 +21,7 @@ CRYPTSETUP_LICENSE_FILES = \ docs/licenses/COPYING.LGPL-2.1-or-later-WITH-cryptsetup-OpenSSL-exception
CRYPTSETUP_CPE_ID_VALID= YESCRYPTSETUP_INSTALL_STAGING= YES
+CRYPTSETUP_AUTORECONF = YES
Quoted 4 lines
Quoted 2 lines
CRYPTSETUP_CONF_ENV+= LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"CRYPTSETUP_CONF_OPTS+= --enable-blkid --enable-libargon2 --disable-asciidocHave you looked at this approach [1]?
I’ve totally missed this solution and it’s definitely the way to go so let’s drop this patch in favor of yours that fix the problems for any new packages’ tarballs.
Thank you and
Best regards
Giulio
Quoted 5 lines
[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
Regards,
Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot