Example #1
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--disable-aload")

    # rpath fix
    pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
    pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
Example #2
0
def setup():
    shelltools.export("PTHREAD_LIBS", "-lpthread")
    shelltools.system("./autogen.sh")
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static")
    
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #3
0
def setup():
    autotools.configure("--enable-v4l \
                         --enable-v4l2 \
                         --enable-plugins \
                         --enable-oss \
                         --enable-ipv6 \
                         --enable-expat")
Example #4
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --with-ui \
                         --with-readline \
                         --enable-nls")
Example #5
0
def setup():
    pisitools.dosed("configure.ac", "-O3", "")
    shelltools.export("CPPFLAGS", get.CXXFLAGS())

    shelltools.system("./autogen.sh")
    autotools.configure("--disable-static \
                         --enable-glib")
Example #6
0
def setup():
    shelltools.export("CFLAGS", "%s -D_GNU_SOURCE -fPIC" % get.CFLAGS())

    for i in ["dhclient.conf.5", "dhclient.leases.5", "dhclient-script.8", "dhclient.8"]:
        pisitools.dosed("client/%s" % i, "CLIENTBINDIR", "/sbin")
        pisitools.dosed("client/%s" % i, "RUNDIR", "/var/run")
        pisitools.dosed("client/%s" % i, "DBDIR", "/var/lib/dhcpd")
        pisitools.dosed("client/%s" % i, "ETCDIR", "/etc/dhcp")

    for i in ["dhcpd.conf.5", "dhcpd.leases.5", "dhcpd.8"]:
        pisitools.dosed("server/%s" % i, "CLIENTBINDIR", "/sbin")
        pisitools.dosed("server/%s" % i, "RUNDIR", "/var/run")
        pisitools.dosed("server/%s" % i, "DBDIR", "/var/lib/dhcpd")
        pisitools.dosed("server/%s" % i, "ETCDIR", "/etc/dhcp")

    pisitools.dosed("client/scripts/linux", "/etc/dhclient-exit-hooks", "/etc/dhcp/dhclient-exit-hooks")
    pisitools.dosed("client/scripts/linux", "/etc/dhclient-enter-hooks", "/etc/dhcp/dhclient-enter-hooks")

    autotools.autoreconf("-vfi")
    autotools.configure("--with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
                         --with-srv6-lease-file=/var/lib/dhcpd/dhcpd6.leases \
                         --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
                         --with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases \
                         --with-srv-pid-file=/var/run/dhcpd.pid \
                         --with-srv6-pid-file=/var/run/dhcpd6.pid \
                         --with-cli-pid-file=/var/run/dhclient.pid \
                         --with-cli6-pid-file=/var/run/dhclient6.pid \
                         --with-relay-pid-file=/var/run/dhcrelay.pid \
                         --with-ldap \
                         --with-ldapcrypto")
Example #7
0
def setup():
    autotools.configure("--with-oss \
                         --with-kernel=/lib/modules/%s/build \
                         --with-isapnp=yes \
                         --with-sequencer=yes \
                         --with-card-options=all \
                         --with-cards=all" % get.curKERNEL())
Example #8
0
def setup():
    shelltools.makedirs("m4")
    # Fix PATHs in manpages
    pisitools.dosed("bin/named/named.8", "/etc/named.conf", "/etc/bind/named.conf")
    pisitools.dosed("bin/check/named-checkconf.8", "/etc/named.conf", "/etc/bind/named.conf")
    pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.conf", "/etc/bind/rndc.conf")
    pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.key", "/etc/bind/rndc.key")

    # Adjust version
    pisitools.dosed("version", "^RELEASEVER=.*$", "RELEASEVER=Pisi Linux-1.0")

    libtools.libtoolize("-cf")
    autotools.aclocal("-I m4")
    autotools.autoreconf("-vfi")

    autotools.configure(
        "--localstatedir=/var \
                         --sysconfdir=/etc/bind \
                         --with-openssl=/usr \
                         --with-libtool \
                         --with-pic \
                         --with-randomdev=/dev/urandom \
                         --enable-linux-caps \
                         --enable-threads \
                         --enable-exportlib \
                         --with-export-libdir=/usr/lib \
                         --with-export-includedir=/usr/include \
                         --includedir=/usr/include/bind9 \
                         --enable-ipv6 \
                         --enable-largefile \
                         --disable-static"
    )

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #9
0
def setup():
  
    #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in")
    pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True)
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --localstatedir=/var \
                         --libexecdir=/usr/libexec/ \
                         --enable-sixaxis \
                         --enable-experimental \
                         --disable-android \
                         --enable-datafiles \
                         --enable-optimization \
                         --enable-pie \
                         --enable-threads \
                         --enable-library \
                         --enable-tools \
                         --enable-manpages \
                         --enable-monitor \
                         --enable-udev \
                         --enable-test \
                         --disable-systemd")
                         
    
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Example #10
0
def setup():
    autotools.configure(
        "--disable-static \
                         --enable-introspection=yes"
    )

    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Example #11
