diff options
Diffstat (limited to 'meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch')
| -rw-r--r-- | meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch b/meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch index d12492f022..ec8672107f 100644 --- a/meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch +++ b/meta-oe/recipes-extended/libpwquality/files/add-missing-python-include-dir-for-cross.patch | |||
| @@ -13,28 +13,23 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
| 13 | 2 files changed, 3 insertions(+), 2 deletions(-) | 13 | 2 files changed, 3 insertions(+), 2 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/python/Makefile.am b/python/Makefile.am | 15 | diff --git a/python/Makefile.am b/python/Makefile.am |
| 16 | index abc5cd3..e35ba71 100644 | 16 | index 1d00c0c..52816b2 100644 |
| 17 | --- a/python/Makefile.am | 17 | --- a/python/Makefile.am |
| 18 | +++ b/python/Makefile.am | 18 | +++ b/python/Makefile.am |
| 19 | @@ -14,4 +14,4 @@ all-local: | 19 | @@ -14,7 +14,7 @@ all-local: |
| 20 | CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=. | 20 | CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) |
| 21 | 21 | ||
| 22 | install-exec-local: | 22 | install-exec-local: |
| 23 | - CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix} | 23 | - CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix} |
| 24 | + CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix} --install-lib=${DESTDIR}/${PYTHONSITEDIR} | 24 | + CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix} --install-lib=${DESTDIR}/${PYTHONSITEDIR} |
| 25 | |||
| 26 | clean-local: | ||
| 27 | rm -rf py$(PYTHONREV) | ||
| 25 | diff --git a/python/setup.py.in b/python/setup.py.in | 28 | diff --git a/python/setup.py.in b/python/setup.py.in |
| 26 | index 6457595..d3db0e5 100755 | 29 | index a741b91..6759a95 100755 |
| 27 | --- a/python/setup.py.in | 30 | --- a/python/setup.py.in |
| 28 | +++ b/python/setup.py.in | 31 | +++ b/python/setup.py.in |
| 29 | @@ -6,6 +6,7 @@ | 32 | @@ -33,7 +33,7 @@ class sdist(_sdist): |
| 30 | |||
| 31 | from distutils.core import setup, Extension | ||
| 32 | from distutils.command.build_ext import build_ext as _build_ext | ||
| 33 | +import os | ||
| 34 | |||
| 35 | class build_ext(_build_ext): | ||
| 36 | def genconstants(self, headerfile, outputfile): | ||
| 37 | @@ -23,7 +24,7 @@ class build_ext(_build_ext): | ||
| 38 | 33 | ||
| 39 | pwqmodule = Extension('pwquality', | 34 | pwqmodule = Extension('pwquality', |
| 40 | sources = ['pwquality.c'], | 35 | sources = ['pwquality.c'], |
| @@ -44,5 +39,5 @@ index 6457595..d3db0e5 100755 | |||
| 44 | libraries = ['pwquality']) | 39 | libraries = ['pwquality']) |
| 45 | 40 | ||
| 46 | -- | 41 | -- |
| 47 | 1.9.1 | 42 | 2.17.1 |
| 48 | 43 | ||
