mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
libyui,libyui-ncurses: Upgrade to 4.0.0
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Pascal Bach <pascal.bach@siemens.com>
This commit is contained in:
parent
c9cd58aa6a
commit
ae993f73ca
|
|
@ -16,8 +16,6 @@ Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
|||
src/ncursesw.h | 4 ++--
|
||||
6 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/NCApplication.cc b/src/NCApplication.cc
|
||||
index 5bcf969..510f034 100644
|
||||
--- a/src/NCApplication.cc
|
||||
+++ b/src/NCApplication.cc
|
||||
@@ -23,7 +23,7 @@
|
||||
|
|
@ -29,8 +27,6 @@ index 5bcf969..510f034 100644
|
|||
|
||||
#define YUILogComponent "ncurses"
|
||||
#include <yui/YUILog.h>
|
||||
diff --git a/src/NCstyle.h b/src/NCstyle.h
|
||||
index a40d5a8..3657917 100644
|
||||
--- a/src/NCstyle.h
|
||||
+++ b/src/NCstyle.h
|
||||
@@ -25,7 +25,7 @@
|
||||
|
|
@ -42,8 +38,6 @@ index a40d5a8..3657917 100644
|
|||
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
diff --git a/src/NCurses.h b/src/NCurses.h
|
||||
index a07c6bf..d17d3c3 100644
|
||||
--- a/src/NCurses.h
|
||||
+++ b/src/NCurses.h
|
||||
@@ -34,7 +34,7 @@
|
||||
|
|
@ -55,8 +49,6 @@ index a07c6bf..d17d3c3 100644
|
|||
#include <wchar.h>
|
||||
|
||||
#include "ncursesw.h"
|
||||
diff --git a/src/ncursesp.h b/src/ncursesp.h
|
||||
index d478347..2fcfea5 100644
|
||||
--- a/src/ncursesp.h
|
||||
+++ b/src/ncursesp.h
|
||||
@@ -28,7 +28,7 @@
|
||||
|
|
@ -68,8 +60,6 @@ index d478347..2fcfea5 100644
|
|||
|
||||
class NCursesPanel : public NCursesWindow
|
||||
{
|
||||
diff --git a/src/ncursesw.cc b/src/ncursesw.cc
|
||||
index 3c771af..bb83210 100644
|
||||
--- a/src/ncursesw.cc
|
||||
+++ b/src/ncursesw.cc
|
||||
@@ -47,7 +47,7 @@
|
||||
|
|
@ -81,21 +71,19 @@ index 3c771af..bb83210 100644
|
|||
#undef line
|
||||
#undef columns
|
||||
|
||||
diff --git a/src/ncursesw.h b/src/ncursesw.h
|
||||
index d25923a..c140d37 100644
|
||||
--- a/src/ncursesw.h
|
||||
+++ b/src/ncursesw.h
|
||||
@@ -27,8 +27,8 @@
|
||||
@@ -27,11 +27,11 @@
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
-#include <ncursesw/curses.h>
|
||||
-#include <ncursesw/etip.h>
|
||||
+#include <curses.h>
|
||||
#ifndef NCURSES_CXX_IMPEXP
|
||||
#define NCURSES_CXX_IMPEXP NCURSES_EXPORT_GENERAL_IMPORT
|
||||
#endif
|
||||
-#include <ncursesw/etip.h>
|
||||
+#include <etip.h>
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
#include <climits>
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
From c2291fe28dc5682f81804941512431642975cf21 Mon Sep 17 00:00:00 2001
|
||||
From: Pascal Bach <pascal.bach@siemens.com>
|
||||
Date: Mon, 29 Oct 2018 18:17:32 +0100
|
||||
Subject: [PATCH] Simplify ncurses finding module
|
||||
|
||||
CMake will automatically look in the right locations, there is no need to
|
||||
re-implement the logic with a for loop and NO_DEFAULT_PATH.
|
||||
|
||||
It is already done like this to file the headers.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/libyui/libyui-ncurses/pull/73]
|
||||
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
|
||||
---
|
||||
cmake/Modules/FindCurses6.cmake | 8 +++-----
|
||||
1 file changed, 3 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/cmake/Modules/FindCurses6.cmake b/cmake/Modules/FindCurses6.cmake
|
||||
index 0bf02c3..e298d5d 100644
|
||||
--- a/cmake/Modules/FindCurses6.cmake
|
||||
+++ b/cmake/Modules/FindCurses6.cmake
|
||||
@@ -5,11 +5,9 @@
|
||||
# CURSES6_LIBRARIES - The libraries needed to use Curses6
|
||||
# CURSES6_DEFINITIONS - Compiler switches required for using Curses6
|
||||
|
||||
-FOREACH(path ${CMAKE_LIBRARY_PATH} /usr/${LIB_DIR})
|
||||
- FIND_LIBRARY(CURSES6_NCURSESW_LIBRARY NAMES ncursesw PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
|
||||
- FIND_LIBRARY(CURSES6_PANELW_LIBRARY NAMES panelw PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
|
||||
- FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATHS ${path}/ncurses6 ${path} NO_DEFAULT_PATH)
|
||||
-ENDFOREACH()
|
||||
+FIND_LIBRARY(CURSES6_NCURSESW_LIBRARY NAMES ncursesw PATH_SUFFIXES ncurses6)
|
||||
+FIND_LIBRARY(CURSES6_PANELW_LIBRARY NAMES panelw PATH_SUFFIXES ncurses6)
|
||||
+FIND_LIBRARY(CURSES6_TINFO_LIBRARY NAMES tinfo PATH_SUFFIXES ncurses6)
|
||||
|
||||
SET(CURSES6_LIBRARIES ${CURSES6_NCURSESW_LIBRARY} ${CURSES6_PANELW_LIBRARY})
|
||||
# tinfo is optional (in 12.1 is not there)
|
||||
|
|
@ -5,12 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
|
|||
"
|
||||
|
||||
SRC_URI = "git://github.com/libyui/libyui-ncurses.git \
|
||||
file://0003-Simplify-ncurses-finding-module.patch \
|
||||
"
|
||||
|
||||
SRC_URI_append_class-target = " file://0001-Fix-the-error-of-can-t-find-header-file.patch"
|
||||
|
||||
SRCREV = "e89fcc53c27c3a3bf559d43190289c3ce4f335b1"
|
||||
SRCREV = "37d3a1e815a47f536b4f694f139f279cc93a3854"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
|
@ -25,16 +24,12 @@ EXTRA_OECMAKE_append_toolchain-clang = " -DENABLE_WERROR=OFF"
|
|||
|
||||
do_configure_prepend () {
|
||||
cd ${S}
|
||||
git checkout bootstrap.sh
|
||||
sed -i "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" bootstrap.sh
|
||||
./bootstrap.sh
|
||||
if [ -e ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so ]; then
|
||||
mkdir -p ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
|
||||
cp ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib/libyui.so* ${PKG_CONFIG_SYSROOT_DIR}${base_prefix}/usr/lib64/
|
||||
fi
|
||||
cd -
|
||||
sed -i -e "s#\${YPREFIX}#\${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${S}/CMakeLists.txt
|
||||
sed -i -e "s#/usr#${PKG_CONFIG_SYSROOT_DIR}${base_prefix}&#" ${PKG_CONFIG_SYSROOT_DIR}${libdir}/cmake/libyui/LibyuiLibraryDepends-release.cmake
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
|
|
@ -329,10 +329,10 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
|
|||
/**
|
||||
--- a/src/YMenuButton.h
|
||||
+++ b/src/YMenuButton.h
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "YMenuWidget.h"
|
||||
#include "YMenuItem.h"
|
||||
|
||||
class YMenuItem;
|
||||
-class YMenuButtonPrivate;
|
||||
+struct YMenuButtonPrivate;
|
||||
|
||||
|
|
@ -428,7 +428,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
|
|||
typedef YRadioButtonList::iterator YRadioButtonListIterator;
|
||||
--- a/src/YRichText.h
|
||||
+++ b/src/YRichText.h
|
||||
@@ -30,7 +30,7 @@
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "ImplPtr.h"
|
||||
|
||||
|
||||
|
|
@ -538,7 +538,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
|
|||
/**
|
||||
--- a/src/YTimezoneSelector.cc
|
||||
+++ b/src/YTimezoneSelector.cc
|
||||
@@ -32,7 +32,7 @@
|
||||
@@ -34,7 +34,7 @@ using std::string;
|
||||
|
||||
class YTimezoneSelectorPrivate
|
||||
{
|
||||
|
|
@ -560,7 +560,7 @@ Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/123]
|
|||
/**
|
||||
--- a/src/YUILog.h
|
||||
+++ b/src/YUILog.h
|
||||
@@ -64,7 +64,7 @@
|
||||
@@ -66,7 +66,7 @@ using std::endl;
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ _PREFIX variants.
|
|||
Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/140]
|
||||
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
|
||||
---
|
||||
buildtools/LibyuiCommon.cmake | 35 ++++++++++++++---------------------
|
||||
legacy-buildtools/LibyuiCommon.cmake | 35 ++++++++++++++---------------------
|
||||
1 file changed, 14 insertions(+), 21 deletions(-)
|
||||
|
||||
diff --git a/buildtools/LibyuiCommon.cmake b/buildtools/LibyuiCommon.cmake
|
||||
diff --git a/legacy-buildtools/LibyuiCommon.cmake b/legacy-buildtools/LibyuiCommon.cmake
|
||||
index e6fbefd..5e2fc0d 100644
|
||||
--- a/buildtools/LibyuiCommon.cmake
|
||||
+++ b/buildtools/LibyuiCommon.cmake
|
||||
--- a/legacy-buildtools/LibyuiCommon.cmake
|
||||
+++ b/legacy-buildtools/LibyuiCommon.cmake
|
||||
@@ -258,13 +258,6 @@ MACRO( SET_ENVIRONMENT ) # setup the environment vars
|
||||
|
||||
SET( INSTALL_DOC_DIR "${DOC_DIR}" )
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ SRC_URI = "git://github.com/libyui/libyui.git \
|
|||
file://0001-Use-relative-install-paths-for-CMake.patch \
|
||||
"
|
||||
|
||||
SRCREV = "de9134007d2d029fe5809ce48f57fe218e6ffe16"
|
||||
SRCREV_FORMAT = "default"
|
||||
SRCREV = "af06143017fc5f18c4b6488ba4aed26bcc43ff6e"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake gettext pkgconfig
|
||||
|
|
@ -22,12 +22,6 @@ EXTRA_OECMAKE += "-DENABLE_WERROR=OFF"
|
|||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
do_configure_prepend () {
|
||||
(cd ${S} &&
|
||||
./bootstrap.sh &&
|
||||
cd -)
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
if [ "${libdir}" = "${base_prefix}/usr/lib" ] && [ -d ${D}/usr/lib64 ]; then
|
||||
mv ${D}/usr/lib64 ${D}/usr/lib
|
||||
Loading…
Reference in New Issue
Block a user