0
def setup():
    autotools.configure("--disable-static \
                         --enable-pcre \
                         --enable-xml2 \
                         --with-regex-library=pcre \
                         --disable-gtk-doc \
                         --with-html-dir=%s" % docdir)
Example #12
0
def setup():
    for (path, dirs, files) in os.walk(get.workDIR()):
        for file in files:
            if file.endswith(".c"):
                with open("%s/%s" % (path, file)) as f:
                    lines = f.readlines()
                new_file = ""
                for line in lines:
                    if not line.find("g_type_init()") == -1:
                        new_file = new_file + "#if !GLIB_CHECK_VERSION(2,35,0)\n" + line + "#endif\n"
                    else: 
                        new_file = new_file + line
                open("%s/%s" % (path, file), "w").write(new_file)
    
    options = "--disable-static \
               --disable-silent-rules \
               --disable-scrollkeeper \
               --disable-dumper \
               --disable-tests \
               --enable-introspection=yes"
    
    shelltools.makedirs("../gtk2-rebuild")
    shelltools.system("cp -R * ../gtk2-rebuild &>/dev/null")

    #autotools.autoreconf("-fvi")
    autotools.configure("%s --with-gtk=3" % options)
    shelltools.cd("../gtk2-rebuild")
    #autotools.autoreconf("-fvi")
    autotools.configure("%s --with-gtk=2" % options)
Example #13
0
def setup():
    autotools.configure("--bindir=/usr/sbin \
                         --sysconfdir=/etc/ntp \
                         --enable-all-clocks \
                         --enable-parse-clocks \
                         --enable-linuxcaps \
                         --enable-ipv6")
Example #14
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --enable-mod-ogg \
                         --enable-mod-gl \
                         --disable-nls \
                         --disable-rpath")
Example #15
0
def setup():
    autotools.configure("--enable-static=no \
                         --with-cd-paranoia-name=libcdio-paranoia \
                         --disable-vcd-info \
                         --disable-dependency-tracking \
                         --disable-cddb \
                         --disable-rpath")
Example #16
0
def setup():
    autotools.configure("--enable-static=no \
                         --enable-static-link=no \
                         --disable-psqltest \
                         --with-python \
                         --with-libgcrypt \
                         --with-psql")
Example #17
0
def setup():
    # For 32bit machines:
    #   * It get compiled with the normal options below. The emul32 are ignored
    #     on 32bit machines. Nothing is added to options variable.
    #
    # For 64bit machines:
    #   * First we compile for 64bit with the option --enable-win64. These build
    #     files are stored in the normal "work" dir
    #   * In the second run (for emul32 buildType), the 32bit part is compiled
    #     with the spesific libdir and the --with-wine64 options that is pointing
    #     to the 64bit files that was compiled in the first step (files in the work)
    #
    # More info can be obtained here: http://wiki.winehq.org/Wine64

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-esd \
               --with-opengl \
               --with-pulse \
               --with-x"

    if get.buildTYPE() == "emul32":
        options += (
            "--libdir=/usr/lib32 \
                    --with-wine64=%s/work/%s"
            % (get.pkgDIR(), get.srcDIR())
        )
    elif get.ARCH() == "x86_64":
        options += " --enable-win64"

    autotools.configure(options)
