Skip to contentSkip to conversation

systemd: add RDEPENDS on util-linux-getopt

PATCH In review [email protected] 2 participants 4 messages Jan 11, 2018 – Jan 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: add RDEPENDS on util-linux-getopt

From: Jackie Huang <[email protected]>

'getopt' is needed by systemd-sysv-install, or it fails with:

| kdump.service is not a native service, redirecting to systemd-sysv-install.
| Executing: /lib/systemd/systemd-sysv-install enable kdump
| /lib/systemd/systemd-sysv-install: line 15: getopt: command not found
---
 meta/recipes-core/systemd/systemd_234.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_234.bb +1 -1
index 4132cdf40f..5a0e4c2247 100644
@@ -521,7 +521,7 @@ FILES_${PN} = " ${base_bindir}/* \
 
 FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
 
-RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) util-linux-agetty"
+RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-getopt"
 RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}"
 RDEPENDS_${PN} += "volatile-binds update-rc.d"
 
Signature · 1 line
2.11.0
#1 lore raw
Quoted 17 lines · On 2018-01-10 10:07 PM, [email protected] wrote:

From: Jackie Huang <[email protected]>

'getopt' is needed by systemd-sysv-install, or it fails with:

| kdump.service is not a native service, redirecting to systemd-sysv-install.
| Executing: /lib/systemd/systemd-sysv-install enable kdump
| /lib/systemd/systemd-sysv-install: line 15: getopt: command not found
---
  meta/recipes-core/systemd/systemd_234.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_234.bb +0 -0
index 4132cdf40f..5a0e4c2247 100644

meta/recipes-core/systemd/systemd_234.bb FILES_${PN} = " ${base_bindir}/* \ · line 524

Quoted 5 lines
meta/recipes-core/systemd/systemd_234.bb +1 -1
@@ -521,7 +521,7 @@ FILES_${PN} = " ${base_bindir}/* \
 
  FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
 
-RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) util-linux-agetty"
+RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-getopt"

It would be nice to make the dependency conditional on systemd being configured to support sysvinit scripts.

../Randy

Quoted 4 lines
meta/recipes-core/systemd/systemd_234.bb +0 -0
  RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}"
  RDEPENDS_${PN} += "volatile-binds update-rc.d"
 
Signature · 2 lines
# Randy MacLeod.  WR Linux
# Wind River an Intel Company
#2 lore raw
Quoted 31 lines

-----Original Message-----
From: MacLeod, Randy
Sent: Friday, January 12, 2018 04:16
To: Huang, Jie (Jackie); [email protected]
Subject: Re: [OE-core] [PATCH] systemd: add RDEPENDS on util-linux-getopt

meta/recipes-

Quoted 13 lines · On 2018-01-10 10:07 PM, [email protected] wrote:

From: Jackie Huang <[email protected]>

'getopt' is needed by systemd-sysv-install, or it fails with:

| kdump.service is not a native service, redirecting to systemd-sysv-install.
| Executing: /lib/systemd/systemd-sysv-install enable kdump
| /lib/systemd/systemd-sysv-install: line 15: getopt: command not found
---
  meta/recipes-core/systemd/systemd_234.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes- renamed from meta/recipes-core/systemd/systemd_234.bb +0 -0

core/systemd/systemd_234.bb

meta/recipes-core/systemd/systemd_234.bb FILES_${PN} = " ${base_bindir}/* \ · line 522

Quoted 6 lines

index 4132cdf40f..5a0e4c2247 100644

meta/recipes-core/systemd/systemd_234.bb +0 -0
@@ -521,7 +521,7 @@ FILES_${PN} = " ${base_bindir}/* \
 
  FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-

1/interfaces/ ${sysconfdir}/rpm/macros.systemd"

Quoted 1 line
Quoted 7 lines
Quoted 1 line

-RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})

util-linux-agetty"

Quoted 1 line

+RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})

util-linux-agetty util-linux-getopt"

It would be nice to make the dependency conditional on systemd being configured to support sysvinit scripts.

The sysvinit script is always supported for now:

commit 9d298d1563b3fd5ad569f806cc296e13279e7cf6

Author: Khem Raj <[email protected]>
Date:   Sun Sep 6 15:25:41 2015 +0000

systemd: Implement OE-Specific systemd-sysv-install

Support for chkconfig (--enable-chkconfig) was removed in favour of calling an abstraction /lib/systemd/systemd-sysv-install. This needs to be implemented for OE.

So I think the unconditional dependency is needed unless we change the support for sysvinit to be optional as well.

Thanks,
Jackie

Quoted 13 lines

../Randy

Quoted 1 line
  RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-

generator', '', 'systemd-serialgetty', d)}"

Quoted 3 lines
  RDEPENDS_${PN} += "volatile-binds update-rc.d"

--
# Randy MacLeod. WR Linux
# Wind River an Intel Company

#3 lore raw
Quoted 51 lines · Jie (Jackie)
Quoted 31 lines

-----Original Message-----
From: MacLeod, Randy
Sent: Friday, January 12, 2018 04:16
To: Huang, Jie (Jackie); [email protected]
Subject: Re: [OE-core] [PATCH] systemd: add RDEPENDS on util-linux-getopt

meta/recipes-

Quoted 13 lines · On 2018-01-10 10:07 PM, [email protected] wrote:

From: Jackie Huang <[email protected]>

'getopt' is needed by systemd-sysv-install, or it fails with:

| kdump.service is not a native service, redirecting to systemd-sysv-install.
| Executing: /lib/systemd/systemd-sysv-install enable kdump
| /lib/systemd/systemd-sysv-install: line 15: getopt: command not found
---
   meta/recipes-core/systemd/systemd_234.bb | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes- renamed from meta/recipes-core/systemd/systemd_234.bb +0 -0

core/systemd/systemd_234.bb

meta/recipes-core/systemd/systemd_234.bb FILES_${PN} = " ${base_bindir}/* \ · line 522

Quoted 6 lines

index 4132cdf40f..5a0e4c2247 100644

meta/recipes-core/systemd/systemd_234.bb +0 -0
@@ -521,7 +521,7 @@ FILES_${PN} = " ${base_bindir}/* \
 
   FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-

1/interfaces/ ${sysconfdir}/rpm/macros.systemd"

Quoted 1 line
Quoted 7 lines
Quoted 1 line

-RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})

util-linux-agetty"

Quoted 1 line

+RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})

util-linux-agetty util-linux-getopt"

It would be nice to make the dependency conditional on systemd being configured to support sysvinit scripts.

The sysvinit script is always supported for now:

commit 9d298d1563b3fd5ad569f806cc296e13279e7cf6

Author: Khem Raj <[email protected]>
Date:   Sun Sep 6 15:25:41 2015 +0000

systemd: Implement OE-Specific systemd-sysv-install

Support for chkconfig (--enable-chkconfig) was removed in favour of calling an abstraction /lib/systemd/systemd-sysv-install. This needs to be implemented for OE.

Quoted 5 lines

So I think the unconditional dependency is needed unless we change the support for sysvinit to be optional as well.

I would like to make it configurable but you're right, it works properly now and the commit log would tip anyone off should we get around to making systemd's sysvinit support optional.

Thanks,

../Randy

Quoted 16 lines

Thanks,
Jackie

Quoted 13 lines

../Randy

Quoted 1 line
   RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-

generator', '', 'systemd-serialgetty', d)}"

Quoted 3 lines
   RDEPENDS_${PN} += "volatile-binds update-rc.d"

--
# Randy MacLeod. WR Linux
# Wind River an Intel Company

Signature · 2 lines
# Randy MacLeod.  WR Linux
# Wind River an Intel Company