Example #1
0
def build():
    shelltools.export("CFLAGS", "-Os")
    inarytools.dosed("Make.defaults", "-O0", "-Os")
    inarytools.dosed("src/test/Makefile", "-rpath=$(TOPDIR)/src/",
                     "-rpath=$(libdir)|g")
    autotools.make(
        "libdir=/usr/lib bindir=/usr/bin includedir=/usr/include/ V=1 -j1")
Example #2
0
def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.13.4" % get.workDIR())

    inarytools.dodir("/usr/lib/go")
    shelltools.system("cp -r api bin doc lib pkg src  %s/usr/lib/go" % get.installDIR())
    shelltools.system("chown -R  root:root %s/usr" % get.installDIR())

    inarytools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
    inarytools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")

    inarytools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME())
    inarytools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME())

    shelltools.system("cp -r misc  %s/usr/lib/go" % get.installDIR())

    # remove testdata, which hit cave fix-linkage
    inarytools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec")
    inarytools.removeDir("/usr/lib/go/pkg/obj")

    # dirty fix thanks @erturk
    inarytools.removeDir("/usr/lib/go/pkg/linux_amd64")


    inarytools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
Example #3
0
def setup():
    shelltools.export("AUTOPOINT", "/bin/true")
    #    autotools.autoreconf("-vfi")
    autotools.configure("--disable-silent-rules \
                         --disable-static \
                         --disable-rpath \
                         --enable-perl \
                         --enable-ruby \
                         --enable-lua \
                         --enable-tcl \
                         --enable-python \
                         --with-rrd-default-font=/usr/share/fonts/dejavu/DejaVuSansMono.ttf \
                         --with-perl-options='installdirs=vendor destdir=%(DESTDIR)s' \
                         --with-ruby-options='sitedir=%(DESTDIR)s/usr/lib/ruby' \
                         " % {"DESTDIR": get.installDIR()})

    inarytools.dosed("Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("doc/Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("bindings/Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("examples/Makefile", "examplesdir = .*$",
                     "examplesdir = $(datadir)/doc/${PACKAGE}/examples")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #4
0
def setup():
    shelltools.export("CFLAGS","%s -fpie" % get.CFLAGS())
    shelltools.export("LDFLAGS","%s -pie" % get.LDFLAGS())

    #inarytools.dosed("pathnames.h", "/usr/X11R6/bin/xauth", r"/usr/bin/xauth")
    #inarytools.dosed("sshd_config", "(?m)^(^#UsePAM ).*", r"UsePAM yes")
    #inarytools.dosed("sshd_config", "(?m)^(^#PasswordAuthentication ).*", r"PasswordAuthentication no")
    #inarytools.dosed("sshd_config", "(?m)^(^#X11Forwarding ).*", r"X11Forwarding yes")
    #inarytools.dosed("sshd_config", "(?m)^(^#UseDNS ).*", r"UseDNS no")
    #inarytools.dosed("sshd_config", "(?m)^(^#PermitRootLogin ).*", r"PermitRootLogin no")

    autotools.autoreconf("-fi")

    # Kerberos support is a must, libedit is optional
    # Update configure parameters when both are ready
    autotools.configure("--sysconfdir=/etc/ssh \
                         --libexecdir=/usr/libexec/openssh \
                         --datadir=/usr/share/openssh \
                         --disable-strip \
                         --with-pam \
                         --with-libedit \
                         --with-kerberos5 \
                         --with-tcp-wrappers \
                         --with-md5-passwords \
                         --with-ipaddr-display \
                         --with-privsep-user=sshd \
                         --with-privsep-path=/var/empty \
                         --without-zlib-version-check \
                         --without-ssl-engine")
Example #5
0
def setup():
    inarytools.flags.add("-fPIC")
    inarytools.dosed("makeinclude.in", "^(docdir.*)$", r"\1/html")

    autotools.autoconf()

    options = "\
               --enable-gl \
               --enable-shared \
               --enable-threads \
               "

    if get.buildTYPE() == "emul32":

        shelltools.export("CFLAGS", "-m32")
        shelltools.export("CXXFLAGS", "-m32")

        options += "--prefix=/emul32 \
                    --libdir=/usr/lib32 \
                    --with-optim='%s' \
                    " % get.CFLAGS()

    elif get.ARCH() == "x86_64":

        options += "--with-optim='%s' \
                   " % get.CFLAGS()

    autotools.configure(options)
Example #6
0
def setup():
    options = "--enable-cxx"

    if get.buildTYPE() == "emul32":
        shelltools.export("ABI", "32")

    autotools.configure(options)
Example #7
0
def build():
    if get.buildTYPE() != "emul32":
        shelltools.export("RUST_TARGET", "x86_64-unknown-linux-gnu")
    else:
        shelltools.export("RUST_TARGET", "i686-unknown-linux-gnu")

    autotools.make()
Example #8
0
def setup():
    shelltools.makedirs(NCURSES)
    shelltools.makedirs(NCURSESW)
    shelltools.cd(NCURSESW)

    global CONFIGPARAMS

    if get.buildTYPE() == "_emul32":
        shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig")
        inarytools.dosed("%s/misc/gen-pkgconfig.in" % WORKDIR,
                         "^(show_prefix=).*", "\\1'/usr'")
        CONFIGPARAMS += " --prefix=/_emul32 \
                          --libdir=/usr/lib32 \
                          --libexecdir=/_emul32/lib \
                          --bindir=/_emul32/bin \
                          --sbindir=/_emul32/sbin \
                          --mandir=/_emul32/share/man"

    else:
        CONFIGPARAMS += " --prefix=/usr \
                          --libdir=/usr/lib \
                          --libexecdir=/usr/lib \
                          --bindir=/usr/bin \
                          --sbindir=/usr/sbin \
                          --mandir=/usr/share/man"

    shelltools.system("%s/configure --enable-widec --enable-pc-files %s" %
                      (WORKDIR, CONFIGPARAMS))
Example #9
0
def build():
    shelltools.export("CC", get.CC())

    autotools.make("libdir")
    autotools.make()
    autotools.make("ether-wake")
    autotools.make("i18ndir")
Example #10
0
def setup():
    shelltools.export("CFLAGS", flags)
    
    shelltools.system("./autogen.sh")

    autotools.configure("--enable-nls \
                         --disable-rpath")
Example #11
0
def setup():
    inarytools.dosed("config/override.m4", "2.64", "2.69")
    shelltools.system(
        'sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.export("PYTHON", "/usr/bin/python3")
    shelltools.system("../configure \
                       --prefix=/{0} \
                       --build={1} \
                       --mandir=/{2} \
                       --libdir=/{0}/lib \
                       --infodir=/{3} \
                       --datadir=/{4} \
                       --sysconfdir=/{5} \
                       --localstatedir=/{6} \
                       --libexecdir=/{7} \
                       --with-system-readline \
                       --with-separate-debug-dir=/usr/lib/debug \
                       --with-gdb-datadir=/usr/share/gdb \
                       --with-python=/usr/bin/{8} \
                       --with-pythondir=/usr/lib/{8}/site-packages \
                       --disable-nls \
                       --disable-rpath \
                       --with-expat".format(get.defaultprefixDIR(), get.HOST(),
                                            get.manDIR(), get.infoDIR(),
                                            get.dataDIR(), get.confDIR(),
                                            get.localstateDIR(),
                                            get.libexecDIR(), get.curPYTHON()))
Example #12
0
def build():
    # colorgcc uses Term::ANSIColor
    paths = get.ENV("PATH").split(":")
    if "/usr/share/colorgcc" in paths:
        paths.remove("/usr/share/colorgcc")
    shelltools.export("PATH", ":".join(paths))
    ##
    autotools.make()
Example #13
0
def setup():
    shelltools.export("CFLAGS","%s -fstack-protector-all" % get.CFLAGS())

    mesontools.cmake_configure("-DCMAKE_BUILD_TYPE=Release \
                                -DCMAKE_INSTALL_PREFIX=/usr \
                                -DCMAKE_INSTALL_LIBDIR=lib \
                                -DCMAKE_INSTALL_RPATH= \
                                -DCMAKE_SKIP_RPATH=ON")
Example #14
0
def setup():
    shelltools.export("CFLAGS", "%s -O2" % get.CFLAGS())

    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --enable-shared \
                         --enable-smi \
                         --enable-sming")
Example #15
0
def build():

    if get.buildTYPE() == "rebuild_python":
        shelltools.export("PYTHON", "/usr/bin/python3.7")
        pythonmodules.compile(pyVer="3")
    else:
        shelltools.export("PYTHON", "/usr/bin/python2.7")
        pythonmodules.compile(pyVer="2")
Example #16
0
def setup():
    options = "--disable-static"

    if get.buildTYPE() == "emul32":
        options += " --libdir=/usr/lib32"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
    inarytools.dosed("Makefile.in", "check: scripts/symbols.chk", "check:")
    autotools.configure(options)
Example #17
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")
    shelltools.move("autoconf.texi", "autoconf213.texi")
    autotools.configure("--infodir=/usr/share/info --program-suffix=-2.13")
Example #18
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")

    autotools.configure()
Example #19
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --with-ui \
                         --with-readline \
                         --enable-nls")
    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #20
0
def build():
    for directory in ["freeglut","freetype","harfbuzz","jbig2dec","libjpeg","openjpeg","zlib"]:
        shelltools.unlinkDir("thirdparty/"+directory)

    shelltools.export("USE_SYSTEM_LIBS",'yes')
    shelltools.system("sed '/TOFU_CJK /c #define TOFU_CJK 1/' -i include/mupdf/fitz/config.h")
    shelltools.system("sed -i '/ttc/s/^/#/' Makefile")
    autotools.make("prefix=/usr")
Example #21
0
def build():
    shelltools.export("LDFLAGS", "%s -Wl,-z,now" % get.LDFLAGS())

    #    inarytools.dosed("Makefile", "gcc (\-Wall.*)", "%s \\1 %s" % (get.CC(), get.CFLAGS()))
    inarytools.dosed("Makefile", "^(LDFLAGS[ \t]+=).*",
                     "\\1 %s" % get.LDFLAGS())

    autotools.make()
Example #22
0
def setup():
    # autoreconf is for under linking problem
    autotools.autoreconf("-fi")
    if get.buildTYPE() == "rebuild_python":
        shelltools.export("PYTHON", "/usr/bin/python3.7")
    else:
        shelltools.export("PYTHON", "/usr/bin/python2.7")
    autotools.configure("--disable-introspection")
Example #23
0
def run(argument='', parameters='', build_tool='ant'):
    """run build tool with given parameters"""

    export('JAVA_HOME', '/opt/sun-jre')
    # Otherwise, javadoc might be completed with errors
    export('LC_ALL', 'en_US.UTF-8')

    if system('{0} {1} {2}'.format(build_tool, parameters, argument)):
        raise RunTimeError(_('Run failed.'))
Example #24
0
def build():
    shelltools.cd("wpa_supplicant")

    #Enable syslog output
    cflags = get.CFLAGS() + " -DCONFIG_DEBUG_SYSLOG"
    shelltools.export("CFLAGS", cflags)

    autotools.make("V=1")
    autotools.make("eapol_test")
Example #25
0
def setup():
    shelltools.export("CFLAGS",
                      "{} -DG_DISABLE_CAST_CHECKS".format(get.CFLAGS()))
    options = "-Dselinux=disabled -Dman=false -Ddoc=false -Dinternal_pcre=true\
            "

    if get.buildTYPE() == "emul32":
        shelltools.system("patch -p1 < multilib.patch")
    mesontools.meson_configure(options)
Example #26
0
def setup():
    #for i in ["mtools.texi"]:
    #    inarytools.dosed(i, "/usr/local/etc", "/etc")

    shelltools.export("INSTALL_PROGRAM", "install")
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                        --sysconfdir=/etc/mtools \
                        --includedir=/usr/src/linux/include")
Example #27
0
def setup():
    shelltools.export("LDFLAGS", "%s -ldl" % get.LDFLAGS())
    autotools.configure("--prefix=/usr \
                         --disable-static \
                         --disable-schemas-compile \
                         --enable-libnotify \
                         --with-nvidia")

    # for fix unused dependency
    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Example #28
0
def build():
    #Parallel build is broken
    shelltools.export("CXXFLAGS",
                      "%s -std=gnu++98 -fno-lifetime-dse" % get.CXXFLAGS())
    autotools.make()
    shelltools.cd("gen")
    inarytools.dosed("install/makeInstallImage.sh", "exit 1", "# exit 1")
    inarytools.dosed("install/makeInstallImage.sh", "chown", 'echo ""# chown')
    inarytools.dosed("install/makeInstallImage.sh", "chmod", 'echo ""# chmod')
    autotools.make("-f Makefile.install buildRoot")
Example #29
0
def setup():
    shelltools.export("CFLAGS",
                      "%s -fsigned-char -D_FILE_OFFSET_BITS=64" % get.CFLAGS())
    autotools.autoreconf("-fi")

    autotools.configure("--disable-static \
                         --with-gsm \
                         --with-dyn-default")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #30
0
def builddiet():
    autotools.make("clean")
    shelltools.export(
        "CC", "diet %s %s %s %s -DHAVE_STDINT_H -Os -static" %
        (get.CC(), get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
    autotools.make("mdadm.static")
    autotools.make("mdassemble.static")

    inarytools.insinto("/sbin", "mdadm.static")
    inarytools.insinto("/sbin", "mdassemble.static")