python-pyblock fix build
This commit is contained in:
@@ -8,11 +8,11 @@ from pisi.actionsapi import autotools
|
|||||||
from pisi.actionsapi import shelltools
|
from pisi.actionsapi import shelltools
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
#WorkDir = "pyblock-0.47-1_20100712"
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.export("CFLAGS", "%s -g -I/usr/include/%s -Wall -Werror -fPIC" % (get.CFLAGS(), get.curPYTHON()))
|
shelltools.export("CFLAGS", "%s -g -I/usr/include/%s -Wall -fPIC" % (get.CFLAGS(), get.curPYTHON()))
|
||||||
shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
|
shelltools.export("LDFLAGS", "%s -shared" % get.LDFLAGS())
|
||||||
|
|
||||||
autotools.make("USESELINUX=0")
|
autotools.make("USESELINUX=0")
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
diff -Nuar pyblock-0.53.orig/Makefile pyblock-0.53/Makefile
|
||||||
|
--- pyblock-0.53.orig/Makefile 2016-03-30 09:41:42.510926755 +0300
|
||||||
|
+++ pyblock-0.53/Makefile 2016-03-30 09:42:32.328924813 +0300
|
||||||
|
@@ -5,19 +5,19 @@
|
||||||
|
DEBUGLIB := "/usr/lib/debug"
|
||||||
|
CC := gcc
|
||||||
|
PYVER := $(shell python -c "import sys; print sys.version[0:3]")
|
||||||
|
-CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -Werror -fPIC $(OPTFLAGS) -fno-strict-aliasing
|
||||||
|
+CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -fPIC $(OPTFLAGS) -fno-strict-aliasing
|
||||||
|
LDFLAGS := -shared
|
||||||
|
|
||||||
|
VERSION := $(shell awk '/Version:/ { print $$2 }' python-pyblock.spec)
|
||||||
|
RELEASE := $(shell awk -F '[ %]' '/Release:/ { print $$2 }' python-pyblock.spec)
|
||||||
|
USESELINUX = 1
|
||||||
|
|
||||||
|
-dm_LIBS = dmraid devmapper
|
||||||
|
+dm_LIBS = devmapper python2.7
|
||||||
|
ifeq (1, $(USESELINUX))
|
||||||
|
dm_LIBS += selinux
|
||||||
|
CFLAGS += -DUSESELINUX=1
|
||||||
|
endif
|
||||||
|
-dmraid_LIBS = dmraid devmapper
|
||||||
|
+dmraid_LIBS = dmraid python2.7
|
||||||
|
|
||||||
|
PYFILES=__init__.py maps.py device.py
|
||||||
|
LIBS = dmmodule.so dmraidmodule.so
|
||||||
Reference in New Issue
Block a user