[PATCH source-builder] Add distro aliases for Gentoo hosts

Ralf Ramsauer ralf.ramsauer at oth-regensburg.de
Mon Jan 9 18:43:29 UTC 2017


Gentoo stores most of the basic stuff in /bin and not /usr/bin. Default
values do not work for Gentoo. Add 'gentoo' as a new variation.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer at oth-regensburg.de>
---
 source-builder/sb/linux.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/source-builder/sb/linux.py b/source-builder/sb/linux.py
index 9d90288..f270121 100644
--- a/source-builder/sb/linux.py
+++ b/source-builder/sb/linux.py
@@ -119,6 +119,12 @@ def load():
                      '__chown':        ('exe',     'required', '/usr/bin/chown') },
         'suse'   : { '__chgrp':        ('exe',     'required', '/usr/bin/chgrp'),
                      '__chown':        ('exe',     'required', '/usr/sbin/chown') },
+        'gentoo' : { '__bzip2':        ('exe',     'required', '/bin/bzip2'),
+                     '__chgrp':        ('exe',     'required', '/bin/chgrp'),
+                     '__chown':        ('exe',     'required', '/bin/chown'),
+                     '__gzip':         ('exe',     'required', '/bin/gzip'),
+                     '__grep':         ('exe',     'required', '/bin/grep'),
+                     '__sed':          ('exe',     'required', '/bin/sed') },
         }
 
     if distro in variations:
-- 
2.11.0



More information about the devel mailing list