Mercurial > gub
changeset 5183:a803649aed3b
Junk obsolete misc.py:librestrict_allow ().
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Wed, 18 Feb 2009 15:04:31 +0100 |
parents | 239356465a88 |
children | 76c2fa309653 |
files | gub/misc.py |
diffstat | 1 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/misc.py Wed Feb 18 15:01:52 2009 +0100 +++ b/gub/misc.py Wed Feb 18 15:04:31 2009 +0100 @@ -626,31 +626,6 @@ return list (sorted (os.environ.get ('LIBRESTRICT', 'open').replace (':', ' ').split (' '))) -def librestrict_allow (): - ''' -Hmm, or set these somehow? -ac_cv_path_EGREP=${ac_cv_path_EGREP='/bin/grep -E'} -ac_cv_path_GREP=${ac_cv_path_GREP=/bin/grep} - ''' - # Let's not change the dict between relaxed/restricted builds - if not 'stat' in librestrict (): - return '' - bin = ['egrep', 'fgrep', 'grep', 'sed'] - usr_bin = ['awk', 'gawk', 'mawk', 'nawk'] - # URG, GUB's cross gcc's STAT here. GUB may break in - # interesting ways if there are cross compilers installed - # here. - gcc = ['/usr/lib/gcc', '/usr/libexec/gcc'] - # Better install awk, grep, sed - bin = [] - usr_bin = [] - # Patched gcc - gcc = [] - return (':'.join (['/bin/' + x for x in bin] - + ['/usr/bin/' + x for x in usr_bin] - + gcc) - + ':${LIBRESTRICT_ALLOW-/foo} ') - def test (): printf (forall (x for x in [1, 1])) printf (dissect_url ('git://anongit.freedesktop.org/git/fontconfig?revision=1234'))