コード例 #1
0
def setup():
    shelltools.system("tar xvf yacc-1.9.1.tar.Z")
    shelltools.cd("{}/yacc-1.9.1".format(get.workDIR()))
    for i in ["mkstemp.patch", "skeleton.c.diff", "yacc-1.9.1-ia64.patch"]:
        shelltools.move("../{}".format(i), ".")
        shelltools.system("patch --remove-empty-files --no-backup-if-mismatch -i \"{}\"".format(i))
    inarytools.dosed("Makefile", " -O ", " $(CFLAGS) ")
コード例 #2
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.move("%s/lib/udev" % get.installDIR(),
                    "%s/usr/lib/udev" % get.installDIR())
    inarytools.removeDir("/lib")

    inarytools.dodoc("AUTHORS", "COPYING", "NEWS", "README.md")
コード例 #3
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix))
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # emul32 stop here
    if get.buildTYPE() == "emul32":
        shelltools.move("%s%s/lib32" % (get.installDIR(), suffix),
                        "%s/lib32" % (get.installDIR()))
        shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix),
                        "%s/usr/lib32" % (get.installDIR()))
        for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
            inarytools.dosed(
                "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32",
                "usr")
        return

    #add link
    inarytools.dosym("/sbin/udevadm", "/bin/udevadm")

    # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools
    inarytools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id")

    # Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink.
    # inarytools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd")

    # Create /etc/udev/rules.d for backward compatibility
    inarytools.dodir("/etc/udev/rules.d")
    inarytools.dodir("/run/udev")

    # Add man files
    inarytools.doman("man/*.5", "man/*.7", "man/*.8")

    inarytools.dodoc("README*", "NOTES")
コード例 #4
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")
コード例 #5
0
ファイル: actions.py プロジェクト: paledega/SulinRepository
def rename_man_pages():
    manpages = [
        "appl/bsd/klogind.M", "appl/bsd/kshd.M",
        "appl/sample/sserver/sserver.M", "appl/telnet/telnetd/telnetd.8",
        "appl/gssftp/ftpd/ftpd.M", "config-files/kdc.conf.M",
        "config-files/krb5.conf.M", "kadmin/cli/kadmin.M", "slave/kpropd.M",
        "slave/kprop.M"
    ]
    for manpage in manpages:
        shelltools.move(manpage, "%s.in" % manpage)
コード例 #6
0
ファイル: actions.py プロジェクト: paledega/SulinRepository
def install():
    if get.buildTYPE() == "rebuild_python":
        autotools.rawInstall("DESTDIR='%s/python2'" % get.installDIR())
        shelltools.move("%s/python2/usr/lib/python2.7" % get.installDIR(),
                        "%s/usr/lib/" % get.installDIR())
        shelltools.unlinkDir("%s/python2" % get.installDIR())
        return

    autotools.rawInstall("DESTDIR='%s'" % get.installDIR())

    inarytools.dodoc("ABOUT*", "AUTHORS", "COPYING", "NEWS", "README")
コード例 #7
0
def setup():
    shelltools.cd("%s" % get.workDIR())
    shelltools.move("runc-*", "runc")

    shelltools.cd("runc")
    shelltools.move("vendor", "src")

    shelltools.makedirs("src/github.com/opencontainers")
    shelltools.cd("src/github.com/opencontainers")

    shelltools.system("ln -rsf %s/runc ./runc" % get.workDIR())
コード例 #8
0
ファイル: actions.py プロジェクト: Zaryob/SulinRepository
def install():
    shelltools.cd("build-python3")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    shelltools.cd("build-python2")
    autotools.rawInstall("DESTDIR=%s/python2" % get.installDIR())
    shelltools.move("%s/python2/usr/lib/python2.7" % get.installDIR(),
                    "%s/usr/lib/" % get.installDIR())
    shelltools.unlinkDir("%s/python2" % get.installDIR())
    shelltools.cd("..")
    inarytools.dodoc("doc/*.txt", "COPYING", "NEWS", "README.md", "TODO")
