diff options
| author | Kai Kang <kai.kang@windriver.com> | 2022-04-07 21:53:55 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-04-07 17:40:45 -0400 |
| commit | 8e55b9aef885671a692d81e11d65eb7854a67e0c (patch) | |
| tree | c9702e84f18b1bf6f14a012a6ea0638c948a74f7 /meta-oe/recipes-extended | |
| parent | bbbd86d87e7cd6ce83243465645e6c609da24700 (diff) | |
| download | meta-openembedded-8e55b9aef885671a692d81e11d65eb7854a67e0c.tar.gz | |
wxwidgets: fix wx-config multilib issue
It sets 'libdir' with path element 'lib' directly which is not suitable
for multilib. Add an option '--baselib' for wx-config to support
multilib when cross compile.
And set EGREP for wx-config to avoid host contamination.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets/wx-config-fix-libdir-for-multilib.patch | 56 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 4 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets/wx-config-fix-libdir-for-multilib.patch b/meta-oe/recipes-extended/wxwidgets/wxwidgets/wx-config-fix-libdir-for-multilib.patch new file mode 100644 index 0000000000..7ce206d263 --- /dev/null +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets/wx-config-fix-libdir-for-multilib.patch | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | It sets 'libdir' with path element 'lib' directly which is not suitable for | ||
| 2 | multilib. Add an option '--baselib' for wx-config to support multilib when | ||
| 3 | cross compile. And set default value of baselib with "lib${wxPLATFORM_LIB_DIR}". | ||
| 4 | |||
| 5 | Upstream-Status: Pending [oe specific] | ||
| 6 | |||
| 7 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 8 | --- | ||
| 9 | build/cmake/config.cmake | 2 +- | ||
| 10 | wx-config.in | 6 ++++-- | ||
| 11 | 2 files changed, 5 insertions(+), 3 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake | ||
| 14 | index 52ae69d3f6..28aa733eb0 100644 | ||
| 15 | --- a/build/cmake/config.cmake | ||
| 16 | +++ b/build/cmake/config.cmake | ||
| 17 | @@ -86,7 +86,7 @@ function(wx_write_config) | ||
| 18 | set(prefix ${CMAKE_INSTALL_PREFIX}) | ||
| 19 | set(exec_prefix "\${prefix}") | ||
| 20 | set(includedir "\${prefix}/include") | ||
| 21 | - set(libdir "\${exec_prefix}/lib") | ||
| 22 | + set(libdir "\${exec_prefix}/\${baselib}") | ||
| 23 | set(bindir "\${exec_prefix}/bin") | ||
| 24 | |||
| 25 | find_program(EGREP egrep) | ||
| 26 | diff --git a/wx-config.in b/wx-config.in | ||
| 27 | index e3f7d115bb..0e78af03c7 100755 | ||
| 28 | --- a/wx-config.in | ||
| 29 | +++ b/wx-config.in | ||
| 30 | @@ -42,7 +42,8 @@ usage() | ||
| 31 | { | ||
| 32 | cat 1>&2 <<EOF | ||
| 33 | |||
| 34 | - wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full] | ||
| 35 | + wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]][--baselib=DIR] | ||
| 36 | + [--release] [--version-full] | ||
| 37 | [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT] | ||
| 38 | [--universal[=yes|no]] [--unicode[=yes|no]] [--static[=yes|no]] | ||
| 39 | [--debug[=yes|no]] [--version[=VERSION]] [--flavour=FLAVOUR] | ||
| 40 | @@ -137,7 +138,7 @@ wxconfig_output_options="prefix exec_prefix | ||
| 41 | |||
| 42 | # Options that permit the user to supply hints that may affect the output. | ||
| 43 | # These options all accept arbitrary values, to interpret as they please. | ||
| 44 | -wxconfig_input_options="prefix exec_prefix utility $wxconfig_schema" | ||
| 45 | +wxconfig_input_options="prefix exec_prefix baselib utility $wxconfig_schema" | ||
| 46 | |||
| 47 | # Input options that accept only a yes or no argument. | ||
| 48 | # | ||
| 49 | @@ -404,6 +405,7 @@ is_cross() { [ "x@cross_compiling@" = "xyes" ]; } | ||
| 50 | # Determine the base directories we require. | ||
| 51 | prefix=${input_option_prefix-${this_prefix:-@prefix@}} | ||
| 52 | exec_prefix=${input_option_exec_prefix-${input_option_prefix-${this_exec_prefix:-@exec_prefix@}}} | ||
| 53 | +baselib=${input_option_baselib:-lib@wxPLATFORM_LIB_DIR@} | ||
| 54 | wxconfdir="@libdir@/wx/config" | ||
| 55 | |||
| 56 | installed_configs=`cd "$wxconfdir" 2> /dev/null && ls | grep -v "^inplace-"` | ||
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb index e821430406..87fd284ae5 100644 --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | |||
| @@ -24,6 +24,7 @@ SRC_URI = " \ | |||
| 24 | file://fix-libdir-for-multilib.patch \ | 24 | file://fix-libdir-for-multilib.patch \ |
| 25 | file://respect-DESTDIR-when-create-link.patch \ | 25 | file://respect-DESTDIR-when-create-link.patch \ |
| 26 | file://not-append-system-name-to-lib-name.patch \ | 26 | file://not-append-system-name-to-lib-name.patch \ |
| 27 | file://wx-config-fix-libdir-for-multilib.patch \ | ||
| 27 | " | 28 | " |
| 28 | SRCREV= "9c0a8be1dc32063d91ed1901fd5fcd54f4f955a1" | 29 | SRCREV= "9c0a8be1dc32063d91ed1901fd5fcd54f4f955a1" |
| 29 | S = "${WORKDIR}/git" | 30 | S = "${WORKDIR}/git" |
| @@ -42,6 +43,7 @@ EXTRA_OECMAKE += " \ | |||
| 42 | EXTRA_OECMAKE:append:libc-musl = " \ | 43 | EXTRA_OECMAKE:append:libc-musl = " \ |
| 43 | -DHAVE_LOCALE_T=OFF \ | 44 | -DHAVE_LOCALE_T=OFF \ |
| 44 | " | 45 | " |
| 46 | EXTRA_OECMAKE:append:class-target = ' -DEGREP="/bin/grep -E"' | ||
| 45 | 47 | ||
| 46 | # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) | 48 | # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake) |
| 47 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \ | 49 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \ |
| @@ -113,4 +115,6 @@ FILES:${PN}-dev += " \ | |||
| 113 | ${libdir}/wx/config/ \ | 115 | ${libdir}/wx/config/ \ |
| 114 | " | 116 | " |
| 115 | 117 | ||
| 118 | RDEPENDS:${PN}-dev += "grep" | ||
| 119 | |||
| 116 | BBCLASSEXTEND = "native" | 120 | BBCLASSEXTEND = "native" |