Example #18
0
def setup():
	shelltools.system ("sed -i -e '/gets is a/d' gnu/stdio.in.h")
	autotools.configure("--prefix=/usr\
						 --bindir=/bin\
						 --libexecdir=/tmp\
						 --enable-mt\
						 --with-rmt=/usr/sbin/rmt")
Example #19
0
def setup():
    shelltools.export("CFLAGS","%s -fpie" % get.CFLAGS())
    shelltools.export("LDFLAGS","%s -pie" % get.LDFLAGS())

    pisitools.dosed("pathnames.h", "/usr/X11R6/bin/xauth", r"/usr/bin/xauth")
    pisitools.dosed("sshd_config", "(?m)^(^#Protocol ).*", r"Protocol 2")
    pisitools.dosed("sshd_config", "(?m)^(^#UsePAM ).*", r"UsePAM yes")
    pisitools.dosed("sshd_config", "(?m)^(^#PasswordAuthentication ).*", r"PasswordAuthentication no")
    pisitools.dosed("sshd_config", "(?m)^(^#X11Forwarding ).*", r"X11Forwarding yes")
    pisitools.dosed("sshd_config", "(?m)^(^#UseDNS ).*", r"UseDNS no")
    pisitools.dosed("sshd_config", "(?m)^(^#PermitRootLogin ).*", r"PermitRootLogin no")
    autotools.autoreconf("-fi")

    autotools.configure("--sysconfdir=/etc/ssh \
                         --disable-strip \
                         --libexecdir=/usr/lib/misc \
                         --datadir=/usr/share/openssh \
                         --with-privsep-path=/var/empty \
                         --with-privsep-user=sshd \
                         --with-md5-passwords \
                         --without-kerberos5 \
                         --with-tcp-wrappers \
                         --without-skey \
                         --without-opensc \
                         --with-pam \
                         --with-consolekit")
Example #20
0
def setup():
    autotools.configure("--enable-all \
                         --enable-pie \
                         --disable-initscripts \
                         --disable-sdpd \
                         --disable-hidd \
                         --localstatedir=/var")
Example #21
0
def setup():
    pisitools.dosed("src/Makefile.am", "sis_drv", "sisimedia_drv")
    pisitools.dosed("src/sis.h", '"sis"', '"sisimedia"')
    pisitools.dosed("src/sis_driver.c", "sisModuleData", "sisimediaModuleData")

    autotools.autoreconf("-vif")
    autotools.configure()
Example #22
0
def setup():
    shelltools.touch("%s/ChangeLog" % get.curDIR())
    autotools.autoreconf("-fi")

    autotools.configure("--disable-static \
                         --disable-libQgpsmm \
                         --enable-dbus")
Example #23
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("conf_dir=/etc/conf.d --enable-yesterday \
                        --enable-install-isag \
                        --enable-install-cron \
                        --enable-copy-only \
                        --disable-man-group")
Example #24
0
def setup():
    autotools.configure("--disable-werror \
                         --disable-static \
                         --disable-tests \
                         --enable-client \
                         --with-man=no \
                         --program-suffix=-0.2")
def setup():
    autotools.configure(
        "--disable-static \
                         --enable-test \
                         --disable-dependency-tracking \
                         --with-gnu-ld"
    )
Example #26
0
def setup():
    autotools.autoreconf()
    autotools.configure("--disable-static \
                         --sysconfdir=/etc/aspell \
                         --enable-docdir=/usr/share/doc/%s" % get.srcNAME())

    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