コード例 #9
0
ファイル: actions.py プロジェクト: paledega/SulinRepository
def install():
    if get.buildTYPE() == "rebuild_python":
        autotools.rawInstall("DESTDIR='%s/python2'" % get.installDIR())
        shelltools.move("%s/python2/usr/lib/python2.7" % get.installDIR(),
                        "%s/usr/lib/" % get.installDIR())
        shelltools.unlinkDir("%s/python2" % get.installDIR())
        return

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    if get.buildTYPE() == "emul32" or "i686":
        inarytools.removeDir("/usr/share/gtk-doc")
        return

    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO")
コード例 #10
0
ファイル: actions.py プロジェクト: paledega/SulinRepository
def install():
    if get.buildTYPE()=="rebuild_python":
        autotools.rawInstall("DESTDIR={}/python2".format(get.installDIR()))
        shelltools.move("{}/python2/usr/lib/python2*".format(get.installDIR()),
         "{}/usr/lib/".format(get.installDIR()))
        shelltools.unlinkDir("{}/python2/".format(get.installDIR()))
        return

    autotools.install()

    # Create dictionary files
    #shelltools.system("cat /usr/share/cracklib/cracklib-small|%s/usr/sbin/cracklib-packer %s/usr/share/cracklib/pw_dict" % (get.installDIR(),get.installDIR()))

    inarytools.domo("po/tr.po","tr","cracklib.mo")
    inarytools.dodoc("ChangeLog", "README*", "NEWS", "COPYING.LIB", "AUTHORS")
コード例 #11
0
ファイル: actions.py プロジェクト: sulincix/SulinRepository
def install():
    if get.buildTYPE() == "emul32":
        qt.install("INSTALL_ROOT=%s32" % get.installDIR())
        shelltools.move("%s32/usr/lib32" % get.installDIR(), "%s/usr" % get.installDIR())
        return

    inarytools.dodir(qt.libdir)
    qt.install("INSTALL_ROOT=%s" % get.installDIR())

    #I hope qtchooser will manage this issue
    for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()):
        inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin)

    mkspecPath = "%s/mkspecs" %  qt.archdatadir

    inarytools.dodoc("LICENSE.*")
コード例 #12
0
def setup():
    shelltools.cd(get.workDIR())
    for f, l in [("dietlibc-github-c3f1cf67fcc186bb859e64a085bf98aaa6182a82.patch", 1)]:
        shelltools.move(f, WorkDir)
        shelltools.cd(WorkDir)
        shelltools.system("patch --remove-empty-files --no-backup-if-mismatch -p%d -i %s" % (l, f))
        shelltools.cd("..")

    shelltools.cd(WorkDir)
    inarytools.dosed("Makefile", "^prefix\?=.*", "prefix=/usr/lib/dietlibc")
    inarytools.dosed("Makefile", "^(BINDIR=)[^\/]+(.*)", r"\1/usr\2")
    inarytools.dosed("Makefile", "^(MAN1DIR=)[^\/]+(.*)", r"\1/usr/share\2")
    inarytools.dosed("dietfeatures.h", "#define (WANT_LARGEFILE_BACKCOMPAT|WANT_VALGRIND_SUPPORT)", deleteLine=True)
    if not WITHSSP:
        inarytools.dosed("dietfeatures.h", "^(#define WANT_SSP)$", r"// \1")
        inarytools.dosed("dietfeatures.h", ".*(#define WANT_STACKGAP).*", r"\1")
コード例 #13
0
def build():
    shelltools.export("GOPATH", "%s" % get.workDIR())

    shelltools.cd("%s" % get.workDIR())
    shelltools.move("containerd-*", "containerd")

    shelltools.cd("containerd")
    shelltools.move("vendor", "src")

    shelltools.makedirs("src/github.com/containerd")
    shelltools.system("ln -rsf %s/containerd*  src/github.com/containerd" %
                      get.workDIR())

    shelltools.cd("src/github.com/containerd/containerd")

    shelltools.system("LDFLAGS= GOPATH=%s make GIT_COMMIT=209a7fc" %
                      get.curDIR())
