Skip to contentSkip to conversation

package/cryptsetup: disable package if we build for Microblaze

PATCH In review Giulio Benetti 1 participant 2 messages Feb 1, 2022 – Feb 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cryptsetup: disable package if we build for Microblaze

cryptsetup has the same build failure found for libfuse. For libfuse I've patched meson that now correctly checks if symver is available:
https://github.com/libfuse/libfuse/pull/620/commits/3aba09a5c56e017746c5c1652dbc845f4db7374a
But in cryptsetup the check is done in a header file while building, so I can't use the same approach and that would take not few work to move the check to Autotools, so I've opened an issue on cryptsetup's gitlab:
https://gitlab.com/cryptsetup/cryptsetup/-/issues/709
asking if they can manage it the way I've done for libfuse.

So let's disable cryptsetup if we're building on Microblaze for the moment and when the issue will be fixed upstream, I will bump the version and re-enable building for Microblaze.

Fixes:
http://autobuild.buildroot.net/results/86b/86b6b13e6be8375875caebcd91de91fef83f72e8/

---
 package/cryptsetup/Config.in  | 1 +
 package/libblockdev/Config.in | 1 +
 package/luksmeta/Config.in    | 1 +
 package/systemd/Config.in     | 1 +
 package/udisks/Config.in      | 1 +
 5 files changed, 5 insertions(+)
package/cryptsetup/Config.in +1 -0
index f36883ea47..2f3dd8d2b2 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_CRYPTSETUP
 	bool "cryptsetup"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
+	depends on !BR2_microblaze # wrong symver detection
 	depends on BR2_USE_MMU # lvm2, libargon2
 	depends on !BR2_STATIC_LIBS # lvm2, libargon2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
package/libblockdev/Config.in +1 -0
index 4389fd794c..38fe2331cf 100644
@@ -23,6 +23,7 @@ comment "plugins"
 config BR2_PACKAGE_LIBBLOCKDEV_CRYPTO
 	bool "crypto"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
+	depends on !BR2_microblaze # cryptsetup
 	select BR2_PACKAGE_CRYPTSETUP
 
 config BR2_PACKAGE_LIBBLOCKDEV_FS
package/luksmeta/Config.in +1 -0
index ddc9b6f3bf..88a10bc9da 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LUKSMETA
 	bool "luksmeta"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # cryptsetup -> lvm2
+	depends on !BR2_microblaze # cryptsetup
 	depends on BR2_USE_MMU # cryptsetup -> lvm2
 	depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
package/systemd/Config.in +1 -0
index cc0736561e..d1e692f826 100644
@@ -228,6 +228,7 @@ config BR2_PACKAGE_SYSTEMD_HIBERNATE
 config BR2_PACKAGE_SYSTEMD_HOMED
 	bool "enable home daemon"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # cryptsetup -> lvm2
+	depends on !BR2_microblaze # cryptsetup
 	depends on BR2_USE_MMU # cryptsetup -> lvm2
 	depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
package/udisks/Config.in +1 -0
index 82f11ae7de..8a48d85924 100644
@@ -6,6 +6,7 @@ config BR2_PACKAGE_UDISKS
 	depends on BR2_TOOLCHAIN_HAS_THREADS # polkit
 	depends on BR2_USE_WCHAR # dbus-glib -> glib2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libblockdev -> cryptsetup -> json-c
+	depends on !BR2_microblaze # cryptsetup
 	depends on !BR2_STATIC_LIBS # polkit -> duktape
 	select BR2_PACKAGE_DBUS
 	select BR2_PACKAGE_DBUS_GLIB
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi All,

please drop this patch since upstream is very reactive and they’re working for fixing.

I’ll send a patch soon for fixing instead than disabling.

Best regards
Giulio Benetti

Quoted 90 lines

Il giorno 1 feb 2022, alle ore 18:19, Giulio Benetti <[email protected]> ha scritto:

cryptsetup has the same build failure found for libfuse. For libfuse I've patched meson that now correctly checks if symver is available:
https://github.com/libfuse/libfuse/pull/620/commits/3aba09a5c56e017746c5c1652dbc845f4db7374a
But in cryptsetup the check is done in a header file while building, so I can't use the same approach and that would take not few work to move the check to Autotools, so I've opened an issue on cryptsetup's gitlab:
https://gitlab.com/cryptsetup/cryptsetup/-/issues/709
asking if they can manage it the way I've done for libfuse.

So let's disable cryptsetup if we're building on Microblaze for the moment and when the issue will be fixed upstream, I will bump the version and re-enable building for Microblaze.

Fixes:
http://autobuild.buildroot.net/results/86b/86b6b13e6be8375875caebcd91de91fef83f72e8/

---

package/cryptsetup/Config.in  | 1 +
package/libblockdev/Config.in | 1 +
package/luksmeta/Config.in    | 1 +
package/systemd/Config.in     | 1 +
package/udisks/Config.in      | 1 +
5 files changed, 5 insertions(+)
package/cryptsetup/Config.in +0 -0
index f36883ea47..2f3dd8d2b2 100644
@@ -1,6 +1,7 @@

config BR2_PACKAGE_CRYPTSETUP
bool "cryptsetup"
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2

package/cryptsetup/Config.in +1 -0
+    depends on !BR2_microblaze # wrong symver detection
   depends on BR2_USE_MMU # lvm2, libargon2
   depends on !BR2_STATIC_LIBS # lvm2, libargon2
   depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
package/libblockdev/Config.in +0 -0
index 4389fd794c..38fe2331cf 100644
@@ -23,6 +23,7 @@ comment "plugins"

config BR2_PACKAGE_LIBBLOCKDEV_CRYPTO
bool "crypto"
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
+ depends on !BR2_microblaze # cryptsetup
select BR2_PACKAGE_CRYPTSETUP

config BR2_PACKAGE_LIBBLOCKDEV_FS

package/luksmeta/Config.in +0 -0
index ddc9b6f3bf..88a10bc9da 100644
@@ -1,6 +1,7 @@

config BR2_PACKAGE_LUKSMETA
bool "luksmeta"
depends on BR2_TOOLCHAIN_HAS_THREADS # cryptsetup -> lvm2

package/luksmeta/Config.in +1 -0
+    depends on !BR2_microblaze # cryptsetup
   depends on BR2_USE_MMU # cryptsetup -> lvm2
   depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
   depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
package/systemd/Config.in +0 -0
index cc0736561e..d1e692f826 100644
@@ -228,6 +228,7 @@ config BR2_PACKAGE_SYSTEMD_HIBERNATE

config BR2_PACKAGE_SYSTEMD_HOMED
bool "enable home daemon"
depends on BR2_TOOLCHAIN_HAS_THREADS # cryptsetup -> lvm2

package/systemd/Config.in +1 -0
+    depends on !BR2_microblaze # cryptsetup
   depends on BR2_USE_MMU # cryptsetup -> lvm2
   depends on !BR2_STATIC_LIBS # cryptsetup -> lvm2
   depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup -> json-c
package/udisks/Config.in +1 -0
index 82f11ae7de..8a48d85924 100644
@@ -6,6 +6,7 @@ config BR2_PACKAGE_UDISKS
   depends on BR2_TOOLCHAIN_HAS_THREADS # polkit
   depends on BR2_USE_WCHAR # dbus-glib -> glib2
   depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libblockdev -> cryptsetup -> json-c
+    depends on !BR2_microblaze # cryptsetup
   depends on !BR2_STATIC_LIBS # polkit -> duktape
   select BR2_PACKAGE_DBUS
   select BR2_PACKAGE_DBUS_GLIB
Signature · 1 line
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot