Skip to contentSkip to conversation

open-iscsi-user: Fix do_package error after usrmerge was enabled.

PATCH In review [email protected] 2 participants 2 messages Sep 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open-iscsi-user: Fix do_package error after usrmerge was enabled.

From: Lei Maohui <[email protected]>

ERROR: open-iscsi-user-2.1.7-r1 do_package: QA Issue: open-iscsi-user: Files/directories were installed but not shipped in any package:
/lib
/sbin/iscsiuio
/sbin/brcm_iscsiuio
/lib/systemd
/lib/systemd/system-generators
/lib/systemd/system
/lib/systemd/system-generators/ibft-rule-generator
/lib/systemd/system/iscsi-init.service
/lib/systemd/system/iscsi.service
/lib/systemd/system/iscsid.service
/lib/systemd/system/iscsid.socket
/lib/systemd/system/iscsiuio.socket
/lib/systemd/system/iscsiuio.service
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
open-iscsi-user: 13 installed and not shipped files. [installed-vs-shipped]

---
 .../open-iscsi/open-iscsi-user_2.1.7.bb                | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb +2 -8
index 8cedff4..1f84508 100644
@@ -44,12 +44,6 @@ FILES:${PN} += " \
     ${systemd_unitdir}/system-generators/ibft-rule-generator \
 "
 
-do_install:append() {
-    rm -rf ${D}${systemd_unitdir}/
-
-    install -d ${D}${systemd_unitdir}/system
-    install -d ${D}${systemd_unitdir}/system-generators
-    install -m 0644 ${S}/etc/systemd/*.service ${D}${systemd_unitdir}/system/
-    install -m 0644 ${S}/etc/systemd/*.socket ${D}${systemd_unitdir}/system/
-    install -m 0644 ${S}/etc/systemd/ibft-rule-generator ${D}${systemd_unitdir}/system-generators/
+do_install() {
+    oe_runmake install DESTDIR=${D} prefix=${exec_prefix} LIBDIR=${libdir} sbindir=${sbindir} SBINDIR=${sbindir} systemddir=${systemd_unitdir}
 }
Signature · 1 line
2.34.1
#1 lore raw

merged!

Bruce

Quoted 56 lines · leimaohui

From: Lei Maohui <[email protected]>

ERROR: open-iscsi-user-2.1.7-r1 do_package: QA Issue: open-iscsi-user: Files/directories were installed but not shipped in any package:
/lib
/sbin/iscsiuio
/sbin/brcm_iscsiuio
/lib/systemd
/lib/systemd/system-generators
/lib/systemd/system
/lib/systemd/system-generators/ibft-rule-generator
/lib/systemd/system/iscsi-init.service
/lib/systemd/system/iscsi.service
/lib/systemd/system/iscsid.service
/lib/systemd/system/iscsid.socket
/lib/systemd/system/iscsiuio.socket
/lib/systemd/system/iscsiuio.service
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
open-iscsi-user: 13 installed and not shipped files. [installed-vs-shipped]

---
 .../open-iscsi/open-iscsi-user_2.1.7.bb                | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.7.bb +2 -9
index 8cedff4..1f84508 100644
@@ -44,12 +44,6 @@ FILES:${PN} += " \
     ${systemd_unitdir}/system-generators/ibft-rule-generator \
 "
 
-do_install:append() {
-    rm -rf ${D}${systemd_unitdir}/
-
-    install -d ${D}${systemd_unitdir}/system
-    install -d ${D}${systemd_unitdir}/system-generators
-    install -m 0644 ${S}/etc/systemd/*.service ${D}${systemd_unitdir}/system/
-    install -m 0644 ${S}/etc/systemd/*.socket ${D}${systemd_unitdir}/system/
-    install -m 0644 ${S}/etc/systemd/ibft-rule-generator ${D}${systemd_unitdir}/system-generators/
+do_install() {
+    oe_runmake install DESTDIR=${D} prefix=${exec_prefix} LIBDIR=${libdir} sbindir=${sbindir} SBINDIR=${sbindir} systemddir=${systemd_unitdir}
 }
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8286): https://lists.yoctoproject.org/g/meta-virtualization/message/8286
Mute This Topic: https://lists.yoctoproject.org/mt/101230101/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II