X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=builder;h=0b45f462adc702e64490208e0f5d4f1c139121bf;hp=8c41b82c6467af9661b0e4358c76c9ee4273de16;hb=dbfec61355edcbbb897f8d8089d7f5ef2ab0c013;hpb=79a20c50015feb249a164c0b5aaf120e14f64e21 diff --git a/builder b/builder index 8c41b82..0b45f46 100755 --- a/builder +++ b/builder @@ -69,12 +69,15 @@ def command_output(args) : def build(package): with current_directory(package): run_cmd(('autoreconf', '-i', '-f')) - configure_command = ' '.join([schroot_command, + configure_command = ' '.join([ './configure'] + configure_opts) + if len(schroot_command) > 0: + configure_command = schroot_command + " -- " \ + + configure_command print configure_command sys.stdout.flush() run_cmd(configure_command, shell=True) - run_cmd(schroot_command + ' make', shell=true) + run_cmd(schroot_command + ' make', shell=True) def make_install(package): with current_directory(package): @@ -122,9 +125,13 @@ opt.usage = "%prog [options] [packages]" prefix = options.prefix root_command = options.root_command configure_opts = ['--prefix', prefix, - "LDFLAGS='-Wl,-L"+prefix+"/lib" - + " -Wl,-R"+prefix+"/lib'", - 'CPPFLAGS="-I '+prefix+'/include"'] + "LDFLAGS='-Wl,-L"+prefix+"/lib -Wl,-L/usr/lib/freeradius" + + " -Wl,-rpath="+prefix+"/lib'", + 'CPPFLAGS="-I '+prefix+'/include"', + '--with-system-libtool', '--with-system-libltdl', + '--enable-tls', '--with-gssapi='+prefix, + "--with-xmltooling="+prefix, + ] if options.configure_opts is not None: configure_opts.extend(options.configure_opts) @@ -137,6 +144,7 @@ if options.schroot is not None: all_packages = read_packages() if len(packages) == 0: packages = all_packages +os.umask(022) try: for p in all_packages: