Merge pull request #392 from bferturk/master

elfutils split 32bit
This commit is contained in:
yusuf
2016-04-08 07:06:07 +03:00
3 changed files with 55 additions and 19 deletions
+32 -18
View File
@@ -7,25 +7,32 @@
from pisi.actionsapi import get from pisi.actionsapi import get
from pisi.actionsapi import autotools from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup(): def setup():
pisitools.flags.add("-fexceptions")
autotools.autoreconf("-vfi")
# Remove -Wall from default flags. The makefiles enable enough warnings # Remove -Wall from default flags. The makefiles enable enough warnings
# themselves, and they use -Werror. # themselves, and they use -Werror.
pisitools.cflags.remove("-Wall")
options ='-disable-nls --program-prefix=\"eu-\" --with-zlib'
if get.buildTYPE() == "emul32":
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
elif get.ARCH() == "x86_64":
pisitools.flags.add("-fexceptions")
autotools.autoreconf("-vfi")
autotools.configure("\ pisitools.cflags.remove("-Wall")
--disable-nls \
--enable-dwz \ options +=" \
--enable-thread-safety \ --enable-dwz \
--program-prefix=\"eu-\" \ --enable-thread-safety \
--with-bzlib \ --with-bzlib \
--with-lzma \ --with-lzma"
--with-zlib \
") autotools.configure(options)
def build(): def build():
autotools.make() autotools.make()
@@ -35,10 +42,17 @@ def build():
def install(): def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.remove("/usr/lib32/libelf.a")
pisitools.remove("/usr/lib32/libasm.a")
pisitools.remove("/usr/lib32/libdw.a")
elif get.ARCH() == "x86_64":
# Don't remove all the static libs as libebl.a is needed by other packages # Don't remove all the static libs as libebl.a is needed by other packages
pisitools.remove("/usr/lib/libelf.a") pisitools.remove("/usr/lib/libelf.a")
pisitools.remove("/usr/lib/libasm.a") pisitools.remove("/usr/lib/libasm.a")
pisitools.remove("/usr/lib/libdw.a") pisitools.remove("/usr/lib/libdw.a")
pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "NOTES", "README", "THANKS", "TODO") pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "NOTES", "README", "THANKS", "TODO")
+19 -1
View File
@@ -37,10 +37,28 @@
<Path fileType="header">/usr/include</Path> <Path fileType="header">/usr/include</Path>
</Files> </Files>
</Package> </Package>
<Package>
<Name>elfutils-32bit</Name>
<Summary>32-bit shared libraries for elfutils</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>xz-32bit</Dependency>
<Dependency>zlib-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>xz-32bit</Dependency>
<Dependency>zlib-32bit</Dependency>
<Dependency release="current">elfutils</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History> <History>
<Update release="1"> <Update release="1">
<Date>2016-03-13</Date> <Date>2016-04-07</Date>
<Version>0.165</Version> <Version>0.165</Version>
<Comment>First release</Comment> <Comment>First release</Comment>
<Name>Ertuğrul Erata</Name> <Name>Ertuğrul Erata</Name>
+4
View File
@@ -5,4 +5,8 @@
<Summary xml:lang="tr">Derlenmiş objeleri işlemek için gereken aletler koleksiyonu</Summary> <Summary xml:lang="tr">Derlenmiş objeleri işlemek için gereken aletler koleksiyonu</Summary>
<Description xml:lang="tr">elfutils derlenmiş objeleri işlemek için gereken çeşitli araçlar içerir.</Description> <Description xml:lang="tr">elfutils derlenmiş objeleri işlemek için gereken çeşitli araçlar içerir.</Description>
</Source> </Source>
<Package>
<Name>elfutils-32bit</Name>
<Summary xml:lang="tr">elfutils için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI> </PISI>