diff options
5 files changed, 20 insertions, 45 deletions
diff --git a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch index 46d4dbde4d..6a7b1bf31d 100644 --- a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch +++ b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch | |||
@@ -9,12 +9,12 @@ Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | |||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
10 | 10 | ||
11 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 11 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
12 | index 7c66b39..1489ef6 100644 | 12 | index 230c87b..e699e83 100644 |
13 | --- a/CMakeLists.txt | 13 | --- a/CMakeLists.txt |
14 | +++ b/CMakeLists.txt | 14 | +++ b/CMakeLists.txt |
15 | @@ -19,7 +19,7 @@ else(NOT SPHINX_EXECUTABLE-NOTFOUND) | 15 | @@ -19,7 +19,7 @@ else(SPHINX_EXECUTABLE STREQUAL "SPHINX_EXECUTABLE-NOTFOUND") |
16 | message(STATUS "Could NOT find sphinx-build.") | 16 | message(STATUS "Found sphinx-build: ${SPHINX_EXECUTABLE}") |
17 | endif(NOT SPHINX_EXECUTABLE-NOTFOUND) | 17 | endif(SPHINX_EXECUTABLE STREQUAL "SPHINX_EXECUTABLE-NOTFOUND") |
18 | 18 | ||
19 | -execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(), end='')" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 19 | -execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(), end='')" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
20 | +#execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(), end='')" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 20 | +#execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(), end='')" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
@@ -22,5 +22,5 @@ index 7c66b39..1489ef6 100644 | |||
22 | execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write('%s.%s' % (sys.version_info.major, sys.version_info.minor))" OUTPUT_VARIABLE PYTHON_MAJOR_DOT_MINOR_VERSION) | 22 | execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write('%s.%s' % (sys.version_info.major, sys.version_info.minor))" OUTPUT_VARIABLE PYTHON_MAJOR_DOT_MINOR_VERSION) |
23 | message(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") | 23 | message(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") |
24 | -- | 24 | -- |
25 | 2.7.4 | 25 | 2.17.1 |
26 | 26 | ||
diff --git a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Run-python-scripts-using-env.patch b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Run-python-scripts-using-env.patch deleted file mode 100644 index 75b6b8fd99..0000000000 --- a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-Run-python-scripts-using-env.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | From 15d0afcfa4868b7b072b3434bac0064617d61f99 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Tue, 19 Dec 2017 14:53:14 +0900 | ||
4 | Subject: [PATCH] Run python scripts using env | ||
5 | |||
6 | Otherwise the build tools hardcode the python path into them. | ||
7 | |||
8 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
9 | --- | ||
10 | bin/dnfdragora | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/bin/dnfdragora b/bin/dnfdragora | ||
14 | index b8e0550..cd80f7f 100755 | ||
15 | --- a/bin/dnfdragora | ||
16 | +++ b/bin/dnfdragora | ||
17 | @@ -1,4 +1,4 @@ | ||
18 | -#!/usr/bin/python3 | ||
19 | +#!/usr/bin/env python3 | ||
20 | # vim: set et ts=4 sw=4: | ||
21 | # Copyright 2016-2017 Angelo Naselli <anaselli@linux.it> | ||
22 | # | ||
23 | -- | ||
24 | 2.7.4 | ||
25 | |||
diff --git a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-To-fix-error-when-do_package.patch b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-To-fix-error-when-do_package.patch index 90ce1d0ac3..bef471189f 100644 --- a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-To-fix-error-when-do_package.patch +++ b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-To-fix-error-when-do_package.patch | |||
@@ -3,7 +3,8 @@ From: Lei Maohui <leimaohui@cn.fujitsu.com> | |||
3 | Date: Tue, 19 Dec 2017 11:15:29 +0900 | 3 | Date: Tue, 19 Dec 2017 11:15:29 +0900 |
4 | Subject: [PATCH] To fix error when do_package | 4 | Subject: [PATCH] To fix error when do_package |
5 | 5 | ||
6 | QA Issue: nativesdk-dnfdragora: Files/directories were installed but not shipped in any package: | 6 | QA Issue: nativesdk-dnfdragora: Files/directories were installed but not |
7 | shipped in any package: | ||
7 | /etc | 8 | /etc |
8 | /etc/dnfdragora | 9 | /etc/dnfdragora |
9 | /etc/dnfdragora/dnfdragora.yaml | 10 | /etc/dnfdragora/dnfdragora.yaml |
@@ -14,18 +15,18 @@ Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | |||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 16 | ||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 17 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
17 | index 7c66b39..a5659f7 100644 | 18 | index 230c87b..1b8d800 100644 |
18 | --- a/CMakeLists.txt | 19 | --- a/CMakeLists.txt |
19 | +++ b/CMakeLists.txt | 20 | +++ b/CMakeLists.txt |
20 | @@ -52,7 +52,7 @@ endif(ENABLE_COMPS) | 21 | @@ -68,7 +68,7 @@ endif(ENABLE_COMPS) |
21 | set(CMAKE_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}/bin") | 22 | set(CMAKE_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}/bin") |
22 | set(CMAKE_INSTALL_DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share") | 23 | set(CMAKE_INSTALL_DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share") |
23 | set(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DATAROOTDIR}/locale") | 24 | set(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DATAROOTDIR}/locale") |
24 | -set(CMAKE_INSTALL_FULL_SYSCONFDIR "/etc") | 25 | -set(CMAKE_INSTALL_FULL_SYSCONFDIR "/etc" CACHE PATH "sysconfig directory (default /etc)") |
25 | +set(CMAKE_INSTALL_FULL_SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/../etc") | 26 | +set(CMAKE_INSTALL_FULL_SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/../etc" CACHE PATH "sysconfig directory (default /etc)") |
26 | 27 | ||
27 | # Configure files | 28 | # Configure files |
28 | configure_file(${CMAKE_SOURCE_DIR}/etc/dnfdragora.yaml.in ${CMAKE_BINARY_DIR}/etc/dnfdragora.yaml @ONLY) | 29 | configure_file(${CMAKE_SOURCE_DIR}/etc/dnfdragora.yaml.in ${CMAKE_BINARY_DIR}/etc/dnfdragora.yaml @ONLY) |
29 | -- | 30 | -- |
30 | 2.7.4 | 31 | 2.17.1 |
31 | 32 | ||
diff --git a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-disable-build-manpages.patch b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-disable-build-manpages.patch index 88bb634162..c8b105ea35 100644 --- a/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-disable-build-manpages.patch +++ b/meta-oe/recipes-graphics/dnfdragora/dnfdragora/0001-disable-build-manpages.patch | |||
@@ -9,17 +9,17 @@ Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | |||
9 | 1 file changed, 1 deletion(-) | 9 | 1 file changed, 1 deletion(-) |
10 | 10 | ||
11 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 11 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
12 | index 7c66b39..fc32750 100644 | 12 | index 230c87b..1624998 100644 |
13 | --- a/CMakeLists.txt | 13 | --- a/CMakeLists.txt |
14 | +++ b/CMakeLists.txt | 14 | +++ b/CMakeLists.txt |
15 | @@ -65,7 +65,6 @@ endif(GETTEXT_FOUND) | 15 | @@ -81,7 +81,6 @@ endif(GETTEXT_FOUND) |
16 | 16 | ||
17 | # Build and install the man-pages | 17 | # Build and install the man-pages |
18 | if(NOT SPHINX_EXECUTABLE-NOTFOUND) | 18 | if(NOT SPHINX_EXECUTABLE STREQUAL "SPHINX_EXECUTABLE-NOTFOUND") |
19 | - add_subdirectory(man) | 19 | - add_subdirectory(man) |
20 | endif(NOT SPHINX_EXECUTABLE-NOTFOUND) | 20 | endif(NOT SPHINX_EXECUTABLE STREQUAL "SPHINX_EXECUTABLE-NOTFOUND") |
21 | 21 | ||
22 | # Installing application code | 22 | # Installing application code |
23 | -- | 23 | -- |
24 | 2.7.4 | 24 | 2.17.1 |
25 | 25 | ||
diff --git a/meta-oe/recipes-graphics/dnfdragora/dnfdragora_git.bb b/meta-oe/recipes-graphics/dnfdragora/dnfdragora_git.bb index 7a51a4a250..007385101c 100644 --- a/meta-oe/recipes-graphics/dnfdragora/dnfdragora_git.bb +++ b/meta-oe/recipes-graphics/dnfdragora/dnfdragora_git.bb | |||
@@ -7,11 +7,10 @@ SRC_URI = "git://github.com/manatools/dnfdragora.git \ | |||
7 | file://0001-disable-build-manpages.patch \ | 7 | file://0001-disable-build-manpages.patch \ |
8 | file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ | 8 | file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ |
9 | file://0001-To-fix-error-when-do_package.patch \ | 9 | file://0001-To-fix-error-when-do_package.patch \ |
10 | file://0001-Run-python-scripts-using-env.patch \ | ||
11 | " | 10 | " |
12 | 11 | ||
13 | PV = "1.0.1+git${SRCPV}" | 12 | PV = "1.1.2+git${SRCPV}" |
14 | SRCREV = "4fef4ce889b8e4fa03191d414f63bfd50796152a" | 13 | SRCREV = "19e123132cfd4efd860e5204261c3c228bfe80a8" |
15 | 14 | ||
16 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
17 | 16 | ||
@@ -27,7 +26,7 @@ EXTRA_OECMAKE = " -DWITH_MAN=OFF -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} | |||
27 | 26 | ||
28 | BBCLASSEXTEND = "nativesdk" | 27 | BBCLASSEXTEND = "nativesdk" |
29 | 28 | ||
30 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/ ${datadir}/ ${bindir}/ ${sysconfdir}/dnfdragora " | 29 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/ ${datadir}/ ${bindir}/ ${sysconfdir}/dnfdragora ${sysconfdir}/xdg" |
31 | 30 | ||
32 | PNBLACKLIST[dnfdragora] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}" | 31 | PNBLACKLIST[dnfdragora] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}" |
33 | 32 | ||