Merge pull request #1171 from 4fury-c3440d8/eudev
eudev: rebuild 32bit pkgconfig.
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Copyright 2015 TUBITAK/UEKAE
|
# Licensed under the GNU General Public License, version 3.
|
||||||
# Licensed under the GNU General Public License, version 2.
|
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
# See the file http://www.gnu.org/copyleft/gpl.txt.
|
|
||||||
|
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
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
|
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
suffix = "32" if get.buildTYPE() == "emul32" else ""
|
suffix = "32" if get.buildTYPE() == "emul32" else ""
|
||||||
@@ -15,7 +14,7 @@ suffix = "32" if get.buildTYPE() == "emul32" else ""
|
|||||||
def setup():
|
def setup():
|
||||||
autotools.autoreconf("-fis")
|
autotools.autoreconf("-fis")
|
||||||
|
|
||||||
autotools.configure("--prefix=/usr \
|
j = "--prefix=/usr \
|
||||||
--bindir=/sbin \
|
--bindir=/sbin \
|
||||||
--sbindir=/sbin \
|
--sbindir=/sbin \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
@@ -25,7 +24,12 @@ def setup():
|
|||||||
--with-rootlibdir=/lib \
|
--with-rootlibdir=/lib \
|
||||||
--enable-split-usr \
|
--enable-split-usr \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--disable-manpages ")
|
--disable-manpages "
|
||||||
|
|
||||||
|
if get.buildTYPE() == "emul32":
|
||||||
|
j += "--libdir=/usr/lib32 --libexecdir=/lib32 --with-rootlibdir=/lib32"
|
||||||
|
|
||||||
|
autotools.configure(j)
|
||||||
|
|
||||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||||
|
|
||||||
@@ -38,14 +42,14 @@ def install():
|
|||||||
|
|
||||||
# emul32 stop here
|
# emul32 stop here
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
shelltools.move("%s%s/lib" % (get.installDIR(), suffix), "%s/lib%s" % (get.installDIR(), suffix))
|
shelltools.move("%s%s/lib32" % (get.installDIR(), suffix), "%s/lib%s" % (get.installDIR(), suffix))
|
||||||
shelltools.move("%s%s/usr/lib" % (get.installDIR(), suffix), "%s/usr/lib%s" % (get.installDIR(), suffix))
|
shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix), "%s/usr/lib%s" % (get.installDIR(), suffix))
|
||||||
#for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
|
#for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
|
||||||
# pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr")
|
# pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr")
|
||||||
#shelltools.unlinkDir("%s%s" % (get.installDIR(), suffix))
|
#shelltools.unlinkDir("%s%s" % (get.installDIR(), suffix))
|
||||||
shelltools.unlink("%s/usr/lib%s/libudev.so" % (get.installDIR(), suffix))
|
shelltools.unlink("%s/usr/lib%s/libudev.so" % (get.installDIR(), suffix))
|
||||||
pisitools.dosym("/lib%s/libudev.so.1.6.3" % suffix, "/usr/lib%s/libudev.so" % suffix)
|
pisitools.dosym("/lib%s/libudev.so.1.6.3" % suffix, "/usr/lib%s/libudev.so" % suffix)
|
||||||
shelltools.unlinkDir("%s/usr/lib%s/pkgconfig" % (get.installDIR(), suffix))
|
#shelltools.unlinkDir("%s/usr/lib%s/pkgconfig" % (get.installDIR(), suffix))
|
||||||
shelltools.unlinkDir("%s/lib%s/udev" % (get.installDIR(), suffix))
|
shelltools.unlinkDir("%s/lib%s/udev" % (get.installDIR(), suffix))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<History>
|
<History>
|
||||||
<Update release="13">
|
<Update release="13">
|
||||||
<Date>2020-12-09</Date>
|
<Date>2021-02-17</Date>
|
||||||
<Version>3.2.9</Version>
|
<Version>3.2.9</Version>
|
||||||
<Comment>Version bump.</Comment>
|
<Comment>Version bump.</Comment>
|
||||||
<Name>Mustafa Cinasal</Name>
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
|||||||
Reference in New Issue
Block a user