Skip to contentSkip to conversation

sudo: split sudo binary into its own package

PATCH New Sinan Kaya 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH v6 1/1 sudo: split sudo binary into its own package

Package just sudo binary into its own package for size concerned targets.

---
 meta/recipes-extended/sudo/sudo_1.9.3p1.bb | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meta/recipes-extended/sudo/sudo_1.9.3p1.bb +11 -1
index ba61a7f2472..745f71b8504 100644
@@ -44,6 +44,16 @@ do_install_append () {
 	rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo
 }
 
-FILES_${PN} += "${nonarch_libdir}/tmpfiles.d"
 FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*.la \
                     ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la"
+
+SUDO_PACKAGES = "${PN}-sudo\
+                 ${PN}-lib"
+
+PACKAGE_BEFORE_PN = "${SUDO_PACKAGES}"
+
+RDEPENDS_${PN}-sudo = "${PN}-lib"
+RDEPENDS_${PN} += "${SUDO_PACKAGES}"
+
+FILES_${PN}-sudo = "${bindir}/sudo ${bindir}/sudoedit"
+FILES_${PN}-lib = "${localstatedir} ${libexecdir} ${sysconfdir} ${libdir} ${nonarch_libdir}"
\ No newline at end of file
Signature · 1 line
2.17.1