diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2023-05-04 22:24:28 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-05-04 15:34:11 -0700 |
commit | e4fd963741d666b2f710a99bf8f78a9675abb97b (patch) | |
tree | 02e15e18684a0a2d4b3a6790f73492f4e157edb2 | |
parent | e573b6760439ff08969d2616f2a8734ef1f70461 (diff) | |
download | meta-openembedded-e4fd963741d666b2f710a99bf8f78a9675abb97b.tar.gz |
zfs: fix installation paths for multilib
* pass --with-systemd* variables to install in more typical directories
* adjust FILES:${PN} to package them and more explicitly list some of
the directories like sudoers.d
* also remove unnecessary trailing /* and fix indentation of closing quote
* fixes:
ERROR: QA Issue: zfs: Files/directories were installed but not shipped in any package:
/lib
/lib/modules
/lib/modules/6.1.20-v8
/lib/modules/6.1.20-v8/extra
/lib/modules/6.1.20-v8/extra/zstd
/lib/modules/6.1.20-v8/extra/zfs
/lib/modules/6.1.20-v8/extra/unicode
/lib/modules/6.1.20-v8/extra/lua
/lib/modules/6.1.20-v8/extra/spl
/lib/modules/6.1.20-v8/extra/zcommon
/lib/modules/6.1.20-v8/extra/avl
/lib/modules/6.1.20-v8/extra/nvpair
/lib/modules/6.1.20-v8/extra/icp
/lib/modules/6.1.20-v8/extra/zstd/zzstd.ko.xz
/lib/modules/6.1.20-v8/extra/zfs/zfs.ko.xz
/lib/modules/6.1.20-v8/extra/unicode/zunicode.ko.xz
/lib/modules/6.1.20-v8/extra/lua/zlua.ko.xz
/lib/modules/6.1.20-v8/extra/spl/spl.ko.xz
/lib/modules/6.1.20-v8/extra/zcommon/zcommon.ko.xz
/lib/modules/6.1.20-v8/extra/avl/zavl.ko.xz
/lib/modules/6.1.20-v8/extra/nvpair/znvpair.ko.xz
/lib/modules/6.1.20-v8/extra/icp/icp.ko.xz
/usr/lib/modules-load.d
/usr/lib/systemd/system
/usr/lib/systemd/system-preset
/usr/lib/systemd/system-generators/zfs-mount-generator
/usr/lib/systemd/system/zfs-scrub@.service
/usr/lib/systemd/system/zfs-scrub-weekly@.timer
/usr/lib/systemd/system/zfs-import.service
/usr/lib/systemd/system/zfs-import-scan.service
/usr/lib/systemd/system/zfs-share.service
/usr/lib/systemd/system/zfs-mount.service
/usr/lib/systemd/system/zfs-volume-wait.service
/usr/lib/systemd/system/zfs.target
/usr/lib/systemd/system/zfs-load-key.service
/usr/lib/systemd/system/zfs-import.target
/usr/lib/systemd/system/zfs-import-cache.service
/usr/lib/systemd/system/zfs-zed.service
/usr/lib/systemd/system/zfs-scrub-monthly@.timer
/usr/lib/systemd/system/zfs-volumes.target
/usr/lib/systemd/system-preset/50-zfs.preset
/usr/lib/modules-load.d/zfs.conf
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
zfs: 42 installed and not shipped files. [installed-vs-shipped]
when libdir is /usr/lib64 with multilib.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb index 77daab7dd..573561db2 100644 --- a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb +++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.9.bb | |||
@@ -27,12 +27,16 @@ EXTRA_OECONF:append = " \ | |||
27 | --with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \ | 27 | --with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \ |
28 | --with-mounthelperdir=${base_sbin} \ | 28 | --with-mounthelperdir=${base_sbin} \ |
29 | --with-udevdir=${base_libdir}/udev \ | 29 | --with-udevdir=${base_libdir}/udev \ |
30 | --with-systemdunitdir=${systemd_system_unitdir} \ | ||
31 | --with-systemdgeneratordir=${nonarch_base_libdir}/systemd/system-generators \ | ||
32 | --with-systemdpresetdir=${nonarch_base_libdir}/systemd/system-preset \ | ||
33 | --with-systemdmodulesloaddir=${sysconfdir}/module-load.d \ | ||
30 | --without-dracutdir \ | 34 | --without-dracutdir \ |
31 | " | 35 | " |
32 | 36 | ||
33 | EXTRA_OEMAKE:append = " \ | 37 | EXTRA_OEMAKE:append = " \ |
34 | INSTALL_MOD_PATH=${D}${root_prefix} \ | 38 | INSTALL_MOD_PATH=${D}${root_prefix} \ |
35 | " | 39 | " |
36 | 40 | ||
37 | do_install:append() { | 41 | do_install:append() { |
38 | # /usr/share/zfs contains the zfs-tests folder which we do not need: | 42 | # /usr/share/zfs contains the zfs-tests folder which we do not need: |
@@ -42,19 +46,25 @@ do_install:append() { | |||
42 | } | 46 | } |
43 | 47 | ||
44 | FILES:${PN} += "\ | 48 | FILES:${PN} += "\ |
45 | ${base_sbindir}/* \ | 49 | ${nonarch_base_libdir}/modules \ |
46 | ${base_libdir}/* \ | 50 | ${systemd_system_unitdir} \ |
47 | ${sysconfdir}/* \ | 51 | ${nonarch_base_libdir}/systemd/system-generators \ |
48 | ${sbindir}/* \ | 52 | ${nonarch_base_libdir}/systemd/system-preset \ |
49 | ${bindir}/* \ | 53 | ${sysconfdir}/modules-load.d/${BPN}.conf \ |
50 | ${libexecdir}/${BPN}/* \ | 54 | ${sysconfdir}/default/${BPN} \ |
51 | ${libdir}/* \ | 55 | ${sysconfdir}/sudoers.d/${BPN} \ |
52 | " | 56 | ${sysconfdir}/${BPN} \ |
57 | ${base_libdir}/udev \ | ||
58 | ${sbindir} \ | ||
59 | ${bindir} \ | ||
60 | ${libexecdir}/${BPN} \ | ||
61 | ${libdir} \ | ||
62 | " | ||
53 | 63 | ||
54 | FILES:${PN}-dev += "\ | 64 | FILES:${PN}-dev += "\ |
55 | ${prefix}/src/zfs-${PV}/* \ | 65 | ${prefix}/src/zfs-${PV} \ |
56 | ${prefix}/src/spl-${PV}/* \ | 66 | ${prefix}/src/spl-${PV} \ |
57 | " | 67 | " |
58 | # Not yet ported to rv32 | 68 | # Not yet ported to rv32 |
59 | COMPATIBLE_HOST:riscv32 = "null" | 69 | COMPATIBLE_HOST:riscv32 = "null" |
60 | # conflicting definition of ABS macro from asm/asm.h from kernel | 70 | # conflicting definition of ABS macro from asm/asm.h from kernel |