Example #27
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-vfi")
    #shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook")

    options = '--with-package-name="GStreamer package for PisiLinux" \
               --with-package-origin="http://www.pisilinux.org" \
               --enable-nls \
               --disable-dependency-tracking \
               --disable-examples \
               --disable-tests \
               --disable-failing-tests \
               --enable-introspection \
               --disable-static \
               --disable-rpath \
               --disable-valgrind \
               --disable-gtk-doc'

    if get.buildTYPE() == "emul32":
        options += " --bindir=/usr/bin32 \
                     --libexecdir=/usr/libexec32 \
                     --disable-introspection"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    autotools.configure(options)
Example #28
0
def setup():
    shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())
    for i in ["NEWS", "AUTHORS", "COPYING"]:
        shelltools.touch(i)

    autotools.autoreconf("-fi")
    autotools.configure("--disable-static --prefix=/opt/enet12")
Example #29
0
def setup():
    autotools.autoreconf("-fis")

    autotools.configure("--enable-udev \
                         --enable-twinserial \
                         --disable-static \
                         --disable-dependency-tracking")
Example #30
0
def setup():
    autotools.configure(
        "--disable-static \
                         --enable-ssl \
                         --without-apache-httpd \
                         --without-apache-module-dir"
    )
Example #31
0
def setup():
    shelltools.system("sh ./autogen.sh")
    autotools.configure("--disable-static \
                         --disable-build-docs")
Example #32
0
def setup():
    autotools.configure()
Example #33
0
def setup():
    autotools.configure("--disable-static \
                         --enable-shared \
                         --with-ppl")
Example #34
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure()
Example #35
0
def setup():
    autotools.configure("--enable-nls \
                         --program-prefix=g")
Example #36
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static")
Example #37
0
def setup():
    autotools.configure("--enable-shm \
                         --enable-spell=libsexy")
Example #38
0
def setup():
    autotools.configure('--enable-opengl \
                         --sharedstatedir="/var" \
                         --disable-dependency-tracking')
Example #39
0
def setup():
    shelltools.system("./autogen.sh")
    autotools.configure()
Example #40
0
def setup():
    autotools.configure("--disable-static")
Example #41
0
def setup():
    autotools.configure("--disable-static \
                         --enable-python \
                        --with-gtk3 \
                         --enable-introspection=yes")
Example #42
0
def setup():
    autotools.configure ("--prefix=/usr --libexecdir=/usr/lib")
Example #43
0
def setup():
    autotools.configure("--disable-static --enable-asm")
Example #44
0
def setup():
    autotools.configure("--libdir=/usr/lib \
                         --with-conf=/etc/tsocks/tsocks.conf \
                         --enable-socksdns \
                         --disable-hostnames")
Example #45
0
def setup():
    autotools.configure("--disable-dependency-tracking \
                         --disable-static \
                         --disable-rpath \
                         --enable-nls")
Example #46
0
def setup():
    autotools.configure("--disable-static --disable-dependency-tracking")

    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Example #47
