rxvt-unicode.inc: disable the terminfo installation by setting TIC to :
PATCH 1/1 rxvt-unicode.inc: disable the terminfo installation by setting TIC to :
From: Changqing Li <[email protected]>
Without this change, TIC is the native tic in recipe-sysroot-native. By default, native tic has set its default terminfo path to native path:
${datadir}/terminfo; $HOME/.terminfo
When sstate cache is used, the cached native tic's terminfo path could be a path not exist on current host, then native tic will try to install terminfo to HOME dir, cause host contamination.
This patch disable the terminfo installation by setting TIC to :, we already set the terminfo to correct path in do_install
--- meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc +1 -0
@@ -37,6 +37,7 @@ do_configure:prepend () { if [ ! -e ${S}/acinclude.m4 ]; then cp ${S}/aclocal.m4 ${S}/acinclude.m4 fi + sed -i -e 's#@TIC@#:#g' ${S}/doc/Makefile.in } do_compile:prepend () {
Signature · 1 line
2.25.1
Quoted 8 lines · Changqing Li via lists.openembedded.org
meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc +0
-0@@ -37,6 +37,7 @@ do_configure:prepend () {if [ ! -e ${S}/acinclude.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
+ sed -i -e 's#@TIC@#:#g' ${S}/doc/Makefile.in
}
A brute-force sed feels ugly and prone to silent breakage. Wouldn’t this work just as well:
EXTRA_OEMAKE = “TIC=true”
Ross
Quoted 14 lines · Ross Burton
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Quoted 8 lines · Changqing Li via lists.openembedded.org
meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc +0
-0@@ -37,6 +37,7 @@ do_configure:prepend () {if [ ! -e ${S}/acinclude.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
+ sed -i -e 's#@TIC@#:#g' ${S}/doc/Makefile.in
}A brute-force sed feels ugly and prone to silent breakage. Wouldn’t this work just as well:
Quoted 1 line
EXTRA_OEMAKE= “TIC=true”
Hi, Ross
Thanks for advice. But this @TIC@ cannot replaced by add configs like EXTRA_OEMAKE.
TIC is defined in configure.ac by "AC_PATH_PROG(TIC, tic, :) ", so TIC will be native tic path.
and during configure process, configure will replace @TIC@ in doc/Makefile.in with native tic path.
So in do_install stage, the doc/Makefile already have a hardcode native tic path, not variable $(TIC)
which could be replaced by pass argument. Seems no interface for us to pass argument to change TIC.
Regards
Changqing
Quoted 2 lines
Ross
Quoted 26 lines · Changqing Li via lists.openembedded.org
On 11/21/24 00:51, Ross Burton wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.On 5 Nov 2024, at 10:12, Changqing Li via lists.openembedded.org <[email protected]> wrote:
meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc +0
-0@@ -37,6 +37,7 @@ do_configure:prepend () {if [ ! -e ${S}/acinclude.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
+ sed -i -e 's#@TIC@#:#g' ${S}/doc/Makefile.in
}A brute-force sed feels ugly and prone to silent breakage. Wouldn’t this work just as well:
EXTRA_OEMAKE= “TIC=true”Hi, Ross
Thanks for advice. But this @TIC@ cannot replaced by add configs like
EXTRA_OEMAKE.
Quoted 8 lines
TIC is defined in configure.ac by "
AC_PATH_PROG(TIC, tic, :)", so TIC will be native tic path.and during configure process, configure will replace @TIC@ in doc/Makefile.in with native tic path.
So in
do_installstage, the doc/Makefile already have a hardcode native tic path, not variable $(TIC)which could be replaced by pass argument. Seems no interface for us to pass argument to change TIC.
you can override this via setting ac_cv_path_TIC=path/to/tic in EXTRA_OECONF or CACHED_CONFIGUREVARS
Quoted 15 lines
Regards
Changqing
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207500): https://lists.openembedded.org/g/openembedded-core/message/207500
Mute This Topic: https://lists.openembedded.org/mt/109403291/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 33 lines · Khem Raj
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Quoted 27 lines · Changqing Li via lists.openembedded.org
On 11/21/24 00:51, Ross Burton wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.On 5 Nov 2024, at 10:12, Changqing Li via lists.openembedded.org<[email protected]> wrote:
meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc +0
-0@@ -37,6 +37,7 @@ do_configure:prepend () {if [ ! -e ${S}/acinclude.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
+ sed -i -e 's#@TIC@#:#g' ${S}/doc/Makefile.in
}A brute-force sed feels ugly and prone to silent breakage. Wouldn’t this work just as well:
EXTRA_OEMAKE= “TIC=true”Hi, Ross
Thanks for advice. But this @TIC@ cannot replaced by add configs like
EXTRA_OEMAKE.TIC is defined in configure.ac by "
AC_PATH_PROG(TIC, tic, :)", so TIC will be native tic path.
Quoted 8 lines
Quoted 6 lines
and during configure process, configure will replace @TIC@ in doc/Makefile.in with native tic path.
So in
do_installstage, the doc/Makefile already have a hardcode native tic path, not variable $(TIC)which could be replaced by pass argument. Seems no interface for us to pass argument to change TIC.
you can override this via setting ac_cv_path_TIC=path/to/tic in
EXTRA_OECONForCACHED_CONFIGUREVARS
This way works. I will send a V2 later.
Just remembered, I had tried to pass TIC=: to configure before using sed, but TIC=: cannot match as a path.
And didn't think of using ac_cv_path_TIC directly.
[snip]
e) case $TIC
in [\\/]* | ?:[\\/]*)
ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
[snip]
@Khem, Ross, Thanks a lot.
Regards
Changqing
Quoted 16 lines
Quoted 16 lines
Regards
Changqing
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207500):https://lists.openembedded.org/g/openembedded-core/message/207500 Mute This Topic:https://lists.openembedded.org/mt/109403291/1997914
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-