diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-02-13 23:56:38 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-02-14 17:35:37 +0100 |
commit | 7958a6be5cbac7ab779e6b6693ac316d4800d312 (patch) | |
tree | ef127d3f979923da7741089ac78b7245951ce672 /patches/libselinux-2.1.12 | |
parent | 44332f09af6777c8f79113a23d455c6f13e31893 (diff) | |
download | ptxdist-7958a6be5cbac7ab779e6b6693ac316d4800d312.tar.gz ptxdist-7958a6be5cbac7ab779e6b6693ac316d4800d312.tar.xz |
libselinux: add support for python wrapper
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'patches/libselinux-2.1.12')
-rw-r--r-- | patches/libselinux-2.1.12/0006-makefile-use-python-config-instead-of-pkg-config.patch | 24 | ||||
-rw-r--r-- | patches/libselinux-2.1.12/series | 3 |
2 files changed, 26 insertions, 1 deletions
diff --git a/patches/libselinux-2.1.12/0006-makefile-use-python-config-instead-of-pkg-config.patch b/patches/libselinux-2.1.12/0006-makefile-use-python-config-instead-of-pkg-config.patch new file mode 100644 index 000000000..907c79880 --- /dev/null +++ b/patches/libselinux-2.1.12/0006-makefile-use-python-config-instead-of-pkg-config.patch @@ -0,0 +1,24 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Wed, 13 Feb 2013 23:14:46 +0100 +Subject: [PATCH] makefile: use python-config instead of pkg-config + +...because our python has no pkg-config yet. + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 109d372..e963009 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -12,7 +12,7 @@ LIBDIR ?= $(PREFIX)/lib + SHLIBDIR ?= $(DESTDIR)/lib + INCLUDEDIR ?= $(PREFIX)/include + PYLIBVER ?= $(shell $(PYTHON) -c 'import sys;print("python%d.%d" % sys.version_info[0:2])') +-PYINC ?= $(shell pkg-config --cflags $(PYPREFIX)) ++PYINC ?= $(shell $(PYTHON)-config --cflags) + PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER) + RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")') + RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM') diff --git a/patches/libselinux-2.1.12/series b/patches/libselinux-2.1.12/series index 2fa79069a..ecf97d5d7 100644 --- a/patches/libselinux-2.1.12/series +++ b/patches/libselinux-2.1.12/series @@ -5,4 +5,5 @@ 0003-makefile-remove-host-path-from-list-of-linker-search.patch 0004-makefile-fix-linking-to-shlib-if-prefix.patch 0005-makefile-move-lpcre-from-beginning-of-gcc-linker-cal.patch -# c9b08d5ea990e48e11ad41489377128a - git-ptx-patches magic +0006-makefile-use-python-config-instead-of-pkg-config.patch +# de4667aca3c8dbc6dbdf0d2d76be078e - git-ptx-patches magic |