summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui-ncurses/0001-Fix-the-error-of-can-t-find-header-file.patch22
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui-ncurses/0003-Simplify-ncurses-finding-module.patch35
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb (renamed from meta-oe/recipes-graphics/libyui/libyui-ncurses_2.55.0.bb)7
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui/0001-Fix-build-with-clang.patch10
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui/0001-Use-relative-install-paths-for-CMake.patch8
-rw-r--r--meta-oe/recipes-graphics/libyui/libyui_4.0.0.bb (renamed from meta-oe/recipes-graphics/libyui/libyui_3.10.0.bb)10
6 files changed, 17 insertions, 75 deletions
diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses/0001-Fix-the-error-of-can-t-find-header-file.patch b/meta-oe/recipes-graphics/libyui/libyui-ncurses/0001-Fix-the-error-of-can-t-find-header-file.patch
index 045f3cafab..1affe84f6e 100644
--- a/meta-oe/recipes-graphics/libyui/libyui-ncurses/0001-Fix-the-error-of-can-t-find-header-file.patch
+++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses/0001-Fix-the-error-of-can-t-find-header-file.patch
@@ -16,8 +16,6 @@ Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
16 src/ncursesw.h | 4 ++-- 16 src/ncursesw.h | 4 ++--
17 6 files changed, 7 insertions(+), 7 deletions(-) 17 6 files changed, 7 insertions(+), 7 deletions(-)
18 18
19diff --git a/src/NCApplication.cc b/src/NCApplication.cc
20index 5bcf969..510f034 100644
21--- a/src/NCApplication.cc 19--- a/src/NCApplication.cc
22+++ b/src/NCApplication.cc 20+++ b/src/NCApplication.cc
23@@ -23,7 +23,7 @@ 21@@ -23,7 +23,7 @@
@@ -29,8 +27,6 @@ index 5bcf969..510f034 100644
29 27
30 #define YUILogComponent "ncurses" 28 #define YUILogComponent "ncurses"
31 #include <yui/YUILog.h> 29 #include <yui/YUILog.h>
32diff --git a/src/NCstyle.h b/src/NCstyle.h
33index a40d5a8..3657917 100644
34--- a/src/NCstyle.h 30--- a/src/NCstyle.h
35+++ b/src/NCstyle.h 31+++ b/src/NCstyle.h
36@@ -25,7 +25,7 @@ 32@@ -25,7 +25,7 @@
@@ -42,8 +38,6 @@ index a40d5a8..3657917 100644
42 38
43 #include <iosfwd> 39 #include <iosfwd>
44 #include <string> 40 #include <string>
45diff --git a/src/NCurses.h b/src/NCurses.h
46index a07c6bf..d17d3c3 100644
47--- a/src/NCurses.h 41--- a/src/NCurses.h
48+++ b/src/NCurses.h 42+++ b/src/NCurses.h
49@@ -34,7 +34,7 @@ 43@@ -34,7 +34,7 @@
@@ -55,8 +49,6 @@ index a07c6bf..d17d3c3 100644
55 #include <wchar.h> 49 #include <wchar.h>
56 50
57 #include "ncursesw.h" 51 #include "ncursesw.h"
58diff --git a/src/ncursesp.h b/src/ncursesp.h
59index d478347..2fcfea5 100644
60--- a/src/ncursesp.h 52--- a/src/ncursesp.h
61+++ b/src/ncursesp.h 53+++ b/src/ncursesp.h
62@@ -28,7 +28,7 @@ 54@@ -28,7 +28,7 @@
@@ -68,8 +60,6 @@ index d478347..2fcfea5 100644
68 60
69 class NCursesPanel : public NCursesWindow 61 class NCursesPanel : public NCursesWindow
70 { 62 {
71diff --git a/src/ncursesw.cc b/src/ncursesw.cc
72index 3c771af..bb83210 100644
73--- a/src/ncursesw.cc 63--- a/src/ncursesw.cc
74+++ b/src/ncursesw.cc 64+++ b/src/ncursesw.cc
75@@ -47,7 +47,7 @@ 65@@ -47,7 +47,7 @@
@@ -81,21 +71,19 @@ index 3c771af..bb83210 100644
81 #undef line 71 #undef line
82 #undef columns 72 #undef columns
83 73
84diff --git a/src/ncursesw.h b/src/ncursesw.h
85index d25923a..c140d37 100644
86--- a/src/ncursesw.h 74--- a/src/ncursesw.h
87+++ b/src/ncursesw.h 75+++ b/src/ncursesw.h
88@@ -27,8 +27,8 @@ 76@@ -27,11 +27,11 @@
89 77
90 #include <iosfwd> 78 #include <iosfwd>
91 79
92-#include <ncursesw/curses.h> 80-#include <ncursesw/curses.h>
93-#include <ncursesw/etip.h>
94+#include <curses.h> 81+#include <curses.h>
82 #ifndef NCURSES_CXX_IMPEXP
83 #define NCURSES_CXX_IMPEXP NCURSES_EXPORT_GENERAL_IMPORT
84 #endif
85-#include <ncursesw/etip.h>
95+#include <etip.h> 86+#include <etip.h>
96 #include <cstdio> 87 #include <cstdio>
97 #include <cstdarg> 88 #include <cstdarg>
98 #include <climits> 89 #include <climits>
99--
1002.7.4
101
diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses/0003-Simplify-ncurses-finding-module.patch b/meta-oe/recipes-graphics/libyui/libyui-ncurses/0003-Simplify-ncurses-finding-module.patch
deleted file mode 100644
index 2520ac46fe..0000000000
--- a/meta-oe/recipes-graphics/libyui/libyui-ncurses/0003-Simplify-ncurses-finding-module.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From c2291fe28dc5682f81804941512431642975cf21 Mon Sep 17 00:00:00 2001
2From: Pascal Bach <pascal.bach@siemens.com>
3Date: Mon, 29 Oct 2018 18:17:32 +0100
4Subject: [PATCH] Simplify ncurses finding module
5
6CMake will automatically look in the right locations, there is no need to
7re-implement the logic with a for loop and NO_DEFAULT_PATH.
8
9It is already done like this to file the headers.
10
11Upstream-Status: Submitted [https://github.com/libyui/libyui-ncurses/pull/73]
12Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
13---
14 cmake/Modules/FindCurses6.cmake | 8 +++-----
15 1 file changed, 3 insertions(+), 5 deletions(-)
16
17diff --git a/cmake/Modules/FindCurses6.cmake b/cmake/Modules/FindCurses6.cmake
18index 0bf02c3..e298d5d 100644
19--- a/cmake/Modules/FindCurses6.cmake
20+++ b/cmake/Modules/FindCurses6.cmake
21@@ -5,11 +5,9 @@
22 # CURSES6_LIBRARIES - The libraries needed to use Curses6
23 # CURSES6_DEFINITIONS - Compiler switches required for using Curses6
24
25-FOREACH(path ${CMAKE_LIBRARY_PATH} /usr/${LIB_DIR})
26- FIND_LIBRARY(CURSES6_NCURSESW_LIBRARY NAMES ncursesw PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
27- FIND_LIBRARY(CURSES6_PANELW_LIBRARY NAMES panelw PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
28- FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
29-ENDFOREACH()
30+FIND_LIBRARY(CURSES6_NCURSESW_LIBRARY NAMES ncursesw PATH_SUFFIXES ncurses6)
31+FIND_LIBRARY(CURSES6_PANELW_LIBRARY NAMES panelw PATH_SUFFIXES ncurses6)
32+FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATH_SUFFIXES ncurses6)
33
34 SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY})
35 # tinfo is optional (in 12.1 is not there)
diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses_2.55.0.bb b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb
index 15c40ee31f..5efbb44901 100644
--- a/meta-oe/recipes-graphics/libyui/libyui-ncurses_2.55.0.bb
+++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.0.0.bb
@@ -5,12 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
5" 5"
6 6
7SRC_URI = "git://github.com/libyui/libyui-ncurses.git \ 7SRC_URI = "git://github.com/libyui/libyui-ncurses.git \
8 file://0003-Simplify-ncurses-finding-module.patch \
9 " 8 "
10 9
11SRC_URI_append_class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch" 10SRC_URI_append_class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
12 11
13SRCREV = "e89fcc53c27c3a3bf559d43190289c3ce4f335b1" 12SRCREV = "37d3a1e815a47f536b4f694f139f279cc93a3854"
14 13
15S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
16 15
@@ -25,16 +24,12 @@ EXTRA_OECMAKE_append_toolchain-clang = " -DENABLE_WERROR=OFF"
25 24
26do_configure_prepend () { 25do_configure_prepend () {
27 cd ${S} 26 cd ${S}
28 git checkout bootstrap.sh
29 sed -i "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" bootstrap.sh
30 ./bootstrap.sh
31 if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then 27 if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then
32 mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ 28 mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
33 cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/ 29 cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
34 fi 30 fi
35 cd - 31 cd -
36 sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt 32 sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt
37 sed -i -e "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${PKG_CONFIG_SYSROOT_DIR}${libdir}/cmake/libyui/LibyuiLibraryDepends-release.cmake
38} 33}
39 34
40do_install_append () { 35do_install_append () {
diff --git a/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-build-with-clang.patch b/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-build-with-clang.patch
index b03723ac04..d3463ca056 100644
--- a/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-build-with-clang.patch
+++ b/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-build-with-clang.patch
@@ -329,10 +329,10 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
329 /** 329 /**
330--- a/src/YMenuButton.h 330--- a/src/YMenuButton.h
331+++ b/src/YMenuButton.h 331+++ b/src/YMenuButton.h
332@@ -29,7 +29,7 @@ 332@@ -28,7 +28,7 @@
333 #include "YMenuWidget.h"
333 #include "YMenuItem.h" 334 #include "YMenuItem.h"
334 335
335 class YMenuItem;
336-class YMenuButtonPrivate; 336-class YMenuButtonPrivate;
337+struct YMenuButtonPrivate; 337+struct YMenuButtonPrivate;
338 338
@@ -428,7 +428,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
428 typedef YRadioButtonList::iterator YRadioButtonListIterator; 428 typedef YRadioButtonList::iterator YRadioButtonListIterator;
429--- a/src/YRichText.h 429--- a/src/YRichText.h
430+++ b/src/YRichText.h 430+++ b/src/YRichText.h
431@@ -30,7 +30,7 @@ 431@@ -31,7 +31,7 @@
432 #include "ImplPtr.h" 432 #include "ImplPtr.h"
433 433
434 434
@@ -538,7 +538,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
538 /** 538 /**
539--- a/src/YTimezoneSelector.cc 539--- a/src/YTimezoneSelector.cc
540+++ b/src/YTimezoneSelector.cc 540+++ b/src/YTimezoneSelector.cc
541@@ -32,7 +32,7 @@ 541@@ -34,7 +34,7 @@ using std::string;
542 542
543 class YTimezoneSelectorPrivate 543 class YTimezoneSelectorPrivate
544 { 544 {
@@ -560,7 +560,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
560 /** 560 /**
561--- a/src/YUILog.h 561--- a/src/YUILog.h
562+++ b/src/YUILog.h 562+++ b/src/YUILog.h
563@@ -64,7 +64,7 @@ 563@@ -66,7 +66,7 @@ using std::endl;
564 564
565 565
566 566
diff --git a/meta-oe/recipes-graphics/libyui/libyui/0001-Use-relative-install-paths-for-CMake.patch b/meta-oe/recipes-graphics/libyui/libyui/0001-Use-relative-install-paths-for-CMake.patch
index 11a1678a4b..fc7f819d32 100644
--- a/meta-oe/recipes-graphics/libyui/libyui/0001-Use-relative-install-paths-for-CMake.patch
+++ b/meta-oe/recipes-graphics/libyui/libyui/0001-Use-relative-install-paths-for-CMake.patch
@@ -16,13 +16,13 @@ _PREFIX variants.
16Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/140] 16Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/140]
17Signed-off-by: Pascal Bach <pascal.bach@siemens.com> 17Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
18--- 18---
19 buildtools/LibyuiCommon.cmake | 35 ++++++++++++++--------------------- 19 legacy-buildtools/LibyuiCommon.cmake | 35 ++++++++++++++---------------------
20 1 file changed, 14 insertions(+), 21 deletions(-) 20 1 file changed, 14 insertions(+), 21 deletions(-)
21 21
22diff --git a/buildtools/LibyuiCommon.cmake b/buildtools/LibyuiCommon.cmake 22diff --git a/legacy-buildtools/LibyuiCommon.cmake b/legacy-buildtools/LibyuiCommon.cmake
23index e6fbefd..5e2fc0d 100644 23index e6fbefd..5e2fc0d 100644
24--- a/buildtools/LibyuiCommon.cmake 24--- a/legacy-buildtools/LibyuiCommon.cmake
25+++ b/buildtools/LibyuiCommon.cmake 25+++ b/legacy-buildtools/LibyuiCommon.cmake
26@@ -258,13 +258,6 @@ MACRO( SET_ENVIRONMENT ) # setup the environment vars 26@@ -258,13 +258,6 @@ MACRO( SET_ENVIRONMENT ) # setup the environment vars
27 27
28 SET( INSTALL_DOC_DIR "${DOC_DIR}" ) 28 SET( INSTALL_DOC_DIR "${DOC_DIR}" )
diff --git a/meta-oe/recipes-graphics/libyui/libyui_3.10.0.bb b/meta-oe/recipes-graphics/libyui/libyui_4.0.0.bb
index d7f529e313..bdbbb031a3 100644
--- a/meta-oe/recipes-graphics/libyui/libyui_3.10.0.bb
+++ b/meta-oe/recipes-graphics/libyui/libyui_4.0.0.bb
@@ -10,8 +10,8 @@ SRC_URI = "git://github.com/libyui/libyui.git \
10 file://0001-Use-relative-install-paths-for-CMake.patch \ 10 file://0001-Use-relative-install-paths-for-CMake.patch \
11 " 11 "
12 12
13SRCREV = "de9134007d2d029fe5809ce48f57fe218e6ffe16" 13SRCREV = "af06143017fc5f18c4b6488ba4aed26bcc43ff6e"
14SRCREV_FORMAT = "default" 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16 16
17inherit cmake gettext pkgconfig 17inherit cmake gettext pkgconfig
@@ -22,12 +22,6 @@ EXTRA_OECMAKE += "-DENABLE_WERROR=OFF"
22 22
23BBCLASSEXTEND = "native nativesdk" 23BBCLASSEXTEND = "native nativesdk"
24 24
25do_configure_prepend () {
26 (cd ${S} &&
27 ./bootstrap.sh &&
28 cd -)
29}
30
31do_install_append () { 25do_install_append () {
32 if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then 26 if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then
33 mv ${D}/usr/lib64 ${D}/usr/lib 27 mv ${D}/usr/lib64 ${D}/usr/lib