pr-util: insert appropriate parameter to adapt libtool
PATCH 1/1 pr-util: insert appropriate parameter to adapt libtool
When ccache is enabled, a parameter "ccache" is inserted. libtool can not handle this parameter correctly. So "--tag=CC" is introduced to help libtool handle it.
--- meta/recipes-support/apr/apr-util_1.5.2.bb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
meta/recipes-support/apr/apr-util_1.5.2.bb +5 -0
@@ -34,6 +34,11 @@ do_configure_append() { if [ "${CLASSOVERRIDE}" = "class-target" ]; then cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk fi + + # When ccache is enabled, libtool needs --tag=CC to choose correct handle methods. + if [ -f ${S}/build/rules.mk ]; then + sed -i "s,^LTFLAGS,LTFLAGS = --silent --tag=CC\n#LTFLAGS,g" ${S}/build/rules.mk + fi } do_configure_prepend_class-native() { cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
Signature · 1 line
1.7.3.5
Quoted 13 lines · yanjun.zhu
When ccache is enabled, a parameter "ccache" is inserted. libtool can not handle this parameter correctly. So "--tag=CC" is introduced to help libtool handle it.
--- meta/recipes-support/apr/apr-util_1.5.2.bb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-support/apr/apr-util_1.5.2.bb +0
-0@@ -34,6 +34,11 @@ do_configure_append() { if [ "${CLASSOVERRIDE}" = "class-target" ]; then
meta/recipes-support/apr/apr-util_1.5.2.bb do_configure_append() { · line 44
Quoted 10 lines
meta/recipes-support/apr/apr-util_1.5.2.bb +5
-0cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk fi + + # When ccache is enabled, libtool needs --tag=CC to choose correct handle methods. + if [ -f ${S}/build/rules.mk ]; then + sed -i "s,^LTFLAGS,LTFLAGS = --silent --tag=CC\n#LTFLAGS,g" ${S}/build/rules.mk + fi } do_configure_prepend_class-native() { cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
This looks like something better done with a specific patch along with an explanation in the patch header. Is there any reason upstream wouldn't do this?
By using a patch we ensure that when things are upgraded, the right thing still gets done. You may need to update the apr recipe itself to get the patch right.
Cheers,
Richard
Quoted 28 lines · Richard Purdie
Quoted 13 lines · yanjun.zhu
When ccache is enabled, a parameter "ccache" is inserted. libtool can not handle this parameter correctly. So "--tag=CC" is introduced to help libtool handle it.
--- meta/recipes-support/apr/apr-util_1.5.2.bb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-support/apr/apr-util_1.5.2.bb +0
-0@@ -34,6 +34,11 @@ do_configure_append() { if [ "${CLASSOVERRIDE}" = "class-target" ]; thenmeta/recipes-support/apr/apr-util_1.5.2.bb do_configure_append() { · line 44
Quoted 10 lines
meta/recipes-support/apr/apr-util_1.5.2.bb +5
-0cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk fi + + # When ccache is enabled, libtool needs --tag=CC to choose correct handle methods. + if [ -f ${S}/build/rules.mk ]; then + sed -i "s,^LTFLAGS,LTFLAGS = --silent --tag=CC\n#LTFLAGS,g" ${S}/build/rules.mk + fi } do_configure_prepend_class-native() { cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mkThis looks like something better done with a specific patch along with an explanation in the patch header. Is there any reason upstream wouldn't do this?
Quoted 8 lines
By using a patch we ensure that when things are upgraded, the right thing still gets done. You may need to update the apr recipe itself to get the patch right.
Cheers,
Richard
Hi, Richard
rules.mk is copied from apr_rules.mk. apr_rules.mk is generated by configure task. The configure task is after patch. So it is difficult to make a patch for this defect.
Best Regards!
Zhu Yanjun
Quoted 1 line
Quoted 3 lines · yanjun.zhu
When ccache is enabled, a parameter "ccache" is inserted. libtool can not handle this parameter correctly. So "--tag=CC" is introduced to help libtool handle it.
Typo in subject.
Quoted 27 lines
--- meta/recipes-support/apr/apr-util_1.5.2.bb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-support/apr/apr-util_1.5.2.bb +5
-0@@ -34,6 +34,11 @@ do_configure_append() { if [ "${CLASSOVERRIDE}" = "class-target" ]; then cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk fi + + # When ccache is enabled, libtool needs --tag=CC to choose correct handle methods. + if [ -f ${S}/build/rules.mk ]; then + sed -i "s,^LTFLAGS,LTFLAGS = --silent --tag=CC\n#LTFLAGS,g" ${S}/build/rules.mk + fi } do_configure_prepend_class-native() { cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mkSignature · 6 lines
1.7.3.5 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]