Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] gettext: avoid useless RPATH QA issue
@ 2019-08-27  2:22 Chen Qi
  2019-08-27  2:22 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2019-08-27  2:22 UTC (permalink / raw)
  To: openembedded-core

*** BLURB HERE ***
The following changes since commit c17113f1e2e7bd8ab019169660718fab81df16fb:

  quilt: added less to RDEPENDS list (2019-08-22 22:48:27 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/gettext-qa
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/gettext-qa

Chen Qi (1):
  gettext: avoid useless RPATH QA issue

 meta/recipes-core/gettext/gettext_0.19.8.1.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] gettext: avoid useless RPATH QA issue
  2019-08-27  2:22 [PATCH 0/1] gettext: avoid useless RPATH QA issue Chen Qi
@ 2019-08-27  2:22 ` Chen Qi
  2019-08-27 11:37   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2019-08-27  2:22 UTC (permalink / raw)
  To: openembedded-core

We are getting useless rpath QA error when enabling libunistring
and msgcat-curses PACKAGECONFIG. Use chrpath to delete the redundant
RPATH in binaries.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/gettext/gettext_0.19.8.1.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
index 30121ad..4ce47a6 100644
--- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
+++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
@@ -118,6 +118,14 @@ FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \
 
 do_install_append() {
     rm -f ${D}${libdir}/preloadable_libintl.so
+    # remove useless rpath to avoid QA issue
+    useless_rpath_list="${D}${libdir}/gettext/urlget ${D}${libdir}/gettext/cldr-plurals \
+                        ${D}${libdir}/gettext/hostname ${D}${bindir}/recode-sr-latin"
+    for f in $useless_rpath_list; do
+	if [ -e $f ]; then
+	    chrpath -d $f
+	fi
+    done
 }
 
 do_install_append_class-native () {
@@ -163,6 +171,8 @@ do_install_ptest() {
         find ${D}${PTEST_PATH}/ -name "*.o" -exec rm {} \;
         chmod 0755 ${D}${PTEST_PATH}/tests/lang-vala ${D}${PTEST_PATH}/tests/plural-1 ${D}${PTEST_PATH}/tests/xgettext-tcl-4 \
                    ${D}${PTEST_PATH}/tests/xgettext-vala-1  ${D}${PTEST_PATH}/tests/xgettext-po-2
+        # avoid useless rpath
+        [ -e ${D}${PTEST_PATH}/src/cldr-plurals ] && chrpath -d ${D}${PTEST_PATH}/src/cldr-plurals
     fi
 }
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] gettext: avoid useless RPATH QA issue
  2019-08-27  2:22 ` [PATCH 1/1] " Chen Qi
@ 2019-08-27 11:37   ` Richard Purdie
  2019-08-27 11:47     ` Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2019-08-27 11:37 UTC (permalink / raw)
  To: Chen Qi, openembedded-core

