Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration errors for libblockdev #832

Open
pasweistorz opened this issue Jun 12, 2024 · 2 comments
Open

Configuration errors for libblockdev #832

pasweistorz opened this issue Jun 12, 2024 · 2 comments

Comments

@pasweistorz
Copy link
Contributor

We use the following PACKAGECONFIG for libblockdev.

PACKAGECONFIG:pn-libblockdev = "crypto fs mdraid parted"

This leads to the following errors during configuration:

| Checking header keyutils.h existence and usability.../tmp/d9dhL.c:1:10: fatal error: keyutils.h: No such file or directory
|     1 | #include <keyutils.h>
|       |          ^~~~~~~~~~~~
| compilation terminated.
| no
| checking for fdisk >= 2.31.0... yes
| checking for uuid... yes
| checking for uuid... yes
| checking for mount >= 2.23.0... yes
| checking for ext2fs e2p... no
| checking for blkid >= 2.23.0... yes
| checking for bytesize >= 0.1... yes
| checking for libnvme >= 1.3... yes
| 
| *** Libblockdev encountered the following issues during configuration:
| 
| keyutils.h not available
| No package 'ext2fs' found
| No package 'e2p' found
| 
| *** Libblockdev will not successfully build without these missing dependencies

It seems that e2fsprogs and keyutils are missing as build dependencies. Adding e2fsprogs to the build dependencies in case PACKAGECONFIG contains fs and adding keyutils to the build dependencies in case PACKAGECONFIG contains crypto fixes the issue:

PACKAGECONFIG[fs] = "--with-fs, --without-fs, e2fsprogs util-linux"
PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup keyutils nss volume-key"
@kraj
Copy link
Contributor

kraj commented Jun 12, 2024

@pasweistorz thanks for the report. It seems that you have also identified the fix by adding missing deps. It would be great if you can turn that into a patch and eventual pull request

@pasweistorz
Copy link
Contributor Author

@kraj Thanks for your quick response. I just sent a pull request to the mailing list. Please have a look at it.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jun 13, 2024
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jun 13, 2024
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jun 14, 2024
…s to fs PACKAGECONFIG.

Related:

openembedded/meta-openembedded#832

Signed-off-by: Weisser, Pascal <pascal.weisser.extkarlstorz.com>
Signed-off-by: Khem Raj <raj.khemgmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jun 14, 2024
… to crypto PACKAGECONFIG.

Related:

openembedded/meta-openembedded#832

Signed-off-by: Weisser, Pascal <pascal.weisser.extkarlstorz.com>
Signed-off-by: Khem Raj <raj.khemgmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jun 17, 2024
…s to fs PACKAGECONFIG.

Related:

openembedded/meta-openembedded#832

Signed-off-by: Weisser, Pascal <pascal.weisser.extkarlstorz.com>
Signed-off-by: Khem Raj <raj.khemgmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this issue Jun 17, 2024
… to crypto PACKAGECONFIG.

Related:

openembedded/meta-openembedded#832

Signed-off-by: Weisser, Pascal <pascal.weisser.extkarlstorz.com>
Signed-off-by: Khem Raj <raj.khemgmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants