[meta-oe] php: Fix bug when configure php-native.

Message ID 1639418477-129618-1-git-send-email-zhengrq.fnst@fujitsu.com
State New
Headers show
Series [meta-oe] php: Fix bug when configure php-native. | expand

Commit Message

zhengrq.fnst@fujitsu.com Dec. 13, 2021, 6:01 p.m. UTC
Fix error caused by modify of libtool from poky.
 libtool: don't prefix the installed binary 
 -       install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
 +       install -m 0755 libtool ${D}${bindir}/libtool 

When executing do_configure of php-native, the folloing error occured:
sed: can't read x86_64-linux-libtool: No such file or directory

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
---
 meta-oe/recipes-devtools/php/php_8.0.12.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ross Burton Dec. 13, 2021, 10:53 a.m. UTC | #1
There's another 10 or so recipes that fail, I have a branch for all of
them and will be posting it shortly.

Ross

On Mon, 13 Dec 2021 at 09:01, zhengruoqin <zhengrq.fnst@fujitsu.com> wrote:
>
> Fix error caused by modify of libtool from poky.
>  libtool: don't prefix the installed binary
>  -       install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
>  +       install -m 0755 libtool ${D}${bindir}/libtool
>
> When executing do_configure of php-native, the folloing error occured:
> sed: can't read x86_64-linux-libtool: No such file or directory
>
> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
> ---
>  meta-oe/recipes-devtools/php/php_8.0.12.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-devtools/php/php_8.0.12.bb b/meta-oe/recipes-devtools/php/php_8.0.12.bb
> index 4f484179cc..38771948f1 100644
> --- a/meta-oe/recipes-devtools/php/php_8.0.12.bb
> +++ b/meta-oe/recipes-devtools/php/php_8.0.12.bb
> @@ -141,8 +141,8 @@ EOF
>
>  do_configure:append() {
>      # No, libtool, we really don't want rpath set...
> -    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool
> -    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool
> +    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
> +    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
>  }
>
>  do_install:append:class-native() {
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#94313): https://lists.openembedded.org/g/openembedded-devel/message/94313
> Mute This Topic: https://lists.openembedded.org/mt/87693930/1676615
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ross@burtonini.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Khem Raj Dec. 13, 2021, 4:45 p.m. UTC | #2
On 12/13/21 2:53 AM, Ross Burton wrote:
> There's another 10 or so recipes that fail, I have a branch for all of
> them and will be posting it shortly.
> 

right its already in master-next

> Ross
> 
> On Mon, 13 Dec 2021 at 09:01, zhengruoqin <zhengrq.fnst@fujitsu.com> wrote:
>>
>> Fix error caused by modify of libtool from poky.
>>   libtool: don't prefix the installed binary
>>   -       install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
>>   +       install -m 0755 libtool ${D}${bindir}/libtool
>>
>> When executing do_configure of php-native, the folloing error occured:
>> sed: can't read x86_64-linux-libtool: No such file or directory
>>
>> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
>> ---
>>   meta-oe/recipes-devtools/php/php_8.0.12.bb | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta-oe/recipes-devtools/php/php_8.0.12.bb b/meta-oe/recipes-devtools/php/php_8.0.12.bb
>> index 4f484179cc..38771948f1 100644
>> --- a/meta-oe/recipes-devtools/php/php_8.0.12.bb
>> +++ b/meta-oe/recipes-devtools/php/php_8.0.12.bb
>> @@ -141,8 +141,8 @@ EOF
>>
>>   do_configure:append() {
>>       # No, libtool, we really don't want rpath set...
>> -    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool
>> -    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool
>> +    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
>> +    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
>>   }
>>
>>   do_install:append:class-native() {
>> --
>> 2.25.1
>>
>>
>>
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#94314): https://lists.openembedded.org/g/openembedded-devel/message/94314
>> Mute This Topic: https://lists.openembedded.org/mt/87693930/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>

Patch

diff --git a/meta-oe/recipes-devtools/php/php_8.0.12.bb b/meta-oe/recipes-devtools/php/php_8.0.12.bb
index 4f484179cc..38771948f1 100644
--- a/meta-oe/recipes-devtools/php/php_8.0.12.bb
+++ b/meta-oe/recipes-devtools/php/php_8.0.12.bb
@@ -141,8 +141,8 @@  EOF
 
 do_configure:append() {
     # No, libtool, we really don't want rpath set...
-    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool
-    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool
+    sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+    sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 }
 
 do_install:append:class-native() {