From 5e780f2aa213c68ea88c345114dae45d1b0ba673 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Aug 22 2011 13:46:21 +0000 Subject: Update to upstream 2.1.2 2011-08-17 * print error debug info for buggy fc * introduce semanage_set_root and friends * throw exceptions in python rather than return * python3 support. * patch for MCS/MLS in user files --- diff --git a/libsemanage-rhat.patch b/libsemanage-rhat.patch index 1e791c8..cca964d 100644 --- a/libsemanage-rhat.patch +++ b/libsemanage-rhat.patch @@ -1,3 +1,26 @@ +diff --git a/libsemanage/src/Makefile b/libsemanage/src/Makefile +index d21e972..d9120c0 100644 +--- a/libsemanage/src/Makefile ++++ b/libsemanage/src/Makefile +@@ -10,7 +10,8 @@ LIBDIR ?= $(PREFIX)/lib + SHLIBDIR ?= $(PREFIX)/lib + INCLUDEDIR ?= $(PREFIX)/include + PYLIBVER ?= $(shell $(PYTHON) -c 'import sys;print("python%d.%d" % sys.version_info[0:2])') +-PYINC ?= $(shell pkg-config --cflags `basename $(PYTHON)`) ++PYINC ?= $(shell pkg-config --cflags $(PYPREFIX)) ++PYTHONLIBDIR ?= $(shell pkg-config --libs $(PYPREFIX)) + PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER) + RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")') + RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM') +@@ -76,7 +77,7 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT) + $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -fPIC -DSHARED -c -o $@ $< + + $(SWIGSO): $(SWIGLOBJ) +- $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@,-z,defs ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs + + $(SWIGRUBYSO): $(SWIGRUBYLOBJ) + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@ diff --git a/libsemanage/src/direct_api.c b/libsemanage/src/direct_api.c index aac1974..3dfa279 100644 --- a/libsemanage/src/direct_api.c diff --git a/libsemanage.spec b/libsemanage.spec index 2d17a3a..8908dd1 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -4,8 +4,8 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")} %endif -%define libsepolver 2.1.0-1 -%define libselinuxver 2.1.0-1 +%define libsepolver 2.1.2-1 +%define libselinuxver 2.1.4-1 Summary: SELinux binary policy manipulation library Name: libsemanage