Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Remove unnecessary util-linux modules from install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
trueroad authored and PhilHolmes committed Apr 24, 2021
1 parent 226f2e1 commit 8250f52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gub/specs/util-linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ())

0 comments on commit 8250f52

Please sign in to comment.