diff options
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch b/meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch index 528864cc93..48cf4aee85 100644 --- a/meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch +++ b/meta/recipes-kernel/systemtap/systemtap/0001-Install-python-modules-to-correct-library-dir.patch | |||
@@ -5,32 +5,52 @@ Subject: [PATCH] Install python modules to correct library dir. | |||
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe-core specific] | 6 | Upstream-Status: Inappropriate [oe-core specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | |||
9 | Add OE's CFLAGS which contains `-fdebug-prefix-map' options to | ||
10 | setup.py | ||
11 | |||
12 | Supply "--root" directory to the "install" command, and use | ||
13 | it as a prefix to strip off the purported filename encoded | ||
14 | in bytecode files. (It strips build path prefix from .pyc files) | ||
15 | |||
16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
8 | --- | 17 | --- |
9 | python/Makefile.am | 4 ++-- | 18 | python/Makefile.am | 8 ++++++-- |
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | 19 | 1 file changed, 6 insertions(+), 2 deletions(-) |
11 | 20 | ||
12 | diff --git a/python/Makefile.am b/python/Makefile.am | 21 | diff --git a/python/Makefile.am b/python/Makefile.am |
13 | index a254480f9..efe9f3c01 100644 | 22 | index a254480..578602f 100644 |
14 | --- a/python/Makefile.am | 23 | --- a/python/Makefile.am |
15 | +++ b/python/Makefile.am | 24 | +++ b/python/Makefile.am |
16 | @@ -47,7 +47,7 @@ install-exec-local: | 25 | @@ -8,6 +8,10 @@ AUTOMAKE_OPTIONS = subdir-objects |
26 | AM_CPPFLAGS = -I$(srcdir)/../includes | ||
27 | AM_CPPFLAGS += -I$(abs_builddir)/../includes/sys | ||
28 | |||
29 | +# Add OE's CFLAGS which contains `-fdebug-prefix-map' options to | ||
30 | +# fix build path issue | ||
31 | +AM_CPPFLAGS += $(CFLAGS) | ||
32 | + | ||
33 | # Any script in the following variable will get byte-compiled at | ||
34 | # install time. | ||
35 | pkglibexecpython_PYTHON = | ||
36 | @@ -47,7 +51,7 @@ install-exec-local: | ||
17 | if HAVE_PYTHON2_PROBES | 37 | if HAVE_PYTHON2_PROBES |
18 | (cd $(srcdir); CFLAGS="$(AM_CPPFLAGS)" $(PYTHON) setup.py build \ | 38 | (cd $(srcdir); CFLAGS="$(AM_CPPFLAGS)" $(PYTHON) setup.py build \ |
19 | --build-base $(shell readlink -f $(builddir))/py2build \ | 39 | --build-base $(shell readlink -f $(builddir))/py2build \ |
20 | - install --prefix $(DESTDIR)$(prefix) \ | 40 | - install --prefix $(DESTDIR)$(prefix) \ |
21 | + install --prefix $(DESTDIR)$(prefix) --install-lib=$(DESTDIR)${pythondir} \ | 41 | + install --root $(DESTDIR) --prefix $(prefix) --prefix $(prefix) --install-lib=${pythondir} \ |
22 | --single-version-externally-managed \ | 42 | --single-version-externally-managed \ |
23 | --record $(shell readlink -f $(builddir))/py2build/install_files.txt \ | 43 | --record $(shell readlink -f $(builddir))/py2build/install_files.txt \ |
24 | --verbose) | 44 | --verbose) |
25 | @@ -55,7 +55,7 @@ endif | 45 | @@ -55,7 +59,7 @@ endif |
26 | if HAVE_PYTHON3_PROBES | 46 | if HAVE_PYTHON3_PROBES |
27 | (cd $(srcdir); CFLAGS="$(AM_CPPFLAGS)" $(PYTHON3) setup.py build \ | 47 | (cd $(srcdir); CFLAGS="$(AM_CPPFLAGS)" $(PYTHON3) setup.py build \ |
28 | --build-base $(shell readlink -f $(builddir))/py3build \ | 48 | --build-base $(shell readlink -f $(builddir))/py3build \ |
29 | - install --prefix $(DESTDIR)$(prefix) \ | 49 | - install --prefix $(DESTDIR)$(prefix) \ |
30 | + install --prefix $(DESTDIR)$(prefix) --install-lib=$(DESTDIR)${python3dir} \ | 50 | + install --root $(DESTDIR) --prefix $(prefix) --install-lib=${python3dir} \ |
31 | --single-version-externally-managed \ | 51 | --single-version-externally-managed \ |
32 | --record $(shell readlink -f $(builddir))/py3build/install_files.txt \ | 52 | --record $(shell readlink -f $(builddir))/py3build/install_files.txt \ |
33 | --verbose) | 53 | --verbose) |
34 | -- | 54 | -- |
35 | 2.11.0 | 55 | 2.7.4 |
36 | 56 | ||