コード例 #14
0
ファイル: actions.py プロジェクト: Zaryob/SulinRepository
def install():
    autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix))
    # emul32 stop here
    if get.buildTYPE() == "emul32":
        shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix),
                        "%s/usr/lib32" % (get.installDIR()))
        for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
            inarytools.dosed(
                "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32",
                "usr")
    else:

        # Create /etc/udev/rules.d for backward compatibility
        inarytools.dodir("/etc/udev/rules.d")
        inarytools.dodir("/run/udev")

        # Add man files
        inarytools.doman("man/*.5", "man/*.7", "man/*.8")

        inarytools.dodoc("README*", "NOTES")
コード例 #15
0
ファイル: actions.py プロジェクト: Zaryob/SulinRepository
def install():
    if get.buildTYPE()=="rebuild_python":
        autotools.rawInstall("DESTDIR={}/python2".format(get.installDIR()))
        shelltools.move("{}/python2/usr/lib/python2*".format(get.installDIR()),
         "{}/usr/lib/".format(get.installDIR()))
        shelltools.unlinkDir("{}/python2/".format(get.installDIR()))
        return

    autotools.install()

    shelltools.system("install -v -m644 -D ../cracklib-words-2.9.7.gz \
                         {}/usr/share/dict/cracklib-words.gz".format(get.installDIR()))

    shelltools.system("gunzip -v {}/usr/share/dict/cracklib-words.gz".format(get.installDIR()))
    shelltools.system("ln -v -sf cracklib-words {}/usr/share/dict/words".format(get.installDIR()))
    shelltools.system("echo $(hostname) >>      {}/usr/share/dict/cracklib-extra-words".format(get.installDIR()))
    shelltools.system("install -v -m755 -d      {}/lib/cracklib".format(get.installDIR()))

    # Create dictionary files
    shelltools.system("create-cracklib-dict     {0}/usr/share/dict/cracklib-words \
                        {0}/usr/share/cracklib/pw_dict".format(get.installDIR()))

    inarytools.domo("po/tr.po","tr","cracklib.mo")
    inarytools.dodoc("ChangeLog", "README*", "NEWS", "COPYING.LIB", "AUTHORS")
コード例 #16
0
def setup():
    if get.buildTYPE() != "emul32":
        if not shelltools.can_access_directory("tools/clang"):
            shelltools.system("tar xf ../cfe-%s.src.tar.xz -C tools" %
                              get.srcVERSION())
            shelltools.move("tools/cfe-%s.src" % get.srcVERSION(),
                            "tools/clang")

            shelltools.system(
                "tar xf ../clang-tools-extra-%s.src.tar.xz -C tools" %
                get.srcVERSION())
            shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra")

            shelltools.system("tar xf ../lldb-%s.src.tar.xz -C tools" %
                              get.srcVERSION())
            shelltools.move("tools/lldb-*", "tools/lldb")

        if not shelltools.can_access_directory("projects/compiler-rt"):
            shelltools.system(
                "tar xf ../compiler-rt-%s.src.tar.xz -C projects" %
                get.srcVERSION())
            shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(),
                            "projects/compiler-rt")

            shelltools.export("CC", "gcc")
            shelltools.export("CXX", "g++")

    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "gcc -m32")
        shelltools.export("CXX", "g++ -m32")
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    shelltools.makedirs("inary-build")

    shelltools.cd("inary-build")

    if get.buildTYPE() != "emul32":
        options = "-DCMAKE_C_FLAGS:STRING=-m64 \
                              -DCMAKE_INSTALL_PREFIX=/usr \
                            -DCMAKE_CXX_FLAGS:STRING=-m64 \
                            -DLLVM_TARGET_ARCH:STRING=x86_64 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()

    if get.buildTYPE() == "emul32":
        options = "  -DCMAKE_C_FLAGS:STRING=-m32 \
                            -DCMAKE_INSTALL_PREFIX=/emul32 \
                            -DLLVM_TARGET_ARCH:STRING=i686  \
                            -DLLVM_LIBDIR_SUFFIX=32 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \
                            -DCMAKE_CXX_FLAGS:STRING=-m32"

    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                                        %s \
                                        -DLLVM_ENABLE_FFI=ON \
                                        -DLLVM_BUILD_DOCS=OFF \
                                        -DBUILD_SHARED_LIBS=ON \
                                        -DLLVM_ENABLE_RTTI=ON \
                                        -DLLVM_INCLUDEDIR=/usr/include \
                                        -DLLVM_ENABLE_ASSERTIONS=OFF \
                                        -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
                                        -DENABLE_SHARED=ON" % options,
                         sourceDir="..")
