Skip to contentSkip to conversation

libpam: remove unused code

PATCH New Changqing Li 1 participant 1 message Jan 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpam: remove unused code

from commit b0384720a46fb25c4ad180e3f256ffdeb53dc8a6, which upgrade libpam to 1.5.1, packaging is adjustd, and the binary is packaged into libpam-runtime, so we don't need to append them to pam-plugin-xxx.

---
 meta/recipes-extended/pam/libpam_1.5.1.bb | 14 --------------
 1 file changed, 14 deletions(-)
meta/recipes-extended/pam/libpam_1.5.1.bb +0 -14
index 8c008a9701..d6612bb936 100644
@@ -82,13 +82,6 @@ RRECOMMENDS_${PN} = "${PN}-runtime-${libpam_suffix}"
 RRECOMMENDS_${PN}_class-native = ""
 
 python populate_packages_prepend () {
-    def pam_plugin_append_file(pn, dir, file):
-        nf = os.path.join(dir, file)
-        of = d.getVar('FILES_' + pn)
-        if of:
-            nf = of + " " + nf
-        d.setVar('FILES_' + pn, nf)
-
     def pam_plugin_hook(file, pkg, pattern, format, basename):
         pn = d.getVar('PN')
         libpam_suffix = d.getVar('libpam_suffix')
@@ -116,13 +109,6 @@ python populate_packages_prepend () {
 
     do_split_packages(d, pam_libdir, r'^pam(.*)\.so$', pam_pkgname,
                       'PAM plugin for %s', hook=pam_plugin_hook, extra_depends='')
-    pam_plugin_append_file('%spam-plugin-unix' % mlprefix, pam_sbindir, 'unix_chkpwd')
-    pam_plugin_append_file('%spam-plugin-unix' % mlprefix, pam_sbindir, 'unix_update')
-    pam_plugin_append_file('%spam-plugin-tally' % mlprefix, pam_sbindir, 'pam_tally')
-    pam_plugin_append_file('%spam-plugin-tally2' % mlprefix, pam_sbindir, 'pam_tally2')
-    pam_plugin_append_file('%spam-plugin-timestamp' % mlprefix, pam_sbindir, 'pam_timestamp_check')
-    pam_plugin_append_file('%spam-plugin-mkhomedir' % mlprefix, pam_sbindir, 'mkhomedir_helper')
-    pam_plugin_append_file('%spam-plugin-console' % mlprefix, pam_sbindir, 'pam_console_apply')
     do_split_packages(d, pam_filterdir, r'^(.*)$', 'pam-filter-%s', 'PAM filter for %s', extra_depends='')
 }
 
Signature · 1 line
2.17.1