0
def setup():
    #shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ")
    shelltools.makedirs("%s/temp/lib" % get.workDIR())
    #shelltools.cd("bzip2-1.0.8")
    #autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
    #shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
    #shelltools.cd("..")
    os.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")

    shelltools.cd("openssl-1.1.1k")
    shelltools.system(
        "./Configure --prefix=%s/temp --openssldir=%s/openssl/etc/ssl --libdir=lib no-shared enable-ec_nistp_64_gcc_128 linux-x86_64 -Wa,--noexecstack"
        % (get.workDIR(), get.workDIR()))
    autotools.make()
    autotools.make("install")
    shelltools.cd("..")

    os.system("echo -e '\033[0;36mBuilding Python\033[0m' ")

    pisitools.cflags.add("-fwrapv")

    # no rpath
    pisitools.dosed("configure.ac", "-rpath \$\(LIBDIR\) ")

    pisitools.dosed("Lib/cgi.py", r"/usr/local/bin/", r"/usr/bin/")
    pisitools.dosed("setup.py", "SQLITE_OMIT_LOAD_EXTENSION", deleteLine=True)
    pisitools.dosed("setup.py", "ndbm_libs =.*",
                    "ndbm_libs = ['gdbm', 'gdbm_compat']")

    for dir in [
            "expat", "zlib", "_ctypes/libffi_arm_wince", "_ctypes/libffi_msvc",
            "_ctypes/libffi_osx", "_ctypes/libffi", "_ctypes/darwin"
    ]:
        shelltools.unlinkDir("Modules/%s" % dir)

    #shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
    #shelltools.export("LDFLAGS", "-L%s/temp/lib -lssl -lcrypto -lpthread -ldl" %get.workDIR())
    shelltools.export("PKG_CONFIG_PATH",
                      "$PKG_CONFIG_PATH:%s/temp/lib/pkgconfig" % get.workDIR())

    pisitools.cflags.add("-I%s/temp/include -O3" % get.workDIR())
    pisitools.ldflags.add("-L%s/temp/lib -lssl -lcrypto -lpthread -ldl" %
                          get.workDIR())

    autotools.autoreconf("-vif")

    # disable bsddb
    pisitools.dosed("setup.py", "^(disabled_module_list = \[)\]",
                    r"\1'_bsddb', 'dbm']")
    # no rpath
    pisitools.dosed("Lib/distutils/command/build_ext.py",
                    "self.rpath.append\(user_lib\)", "pass")

    autotools.configure("--with-fpectl \
                         --enable-shared \
                         --enable-ipv6 \
                         --with-threads \
                         --with-libc='' \
                         --enable-unicode=ucs4 \
                         --with-wctype-functions \
                         --with-system-expat \
                         --with-system-ffi \
                         --with-dbmliborder=gdbm \
                         PKG_CONFIG_PATH=%s/temp/lib/pkgconfig \
                        " % get.workDIR())
Example #48
0
def setup():
    shelltools.system("./autogen.sh")
    autotools.configure("--prefix=/usr")
Example #49
0
def setup():
    autotools.configure("--disable-static \
                         --disable-examples \
                         --enable-dependency-tracking")
Example #50
0
def setup():
    autotools.configure("--prefix=/usr \
                         --with-gtk=2.0 \
                         --enable-mpaste \
                         --disable-static \
                         --disable-gtk-doc")
Example #51
0
def setup():
    pisitools.ldflags.add("-lm")

    autotools.autoreconf("-vif")
    autotools.configure("--enable-gcov=no \
                         --disable-static")
Example #52
0
def setup():
    autotools.configure("--disable-static \
                         --with-jpeg \
                         --with-libtiff=/usr/include \
                         --with-proj \
                         --with-zip")
Example #53
0
def setup():
	autotools.configure("--prefix=/usr \
	--disable-gtk-doc \
	--disable-static \
	--enable-vala \
	--enable-introspection")
Example #54
0
def setup():
    #autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
			 --enable-applets \
                         --with-gtk3 \
                         --enable-unique")
Example #55
0
def setup():
    autotools.configure("--with-qt=/usr/lib/qt4")
Example #56
0
def setup():
    autotools.configure("--with-gtk=2.0")

    # for fix unused dependency
    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Example #57
0
def setup():
    autotools.configure("--disable-static")

    pisitools.dosed("Makefile", "/info", "/share/info")
    pisitools.dosed("Makefile", "/man/", "/share/man/")
Example #58
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --disable-gtk-doc")
Example #59
0
def setup():
    autotools.configure("--enable-static=no")
Example #60
0
def setup():
    autotools.configure("--disable-static \
                         --enable-animation \
                         --enable-macmenu")