elfutils split 32bit

This commit is contained in:
bferturk
2016-04-07 23:41:05 +03:00
parent fe6fbd84a0
commit a299a737b8
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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
pisitools.flags.add("-fexceptions")
autotools.autoreconf("-vfi")
# Remove -Wall from default flags. The makefiles enable enough warnings
# 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("\
--disable-nls \
--enable-dwz \
--enable-thread-safety \
--program-prefix=\"eu-\" \
--with-bzlib \
--with-lzma \
--with-zlib \
")
pisitools.cflags.remove("-Wall")
options +=" \
--enable-dwz \
--enable-thread-safety \
--with-bzlib \
--with-lzma"
autotools.configure(options)
def build():
autotools.make()
@@ -35,10 +42,17 @@ def build():
def install():
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
pisitools.remove("/usr/lib/libelf.a")
pisitools.remove("/usr/lib/libasm.a")
pisitools.remove("/usr/lib/libdw.a")
pisitools.remove("/usr/lib/libelf.a")
pisitools.remove("/usr/lib/libasm.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>
</Files>
</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>
<Update release="1">
<Date>2016-03-13</Date>
<Date>2016-04-07</Date>
<Version>0.165</Version>
<Comment>First release</Comment>
<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>
<Description xml:lang="tr">elfutils derlenmiş objeleri işlemek için gereken çeşitli araçlar içerir.</Description>
</Source>
<Package>
<Name>zlib-32bit</Name>
<Summary xml:lang="tr">elfutils için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>