cryptsetup: Add PACKAGECONFIG options
PATCH 1/1 cryptsetup: Add PACKAGECONFIG options
Add various PACKAGECONFIG options, keeping the default options enabled.
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +49 -2
@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" -DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"
@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality" +PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc" +PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup" +PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" +PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" +PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" +# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't +# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" +PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random" +PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize" PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" +PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \
@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2" FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
Signature · 1 line
2.21.0
Quoted 1 line · Robert Joslyn
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that keeping the defaults?
Quoted 82 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +49
-2@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326" -DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz" SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality" +PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc" +PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup" +PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" +PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup-reencrypt,--disable-cryptsetup-reencrypt" +PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" +# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't +# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" +PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random" +PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize" PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt" +PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2" FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
Quoted 7 lines · On Thu, 2019-06-06 at 07:24 -0700, akuster808 wrote:
Quoted 2 lines · Robert Joslyn
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that keeping the
defaults?
My intent was to add PACKAGECONFIG options, but to keep the resulting build the same as before. This should match the default options that are set by upstream when you don't specify any --enable or --disable options.
I can send a v2 with a better description if desired.
Thanks,
Robert
Quoted 99 lines
Quoted 99 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM ="file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-1-DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +18
-1@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
+PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable- passwdqc,passwdqc"
+PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable- cryptsetup"
+PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable- veritysetup"
+PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup- reencrypt,--disable-cryptsetup-reencrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+PACKAGECONFIG[integritysetup] = "--enable-integritysetup, --disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-
kernel_crypto"
+# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn'tmeta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2, --disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +2
-0+PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" +PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random"
+PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust- xts-keysize,--disable-luks-adjust-xts-keysize"
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +9
-0+PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2" FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','
${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
It is no longer possible to build cryptsetup-native after this was merged. It now fails with:
ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:.../meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb DEPENDS on or otherwise requires it). Close matches:
fuse-native
unifdef-native
db-native
ERROR: Required build target 'cryptsetup-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['cryptsetup-native', 'udev-native']
This is with systemd in DISTRO_FEATURES.
//Peter
Quoted 133 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Robert Joslyn
Sent: den 7 juni 2019 05:46
To: akuster808 <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 7 lines · On Thu, 2019-06-06 at 07:24 -0700, akuster808 wrote:
Quoted 2 lines · Robert Joslyn
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that keeping the
defaults?My intent was to add PACKAGECONFIG options, but to keep the resulting build the same as before. This should match the default options that are set by upstream when you don't specify any --enable or --disable options.
I can send a v2 with a better description if desired.
Thanks,
RobertQuoted 96 lines
Quoted 96 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM ="file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-1-DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +18
-1@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
+PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable- passwdqc,passwdqc"
+PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable- cryptsetup"
+PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable- veritysetup"
+PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup- reencrypt,--disable-cryptsetup-reencrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+PACKAGECONFIG[integritysetup] = "--enable-integritysetup, --disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-
kernel_crypto"
+# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn'tmeta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2, --disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +2
-0+PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" +PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random"
+PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust- xts-keysize,--disable-luks-adjust-xts-keysize"
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +9
-0+PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2"Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','
${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 15 lines · Peter Kjellerstedt
It is no longer possible to build cryptsetup-native after this was merged.
It now fails with:ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:.../meta- oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb DEPENDS on or otherwise requires it). Close matches:
fuse-native
unifdef-native
db-native
ERROR: Required build target 'cryptsetup-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['cryptsetup-native', 'udev-native']
Quoted 4 lines
This is with systemd in
DISTRO_FEATURES.//Peter
Sorry about that. Is there a reasonable set of options useful for the native build? Any preference for an empty native PACKAGECONFIG or should it be the same as the target (minus udev obviously)?
Thanks,
Robert
Quoted 136 lines
Quoted 136 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Robert Joslyn
Sent: den 7 juni 2019 05:46
To: akuster808 <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 6 lines · On Thu, 2019-06-06 at 07:24 -0700, akuster808 wrote:
Quoted 2 lines · Robert Joslyn
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that keeping the
defaults?My intent was to add PACKAGECONFIG options, but to keep the resulting build the same as before. This should match the default options that are set by upstream when you don't specify any --enable or --disable options.
I can send a v2 with a better description if desired.
Thanks,
RobertQuoted 99 lines
Quoted 99 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM ="file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-1-DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV ').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
SRC_URI[md5sum] = "41d8b985ef69242852b93e95d53e8e28"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +18
-1@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
+PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable- passwdqc,passwdqc"
+PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable- cryptsetup"
+PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable- veritysetup"
+PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup- reencrypt,--disable-cryptsetup-reencrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+PACKAGECONFIG[integritysetup] = "--enable-integritysetup, --disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-
kernel_crypto"
+# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn'tmeta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2, --disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util- linux"
+PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev- random"
+PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust- xts-keysize,--disable-luks-adjust-xts-keysize"
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl" PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +9
-0+PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2"Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','
${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 22 lines
-----Original Message-----
From: Robert Joslyn <[email protected]>
Sent: den 28 juni 2019 05:51
To: Peter Kjellerstedt <[email protected]>; akuster808 <[email protected]>; [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 13 lines · Peter Kjellerstedt
It is no longer possible to build cryptsetup-native after this was merged.
It now fails with:ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:.../meta- oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb DEPENDS on or otherwise requires it). Close matches:
fuse-native
unifdef-native
db-native
ERROR: Required build target 'cryptsetup-native' has no buildable > providers. Missing or unbuildable dependency chain was: ['cryptsetup-native', 'udev-native']
Quoted 7 lines
Quoted 3 lines
This is with systemd in
DISTRO_FEATURES.//Peter
Sorry about that. Is there a reasonable set of options useful for the native build? Any preference for an empty native PACKAGECONFIG or should it be the same as the target (minus udev obviously)?
I have no idea. I don't even know why cryptsetup-native is being built, all I know is that it can't depend on udev-native. Locally, I have fixed it by adding a bbappend with PACKAGECONFIG_remove_class-native = "udev", so now it builds again. For meta-oe I would instead suggest to add the udev feature using PACKAGECONFIG_append_class-target = " udev".
One thing that worries me though is that you stated in the commit message that the set of enabled PACKAGECONFIGs should match the default when no enable/disable options are specified. However, this does not seem to hold true for udev, as there was no dependency on udev before your change. So maybe udev should not be enabled by default for target either?
Quoted 2 lines
Thanks,
Robert
//Peter
Quoted 153 lines
Quoted 2 lines
Quoted 2 lines
-----Original Message-----
From: [email protected]<openembedded-
Quoted 7 lines
Quoted 7 lines
[email protected]> On Behalf Of Robert Joslyn
Sent: den 7 juni 2019 05:46
To: akuster808 <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 5 lines
Quoted 5 lines · On Thu, 2019-06-06 at 07:24 -0700, akuster808 wrote:
Quoted 4 lines · Robert Joslyn
Quoted 2 lines
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that
keeping
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
the
defaults?My intent was to add PACKAGECONFIG options, but to keep the
resulting
Quoted 1 line
Quoted 1 line
build the same as before. This should match the default options
that
Quoted 1 line
Quoted 1 line
are set by upstream when you don't specify any --enable or --
disable
Quoted 7 lines
Quoted 7 lines
options.
I can send a v2 with a better description if desired.
Thanks,
RobertQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)(quoted diff) +0
-0
crypto/cryptsetup/cryptsetup_2.1.0.bbQuoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb index
cf1d22242..51cecf5d2100644meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM ="file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-1-DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +"Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
SRC_URI="${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('P
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
V
').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
SRC_URI[md5sum] = "
41d8b985ef69242852b93e95d53e8e28"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +18
-1@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
+PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable- passwdqc,passwdqc"
+PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable- cryptsetup"
+PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
Quoted 8 lines
veritysetup"
+PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup- reencrypt,--disable-cryptsetup-reencrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+PACKAGECONFIG[integritysetup] = "--enable-integritysetup, --disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
kernel_crypto"
+# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or theflag
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
isn't
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2, --disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util- linux"
+PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
random"
+PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
xts-keysize,--disable-luks-adjust-xts-keysize"
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
PACKAGECONFIG[gcrypt] = "--with-
crypto_backend=gcrypt,,libgcrypt"
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb RRECOMMENDS_${PN} = "kernel-module-aes-
Quoted 7 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +3
-0+PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-0\ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2"Quoted 1 line
Quoted 1 line
Quoted 1 line
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb RRECOMMENDS_${PN} = "kernel-module-aes- · line 84
Quoted 1 line
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0FILES_${PN} +="${@bb.utils.contains('DISTRO_FEATURES','systemd',
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
'
${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 30 lines · Peter Kjellerstedt
Quoted 22 lines
-----Original Message-----
From: Robert Joslyn <[email protected]>
Sent: den 28 juni 2019 05:51
To: Peter Kjellerstedt <[email protected]>; akuster808 <[email protected]>; [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 13 lines · Peter Kjellerstedt
It is no longer possible to build cryptsetup-native after this was merged.
It now fails with:ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:.../meta- oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb DEPENDS on or otherwise requires it). Close matches:
fuse-native
unifdef-native
db-native
ERROR: Required build target 'cryptsetup-native' has no buildable > providers. Missing or unbuildable dependency chain was: ['cryptsetup-native', 'udev-native']Quoted 7 lines
Quoted 3 lines
This is with systemd in
DISTRO_FEATURES.//Peter
Sorry about that. Is there a reasonable set of options useful for the native build? Any preference for an empty native PACKAGECONFIG or should it be the same as the target (minus udev obviously)?
Quoted 5 lines
I have no idea. I don't even know why cryptsetup-native is being built, all I know is that it can't depend on udev-native. Locally, I have fixed it by adding a bbappend with PACKAGECONFIG_remove_class-native = "udev", so now it builds again. For meta-oe I would instead suggest to add the udev feature using PACKAGECONFIG_append_class-target = " udev".
FWIW, I'm doing the same. Using cryptsetup-native for building dmverity images and the udev-native dependency is not needed and causes build failures with systemd-native...
-Mikko
Quoted 170 lines
One thing that worries me though is that you stated in the commit message that the set of enabled PACKAGECONFIGs should match the default when no enable/disable options are specified. However, this does not seem to hold true for udev, as there was no dependency on udev before your change. So maybe udev should not be enabled by default for target either?
Quoted 2 lines
Thanks,
Robert//Peter
Quoted 153 lines
Quoted 2 lines
Quoted 2 lines
-----Original Message-----
From: [email protected]<openembedded-
Quoted 7 lines
Quoted 7 lines
[email protected]> On Behalf Of Robert Joslyn
Sent: den 7 juni 2019 05:46
To: akuster808 <[email protected]>; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 5 lines
Quoted 5 lines · On Thu, 2019-06-06 at 07:24 -0700, akuster808 wrote:
Quoted 4 lines · Robert Joslyn
Quoted 2 lines
Add various PACKAGECONFIG options, keeping the default options enabled.
the PACKCONFIG went from openssl to a lot more, how is that
keeping
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
the
defaults?My intent was to add PACKAGECONFIG options, but to keep the
resulting
Quoted 1 line
Quoted 1 line
build the same as before. This should match the default options
that
Quoted 1 line
Quoted 1 line
are set by upstream when you don't specify any --enable or --
disable
Quoted 7 lines
Quoted 7 lines
options.
I can send a v2 with a better description if desired.
Thanks,
RobertQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
--- .../cryptsetup/cryptsetup_2.1.0.bb | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-)(quoted diff) +0
-0
crypto/cryptsetup/cryptsetup_2.1.0.bbQuoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb index
cf1d22242..51cecf5d2100644meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0@@ -9,7 +9,12 @@ SECTION = "console" LICENSE = "GPL-2.0-with-OpenSSL-exception" LIC_FILES_CHKSUM ="file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-1-DEPENDS = "util-linux libdevmapper popt libgcrypt json-c" +DEPENDS = " \ + json-c \ + libdevmapper \ + popt \ + util-linux \ +"Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
SRC_URI="${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('P
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
V
').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
SRC_URI[md5sum] = "
41d8b985ef69242852b93e95d53e8e28"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +18
-1@@ -19,9 +24,45 @@ inherit autotools gettext pkgconfig # Use openssl because libgcrypt drops root privileges # if libgcrypt is linked with libcap support -PACKAGECONFIG ??= "openssl" +PACKAGECONFIG ??= " \ + keyring \ + cryptsetup \ + veritysetup \ + cryptsetup-reencrypt \ + integritysetup \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ + udev \ + kernel_crypto \ + internal-argon2 \ + blkid \ + luks-adjust-xts-keysize \ + openssl \ +" + +PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring" +PACKAGECONFIG[fips] = "--enable-fips,--disable-fips" +PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
+PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable- passwdqc,passwdqc"
+PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable- cryptsetup"
+PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb
Quoted 8 lines
veritysetup"
+PACKAGECONFIG[cryptsetup-reencrypt] = "--enable-cryptsetup- reencrypt,--disable-cryptsetup-reencrypt"meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+PACKAGECONFIG[integritysetup] = "--enable-integritysetup, --disable-integritysetup" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" +PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
kernel_crypto"
+# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or theflag
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
isn't
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +4
-1+# recognized. +PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2" +PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2, --disable-internal-argon2" +PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util- linux"
+PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
random"
+PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
xts-keysize,--disable-luks-adjust-xts-keysize"
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
PACKAGECONFIG[gcrypt] = "--with-
crypto_backend=gcrypt,,libgcrypt"
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb RRECOMMENDS_${PN} = "kernel-module-aes-
Quoted 7 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +3
-0+PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss" +PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel" +PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle" RRECOMMENDS_${PN} = "kernel-module-aes-generic \ kernel-module-dm-crypt \@@ -32,6 +73,12 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +6
-0\ " EXTRA_OECONF = "--enable-static" +# Building without largefile is not supported by upstream +EXTRA_OECONF += "--enable-largefile" +# Requires a static popt library +EXTRA_OECONF += "--disable-static-cryptsetup" +# There's no recipe for libargon2 yet +EXTRA_OECONF += "--disable-libargon2"Quoted 1 line
Quoted 1 line
Quoted 1 line
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb RRECOMMENDS_${PN} = "kernel-module-aes- · line 84
Quoted 1 line
meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb +0
-0FILES_${PN} +="${@bb.utils.contains('DISTRO_FEATURES','systemd',
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines
Quoted 3 lines
'
${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 41 lines · Peter Kjellerstedt
Quoted 25 lines
-----Original Message-----
From: Robert Joslyn <[email protected]>
Sent: den 28 juni 2019 05:51
To: Peter Kjellerstedt <[email protected]>; akuster808 <[email protected]>; [email protected]
Subject: Re: [oe] [meta-oe][PATCH] cryptsetup: Add PACKAGECONFIG optionsQuoted 16 lines · Peter Kjellerstedt
It is no longer possible to build cryptsetup-native after this was merged.
It now fails with:ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:.../meta- oe/recipes-crypto/cryptsetup/cryptsetup_2.1.0.bb DEPENDS on or otherwise
requires it). Close matches:
fuse-native
unifdef-native
db-native
ERROR: Required build target 'cryptsetup-native' has no buildable > providers.
Missing or unbuildable dependency chain was: ['cryptsetup-native', 'udev-native']Quoted 7 lines
Quoted 3 lines
This is with systemd in
DISTRO_FEATURES.//Peter
Sorry about that. Is there a reasonable set of options useful for the native build? Any preference for an empty native PACKAGECONFIG or should it be the same as the target (minus udev obviously)?
I have no idea. I don't even know why cryptsetup-native is being built, all I know is that it can't depend on udev-native. Locally, I have fixed
it by adding a bbappend with PACKAGECONFIG_remove_class-native = "udev",
so now it builds again. For meta-oe I would instead suggest to add the udev feature using PACKAGECONFIG_append_class-target = " udev".
Quoted 8 lines
One thing that worries me though is that you stated in the commit message
that the set of enabled PACKAGECONFIGs should match the default when no enable/disable options are specified. However, this does not seem to hold
true for udev, as there was no dependency on udev before your change. So
maybe udev should not be enabled by default for target either?
I looked at it again, and the behavior of --enable-udev and --disable-udev
is a little different than I thought. --enable-udev is adding a check for
devmapper udev sync support at runtime (it adds a call todm_udev_get_sync_support()). So it doesn't need udev at build time for
this, just runtime. libdevmapper has udev support enabled by default for target builds, so that would have been pulling it in before.
I'll send a patch adding udev only for the target build and making it an RDEPENDS only.
Thanks,
Robert