def setup(): shelltools.system("./legal.sh") autotools.autoreconf("-vif") autotools.configure("--disable-static") # for fix unused dependency inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
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) ")
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))
def setup(): # dont waste time building examples, docs and tests shelltools.system("sed -e '/^libdocdir =/ s/$(book_name)/libsigc++-2.10.2/' -i docs/Makefile.in") autotools.configure("--disable-static") inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def setup(): # -fno-strict-aliasing workarounds some aliasing violations, see: https://bugzilla.redhat.com/show_bug.cgi?id=487844 --> shelltools.system('nspr/configure \ --prefix=/usr \ --disable-debug \ %s \ --enable-optimize="%s -fno-strict-aliasing"' % ("--enable-64bit" if get.ARCH() == "x86_64" else "", get.CFLAGS()))
def setup(): shelltools.system("grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'") shelltools.system( "NOCONFIGURE=1 ./autogen.sh -enable-wifi --enable-ppp --enable-static --with-gnu-ld" ) mesontools.meson_configure("-Dlibaudit=yes \ -Dlibpsl=true \ -Dnmtui=true \ -Dovs=true \ -Dsession_tracking_consolekit=false \ -Dmodify_system=true \ -Dpolkit_agent=true \ -Dconfig_plugins_default=keyfile \ -Diwd=true \ -Dnm_cloud_setup=true \ -Dbluez5_dun=true \ -Debpf=true \ -Dvapi=true \ -Ddocs=true \ -Dmore_asserts=no \ -Dmore_logging=false \ -Dppp=true \ -Dselinux=false \ -Dudev_dir=/lib/udev \ -Dsession_tracking=elogind \ -Dmodem_manager=true \ -Dsystemdsystemunitdir=no \ -Dsystemd_journal=false \ -Dqt=false ")
def setup(): shelltools.cd("src") shelltools.system( "sed -i -e 's/^YYSTYPE yylval/&={0}/' lib/krb5/krb/deltat.c") inarytools.dosed("util/ac_check_krb5.m4", "(KRB5ROOT=\/usr)\/local", r"\1") autotools.autoreconf("-fi") # Fix pthread linking #inarytools.dosed("configure", "-lthread", "-lpthread") #inarytools.dosed("configure", "-pthread", "-lpthread") autotools.configure("--localstatedir=/var/lib \ --without-tcl \ --without-hesiod \ --enable-shared \ --enable-kdc-lookaside-cache \ --without-system-verto \ --disable-rpath \ --with-system-et \ --with-system-ss \ --enable-dns-for-realm") # Fix krb5-config script to remove rpaths and CFLAGS #inarytools.dosed("krb5-config", "^CC_LINK=.*", "CC_LINK='$(CC) $(PROG_LIBPATH)'") # Fix unused dependency inarytools.dosed("config/shlib.conf", " -shared ", " -Wl,--as-needed -shared ")
def setup(): shelltools.unlink("m4/glib-gettext.m4") shelltools.system("./autogen.sh") autotools.configure("--prefix=/usr \ --disable-static \ --enable-cli \ --disable-daemon")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) inarytools.remove("/usr/bin/perl") # Conflicts with perl-Module-Build # inarytools.remove("/usr/bin/config_data") inarytools.dosym("/usr/bin/perl%s" % get.srcVERSION(), "/usr/bin/perl") # Perl5 library # NEEDS MODIFICATION FOR NEW VERSION inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so") inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5") inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26") inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26.1") # Docs inarytools.dodir("/usr/share/doc/%s/html" % get.srcNAME()) shelltools.system('LD_LIBRARY_PATH=%s ./perl installhtml \ --podroot="." \ --podpath="lib:ext:pod:vms" \ --recurse \ --htmldir="%s/usr/share/doc/%s/html"' % (get.curDIR(), get.installDIR(), get.srcNAME())) perlmodules.removePodfiles() perlmodules.removePacklist() inarytools.dodoc("Changes*", "Artistic", "Copying", "README", "AUTHORS")
def install(): if get.buildTYPE() == "emul32": autotools.rawInstall( "-C src \ lib_LTLIBRARIES=\"%s\" \ DESTDIR=%s" % (emul32_libs, get.installDIR()), "install-libLTLIBRARIES") autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-pkgconfigDATA") return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Disable autospawn by default shelltools.system( "sed -e '/autospawn/iautospawn=yes' -i '%s/etc/pulse/client.conf'" % get.installDIR()) # Speed up pulseaudio shutdown # Lower resample quality, saves CPU shelltools.system("sed -e '/exit-idle-time/iexit-idle-time=0' \ -e '/resample-method/iresample-method=speex-float-0' \ -i '%s/etc/pulse/daemon.conf'" % get.installDIR()) # Needed for service.py inarytools.dodir("/run/pulse") inarytools.dodir("/var/lib/pulse") # HAL is no longer supported by default inarytools.removeDir("/etc/dbus-1") inarytools.dodoc("README", "LICENSE", "GPL", "LGPL") inarytools.dohtml("doxygen/html/*")
def install(): shelltools.system("make -C unix DESTDIR=%s install" % get.installDIR()) # Collect private headers, 3rd party apps like Tile depends on this inarytools.dodir("/usr/include/tk-private/generic") inarytools.dodir("/usr/include/tk-private/unix") shelltools.copy("unix/*.h", "%s/usr/include/tk-private/unix" % get.installDIR()) shelltools.copy("generic/*.h", "%s/usr/include/tk-private/generic" % get.installDIR()) # Remove duplicated headers inarytools.remove("/usr/include/tk-private/generic/tk.h") inarytools.remove("/usr/include/tk-private/generic/tkDecls.h") inarytools.remove("/usr/include/tk-private/generic/tkPlatDecls.h") # Remove tmp path from tclConfig.sh inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/") inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), get.curDIR(), "/usr/include/tk-private") inarytools.dosym("wish8.6", "/usr/bin/wish") inarytools.dodoc("ChangeLog", "changes", "license.terms", "README.md")
def setup(): shelltools.export("LANGUAGE", "C") shelltools.export("LANG", "C") shelltools.export("LC_ALL", "C") shelltools.export("CC", "gcc %s " % defaultflags) shelltools.export("CXX", "g++ %s " % defaultflags) shelltools.export("CFLAGS", defaultflags) shelltools.export("CXXFLAGS", defaultflags) shelltools.makedirs("build") shelltools.cd("build") options = "--prefix=/usr \ --libdir=/usr/lib \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexecdir=/usr/lib/misc \ --with-bugurl=http://gitlab.com/sulinos/main/issues \ --enable-add-ons \ --enable-kernel=3.2.0 \ --enable-static-pie \ --enable-bind-now --disable-profile \ --enable-stackguard-randomization \ --enable-lock-elision \ --enable-multi-arch \ --disable-werror" if get.buildTYPE() == "emul32": options += "\ --libdir=/usr/lib32 \ --enable-multi-arch i686-pc-linux-gnu \ " shelltools.system("../configure %s" % options)
def setup(): shelltools.system("sed -i 's|$(datadir)/pkgconfig|$(libdir)/pkgconfig|g' Makefile.in") shelltools.system("sed -i 's|$(datadir)/pkgconfig|$(libdir)/pkgconfig|g' Makefile.am") autotools.autoreconf("-vif") autotools.configure("--prefix=/usr \ --docdir=/usr/share/doc/xorg-proto")
def setup(): shelltools.system(" NOCONFIGURE=1 ./autogen.sh") autotools.configure(" --disable-gtk-doc \ --disable-static \ --disable-schemas-compile \ --enable-compile-warnings=minimum")
def setup(): # shelltools.system("sed -i -e '/gets is a/d' lib/stdio.in.h") shelltools.system("sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c") shelltools.system("echo '#define _IO_IN_BACKUP 0x100' >> lib/stdio-impl.h") autotools.configure("--enable-nls \ --enable-changeword")
def setup(): # shelltools.export("MOC5", "moc-qt5") shelltools.system("NOCONFIGURE=1 ./autogen.sh") autotools.configure("--disable-tests \ --enable-vala \ --with-greeter-session=lightdm-gtk-greeter \ --with-greeter-user='******' ")
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()))
def setup(): shelltools.system("./autogen.sh") autotools.autoreconf("-fi") autotools.configure("--prefix=/usr \ --libexecdir=/usr/lib") inarytools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def testSystem(self): from inary.actionsapi.shelltools import system self.assertEqual(os.path.exists('tests/systemtest'), False) system('touch tests/systemtest') self.assertEqual(os.path.exists('tests/systemtest'), True) os.remove('tests/systemtest')
def setup(): shelltools.makedirs("build-gtk2") shelltools.makedirs("build-gtk3") autotools.autoreconf("-fi") shelltools.cd("build-gtk2") shelltools.system("../configure \ --prefix=/usr \ --sysconfdir=/etc \ --enable-debug \ --enable-udisks \ --enable-demo \ --with-gtk=2") inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") shelltools.cd("..") shelltools.cd("build-gtk3") shelltools.system("../configure \ --prefix=/usr \ --sysconfdir=/etc \ --enable-debug \ --enable-udisks \ --enable-demo \ --with-gtk=3") inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def install(): autotools.make("install DESTDIR={}".format(get.installDIR())) shelltools.unlink("{}/usr/share/icons/hicolor/icon-theme.cache".format( get.installDIR())) shelltools.system("install -D -m0644 org.gnome.gparted.policy \ {}/usr/share/polkit-1/actions/org.gnome.gparted.policy".format( get.installDIR()))
def setup(): shelltools.system("./autogen.sh") autotools.configure("--disable-static \ --enable-more-warnings=yes \ --with-udev-base-dir=/lib/udev \ --enable-gtk-doc \ --with-polkit=permissive")
def install(): kerneltools.install() # add objtool for external module building and enabled VALIDATION_STACK option inarytools.insinto( "/usr/src/linux-headers-%s-sulinos/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR()) # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config inarytools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo( "linux.preset", "# mkinitcpio preset file for the 'linux' package\n" + 'ALL_config="/etc/mkinitcpio.conf"\n' + 'ALL_kver="/boot/kernel-%s"\n\n' % get.srcVERSION() + "PRESETS=('default' 'fallback') \n\n" + '#default_config="/etc/mkinitcpio.conf"\n' + 'default_image="/boot/initramfs-%s.img"\n' % get.srcVERSION() + '#default_options=""\n\n' + '#fallback_config="/etc/mkinitcpio.conf"\n' + 'fallback_image="/boot/initramfs-%s-fallback.img"\n' % get.srcVERSION() + 'fallback_options="-S autodetect"\n') inarytools.insinto("/etc/mkinitcpio.d", "linux.preset")
def setup(): shelltools.export("CFLAGS", flags) shelltools.system("./autogen.sh") autotools.configure("--enable-nls \ --disable-rpath")
def autogen(noconfigure=True): """generates configure script from autogen""" if noconfigure: if system('NOCONFIGURE=1 bash autogen.sh'): raise RunTimeError(_('Running \'autogen.sh\' script failed.')) else: if system('bash autogen.sh'): raise RunTimeError(_('Running \'autogen.sh\' script failed.'))
def install(): mesontools.ninja_install() shelltools.system( "sed -i 's/OnlyShowIn=.*/OnlyShowIn=GNOME;/g' {}/etc/xdg/autostart/tracker-miner-fs-3.desktop" .format(get.installDIR())) shelltools.system( "echo Hidden=true >> {}/etc/xdg/autostart/tracker-miner-fs-3.desktop". format(get.installDIR()))
def setup(): inarytools.flags.remove("-DNDEBUG") shelltools.system("./autogen.sh") autotools.configure("--prefix=/usr \ --disable-static \ --enable-shared") inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build(): shelltools.cd("build") shelltools.system("cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ ..") autotools.make()
def setup(): shelltools.system('sed -i -e "/AC_PATH_XTRA/d" configure.in') autotools.autoreconf("-fi") autotools.configure("--disable-static") # Put flags in front of the libs. Needed for --as-needed. replace = (r"(\\\$deplibs) (\\\$compiler_flags)", r"\2 \1") inarytools.dosed("libtool", *replace)
def setup(): shelltootls shelltools.system("sed -i 's/cp -p/cp/' build/make/Makefile ") shelltools.makedirs("libvpx-build") shelltools.cd("libvpx-build") shelltools.system("../configure --prefix=/usr \ --enable-shared \ --disable-static ")