From 8250f5220d2d42aa43f135465021c62c8b7f4069 Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Wed, 14 Apr 2021 19:01:41 +0900 Subject: [PATCH] Remove unnecessary util-linux modules from install dir --- gub/specs/util-linux.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gub/specs/util-linux.py b/gub/specs/util-linux.py index 736433f6..ad22cb31 100644 --- a/gub/specs/util-linux.py +++ b/gub/specs/util-linux.py @@ -51,3 +51,12 @@ class Util_linux (target.AutoBuild): + ' --disable-makeinstall-chown' + ' --disable-makeinstall-setuid' ) + def install (self): + target.AutoBuild.install (self) + # Some unnecesary util-linux modules cannot be disabled. + # So, delete those files. + self.system (''' +rm -fr %(install_root)s/bin %(install_root)s/sbin +rm -fr %(install_prefix)s/bin %(install_prefix)s/sbin +rm -fr %(install_prefix)s/share +''', locals ())