diff -up waf-1.5.4/waf-light.orig waf-1.5.4/waf-light --- waf-1.5.4/waf-light.orig 2009-04-07 20:34:22.000000000 +0200 +++ waf-1.5.4/waf-light 2009-04-07 21:29:53.000000000 +0200 @@ -117,7 +117,7 @@ def find_lib(): if w: return w err("waf-light requires wafadmin -> export WAFDIR=/folder") - dir = "/lib/%s-%s-%s/" % (WAF, VERSION, REVISION) + dir = "/share/waf/" for i in [INSTALL,'/usr','/usr/local','/opt']: w = test(i+dir) if w: return w diff -up waf-1.5.4/wscript.orig waf-1.5.4/wscript --- waf-1.5.4/wscript.orig 2009-04-07 20:34:22.000000000 +0200 +++ waf-1.5.4/wscript 2009-04-07 21:28:26.000000000 +0200 @@ -314,7 +314,7 @@ def build(bld): if val != True and val != "y": sys.exit(1) create_waf() - dir = os.path.join('lib', 'waf-%s-%s' % (VERSION, REVISION), 'wafadmin') + dir = os.path.join('share', 'waf', 'wafadmin') wafadmin = bld.new_task_gen('py') wafadmin.find_sources_in_dirs('wafadmin', exts=['.py'])