mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
perl: fix re-execution of compile task
After building perl package, re-execution of compile task recursively substitutes the path, making it an invalid path. Fixed to prevent recursive substitution. Similar case as [Yocto #2194] (From OE-Core rev: 16542d982d86d42d3189d47a8180f0f71646a9ca) Signed-off-by: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6004dc8906
commit
8cc3b24242
@@ -174,8 +174,9 @@ do_configure() {
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL
|
||||
sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' cpan/Compress-Raw-Zlib/config.in
|
||||
# Fix to avoid recursive substitution of path
|
||||
sed -i -e "s|\([ \"\']\+\)/usr/include|\1${STAGING_INCDIR}|g" ext/Errno/Errno_pm.PL
|
||||
sed -i -e "s|\([ \"\']\+\)/usr/include|\1${STAGING_INCDIR}|g" cpan/Compress-Raw-Zlib/config.in
|
||||
sed -i -e 's|/usr/lib|""|g' cpan/Compress-Raw-Zlib/config.in
|
||||
sed -i -e 's|SYSROOTLIB|${STAGING_LIBDIR}|g' cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user