Skip to contentSkip to conversation

systemd: fixes for debug-shell service

PATCH In review [email protected] 1 participant 4 messages Feb 22, 2017 – Apr 18, 2017

lore
Share & tools
lore
#0 lore raw

cover systemd: fixes for debug-shell service

From: Jackie Huang <[email protected]>

--
The following changes since commit e436a6398684d2872cb541f1cfb0f67b3618d15a:

layer.conf: bump version for change in eSDK selftest behaviour (2017-02-19 09:39:03 -0800)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_debug-shell_170222_1
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_debug-shell_170222_1

Jackie Huang (2):
initscripts: split sushell into sub package
systemd: add dependency on initscripts-sushell for selinux

 meta/recipes-core/initscripts/initscripts_1.0.bb | 5 +++--
 meta/recipes-core/systemd/systemd_232.bb         | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/2 initscripts: split sushell into sub package

From: Jackie Huang <[email protected]>

* sushell is required by systemd service debug-shell when selinux is enabled, but it doesn't make sense to make systemd depend on initscripts, so split sushell into sub package initscripts-sushell.

* The bash dependency has been removed by:
'''
4917e36a77bd6821b45db52caa43939d344d92f6
initscripts: Fix regression for requiring /bin/bash '''
so remove bash from RDEPENDS when selinux is enabled.

---
 meta/recipes-core/initscripts/initscripts_1.0.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-core/initscripts/initscripts_1.0.bb +3 -2
index 2e4f7e4..7e01572 100644
@@ -46,11 +46,12 @@ inherit update-alternatives
 DEPENDS_append = " update-rc.d-native"
 PACKAGE_WRITE_DEPS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
 
-PACKAGES =+ "${PN}-functions"
+PACKAGES =+ "${PN}-functions ${PN}-sushell"
 RDEPENDS_${PN} = "${PN}-functions \
-                  ${@bb.utils.contains('DISTRO_FEATURES','selinux','bash','',d)} \
+                  ${@bb.utils.contains('DISTRO_FEATURES','selinux','${PN}-sushell','',d)} \
 		 "
 FILES_${PN}-functions = "${sysconfdir}/init.d/functions*"
+FILES_${PN}-sushell = "${base_sbindir}/sushell"
 
 ALTERNATIVE_PRIORITY_${PN}-functions = "90"
 ALTERNATIVE_${PN}-functions = "functions"
Signature · 1 line
2.8.3
#2 lore raw

PATCH 2/2 systemd: add dependency on initscripts-sushell for selinux

In reply to [email protected]

From: Jackie Huang <[email protected]>

sushell is required by systemd service debug-shell when selinux is enabled.

---
 meta/recipes-core/systemd/systemd_232.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_232.bb +1 -1
index cc8781e..d38be14 100644
@@ -113,7 +113,7 @@ PACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
 # Update NAT firewall rules
 PACKAGECONFIG[iptc] = "--enable-libiptc,--disable-libiptc,iptables"
 PACKAGECONFIG[ldconfig] = "--enable-ldconfig,--disable-ldconfig,,"
-PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,initscripts-sushell"
 PACKAGECONFIG[valgrind] = "ac_cv_header_valgrind_memcheck_h=yes ac_cv_header_valgrind_valgrind_h=yes ,ac_cv_header_valgrind_memcheck_h=no ac_cv_header_valgrind_valgrind_h=no ,valgrind"
 PACKAGECONFIG[qrencode] = "--enable-qrencode,--disable-qrencode,qrencode"
 PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
Signature · 1 line
2.8.3
#3 lore raw
In reply to [email protected]

Ping.

Quoted 38 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, February 22, 2017 14:42
To: [email protected]
Subject: [OE-core] [PATCH 0/2] systemd: fixes for debug-shell service

From: Jackie Huang <[email protected]>

--
The following changes since commit
e436a6398684d2872cb541f1cfb0f67b3618d15a:

layer.conf: bump version for change in eSDK selftest behaviour (2017-02-19
09:39:03 -0800)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_debug-shell_170222_1
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_debug-shell_170222_1

Jackie Huang (2):
initscripts: split sushell into sub package
systemd: add dependency on initscripts-sushell for selinux

 meta/recipes-core/initscripts/initscripts_1.0.bb | 5 +++--
 meta/recipes-core/systemd/systemd_232.bb         | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

--
2.8.3

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core