From 66decb6eef9df18c6e590e796c568f60afcbaaaf Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 2 Mar 2021 23:46:26 +0300 Subject: [PATCH] json-c rebuild --- system/base/json-c/actions.py | 13 ++++++++++--- system/base/json-c/pspec.xml | 5 ++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/system/base/json-c/actions.py b/system/base/json-c/actions.py index 61fcb210..68216536 100644 --- a/system/base/json-c/actions.py +++ b/system/base/json-c/actions.py @@ -10,18 +10,23 @@ from pisi.actionsapi import shelltools from pisi.actionsapi import cmaketools from pisi.actionsapi import get + +LIBDIR = "lib32" if get.buildTYPE() == "emul32" else "lib" + def setup(): shelltools.makedirs("build") shelltools.cd("build") options = "-DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBDIR=%s \ -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_STATIC_LIBS=OFF" + -DBUILD_STATIC_LIBS=OFF \ + " % (LIBDIR) if get.buildTYPE() == "emul32": shelltools.export("CC", "gcc -m32") shelltools.export("CXX", "g++ -m32") - options = " -DCMAKE_INSTALL_LIBDIR=lib32 -DBUILD_STATIC_LIBS=OFF" + options += " -DBUILD_STATIC_LIBS=OFF \ + " cmaketools.configure(options, sourceDir=".." ) @@ -32,6 +37,8 @@ def build(): def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + if get.buildTYPE() == "emul32": + return shelltools.cd("..") diff --git a/system/base/json-c/pspec.xml b/system/base/json-c/pspec.xml index 805c5ed7..f5beb864 100644 --- a/system/base/json-c/pspec.xml +++ b/system/base/json-c/pspec.xml @@ -50,10 +50,9 @@ json-c-32bit emul32 32-bit shared libraries for json-c - - - emul32 + + /usr/lib32