コード例 #17
0
def build():
    shelltools.move("Makefile.def", "Makefile")
    autotools.make("-f Makefile CFLAGS='%s -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'" % get.CFLAGS())
コード例 #18
0
ファイル: actions.py プロジェクト: Zaryob/SulinRepository
def setup():
    shelltools.export("PYTHON", "/usr/bin/python3")
    for dirs in ["tools", "projects"]:
        if not shelltools.can_access_directory(dirs):
            shelltools.makedirs(dirs)

    if not shelltools.can_access_directory("tools/clang"):
        shelltools.system("tar -xvf ../clang-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/clang-%s.src" % get.srcVERSION(), "tools/clang")

        shelltools.system(
            "tar -xvf ../clang-tools-extra-%s.src.tar.xz -C tools" %
            get.srcVERSION())
        shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra")

    if get.buildTYPE() != "emul32":
        shelltools.system("tar -xvf ../lldb-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/lldb-*", "tools/lldb")

    if not shelltools.can_access_directory("tools/polly"):
        shelltools.system("tar -xvf ../polly-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/polly-*", "tools/polly")

    if not shelltools.can_access_directory("projects/compiler-rt"):
        shelltools.system("tar -xvf ../compiler-rt-%s.src.tar.xz -C projects" %
                          get.srcVERSION())
        shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(),
                        "projects/compiler-rt")

        shelltools.export("CC", "gcc")
        shelltools.export("CXX", "g++")

    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "gcc -m32")
        shelltools.export("CXX", "g++ -m32")
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    shelltools.makedirs("inary-build")

    shelltools.cd("inary-build")

    if get.buildTYPE() != "emul32":
        options = "-DCMAKE_C_FLAGS:STRING=-m64 \
                            -DCMAKE_INSTALL_PREFIX=/usr \
                            -DCMAKE_CXX_FLAGS:STRING=-m64 \
                            -DLLVM_TARGET_ARCH:STRING=x86_64 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()

    if get.buildTYPE() == "emul32":
        options = "  -DCMAKE_C_FLAGS:STRING=-m32 \
                            -DCMAKE_INSTALL_PREFIX=/emul32 \
                            -DLLVM_TARGET_ARCH:STRING=i686  \
                            -DLLVM_INCLUDE_TESTS=NO \
                            -DLLVM_LIBDIR_SUFFIX=32 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \
                            -DCMAKE_CXX_FLAGS:STRING=-m32"

    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                             %s \
                             -DLLVM_BUILD_LLVM_DYLIB=ON \
                             -DLLVM_LINK_LLVM_DYLIB=ON \
                             -DLLVM_INSTALL_UTILS=ON \
                             -DLLVM_ENABLE_RTTI=ON \
                             -DLLVM_ENABLE_FFI=ON \
                             -DLLVM_BUILD_TESTS=OFF \
                             -DLLVM_BUILD_DOCS=OFF \
                             -DLLVM_ENABLE_SPHINX=OFF \
                             -DLLVM_ENABLE_DOXYGEN=OFF \
                             -DPOLLY_ENABLE_GPGPU_CODEGEN=ON \
                             -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
                             -DSPHINX_WARNINGS_AS_ERRORS=OFF \
                             -DLLVM_BINUTILS_INCDIR=/usr/include" % options,
                         sourceDir="..")