X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=builder;h=217430811f63f57ba300cb8df10c153e798c0f1e;hb=a5481662b742df92c4df38ee1c5d6086a3380427;hp=cedab4feb484e927bf7c83bb5951552a017636df;hpb=eb9f2d2cdb2318d900ae2e1ca5a4b35d206fd55e;p=moonshot.git diff --git a/builder b/builder index cedab4f..2174308 100755 --- a/builder +++ b/builder @@ -80,9 +80,11 @@ def build(package): if dist: try: os.mkdir('doc/api') except: pass - run_cmd(root_command +' make dist-gzip', shell=True) - run_cmd('cp *.tar.gz ' +dist_dir, shell=True) - run_cmd(schroot_command + ' make', shell=True) + #Currently freeradius's make dist is broken + if not package == "freeradius-server": + run_cmd(root_command +' make dist-gzip', shell=True) + run_cmd('cp *.tar.gz ' +dist_dir, shell=True) + run_cmd(schroot_command + ' make -j3', shell=True) def make_install(package): with current_directory(package): @@ -138,9 +140,8 @@ prefix = options.prefix root_command = options.root_command dist = options.dist configure_opts = ['--prefix', prefix, - "LDFLAGS='-Wl,-L"+prefix+"/lib -Wl,-L/usr/lib/freeradius" - + " -Wl,-rpath="+prefix+"/lib'", - 'CPPFLAGS="-I '+prefix+'/include"', + "LDFLAGS=-Wl,-L"+prefix+"/lib -Wl,-rpath="+prefix+"/lib", + 'CPPFLAGS=-I '+prefix+'/include', '--with-system-libtool', '--with-system-libltdl', '--enable-tls', '--with-gssapi='+prefix, "--with-xmltooling="+prefix, @@ -153,8 +154,9 @@ if tar_file is not None: dist = True our_schroot = None if options.schroot is not None: our_schroot = Schroot(options.schroot) - schroot_command = "schroot -r -c " + our_schroot.name - root_command = schroot_command + " -u root" + schroot_command_base = "schroot -r -c " + our_schroot.name + root_command = schroot_command_base + " -u root --" + schroot_command = schroot_command_base + ' --' all_packages = read_packages() if len(packages) == 0: packages = all_packages