On Tue, 2019-08-27 at 10:22 +0800, Chen Qi wrote:
> We are getting useless rpath QA error when enabling libunistring
> and msgcat-curses PACKAGECONFIG. Use chrpath to delete the redundant
> RPATH in binaries.
> 
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> index 30121ad..4ce47a6 100644
> --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> @@ -118,6 +118,14 @@ FILES_gettext-runtime-doc =
> "${mandir}/man1/gettext.* \
>  
>  do_install_append() {
>      rm -f ${D}${libdir}/preloadable_libintl.so
> +    # remove useless rpath to avoid QA issue
> +    useless_rpath_list="${D}${libdir}/gettext/urlget
> ${D}${libdir}/gettext/cldr-plurals \
> +                        ${D}${libdir}/gettext/hostname
> ${D}${bindir}/recode-sr-latin"
> +    for f in $useless_rpath_list; do
> +	if [ -e $f ]; then
> +	    chrpath -d $f
> +	fi
> +    done
>  }
>  
>  do_install_append_class-native () {
> @@ -163,6 +171,8 @@ do_install_ptest() {
>          find ${D}${PTEST_PATH}/ -name "*.o" -exec rm {} \;
>          chmod 0755 ${D}${PTEST_PATH}/tests/lang-vala
> ${D}${PTEST_PATH}/tests/plural-1 ${D}${PTEST_PATH}/tests/xgettext-
> tcl-4 \
>                     ${D}${PTEST_PATH}/tests/xgettext-vala-
> 1  ${D}${PTEST_PATH}/tests/xgettext-po-2
> +        # avoid useless rpath
> +        [ -e ${D}${PTEST_PATH}/src/cldr-plurals ] && chrpath -d
> ${D}${PTEST_PATH}/src/cldr-plurals
>      fi
>  }

In general we try and fix the reason they're getting included in the
first place as it means the compiler flags are incorrect. Any idea why
that is happening and if we can fix it?

Cheers,

Richard





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] gettext: avoid useless RPATH QA issue
  2019-08-27 11:37   ` Richard Purdie
@ 2019-08-27 11:47     ` Alexander Kanavin
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Kanavin @ 2019-08-27 11:47 UTC (permalink / raw)
  To: Richard Purdie; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 2487 bytes --]

I also have to point out that a new release of gettext (0.20.x) has been
out for a while now, so maybe it's better to upgrade to that first.

Alex

On Tue, 27 Aug 2019 at 13:38, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Tue, 2019-08-27 at 10:22 +0800, Chen Qi wrote:
> > We are getting useless rpath QA error when enabling libunistring
> > and msgcat-curses PACKAGECONFIG. Use chrpath to delete the redundant
> > RPATH in binaries.
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > ---
> >  meta/recipes-core/gettext/gettext_0.19.8.1.bb | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> >
> > diff --git a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> > b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> > index 30121ad..4ce47a6 100644
> > --- a/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> > +++ b/meta/recipes-core/gettext/gettext_0.19.8.1.bb
> > @@ -118,6 +118,14 @@ FILES_gettext-runtime-doc =
> > "${mandir}/man1/gettext.* \
> >
> >  do_install_append() {
> >      rm -f ${D}${libdir}/preloadable_libintl.so
> > +    # remove useless rpath to avoid QA issue
> > +    useless_rpath_list="${D}${libdir}/gettext/urlget
> > ${D}${libdir}/gettext/cldr-plurals \
> > +                        ${D}${libdir}/gettext/hostname
> > ${D}${bindir}/recode-sr-latin"
> > +    for f in $useless_rpath_list; do
> > +     if [ -e $f ]; then
> > +         chrpath -d $f
> > +     fi
> > +    done
> >  }
> >
> >  do_install_append_class-native () {
> > @@ -163,6 +171,8 @@ do_install_ptest() {
> >          find ${D}${PTEST_PATH}/ -name "*.o" -exec rm {} \;
> >          chmod 0755 ${D}${PTEST_PATH}/tests/lang-vala
> > ${D}${PTEST_PATH}/tests/plural-1 ${D}${PTEST_PATH}/tests/xgettext-
> > tcl-4 \
> >                     ${D}${PTEST_PATH}/tests/xgettext-vala-
> > 1  ${D}${PTEST_PATH}/tests/xgettext-po-2
> > +        # avoid useless rpath
> > +        [ -e ${D}${PTEST_PATH}/src/cldr-plurals ] && chrpath -d
> > ${D}${PTEST_PATH}/src/cldr-plurals
> >      fi
> >  }
>
> In general we try and fix the reason they're getting included in the
> first place as it means the compiler flags are incorrect. Any idea why
> that is happening and if we can fix it?
>
> Cheers,
>
> Richard
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 3816 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-27 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-27  2:22 [PATCH 0/1] gettext: avoid useless RPATH QA issue Chen Qi
2019-08-27  2:22 ` [PATCH 1/1] " Chen Qi
2019-08-27 11:37   ` Richard Purdie
2019-08-27 11:47     ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox