From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 3/5] perl-native: fix ExtUtils::Liblist::Kid library check for cross-build
Date: Sat, 25 Dec 2010 09:33:36 -0800 [thread overview]
Message-ID: <4D162AF0.3050608@gmail.com> (raw)
In-Reply-To: <1293274109-15695-3-git-send-email-khimov@altell.ru>
On 12/25/2010 2:48 AM, Roman I Khimov wrote:
> MakeMaker uses it to check for libraries presence and if the library is not
> found in host dirs (/lib, /usr/lib, etc) it fails with messages like:
>
> Note (probably harmless): No library found for -lpcap
>
> Unfortunately it's not harmless, since MakeMaker removes such libs from flags
> passed to link target modules which obviously breaks them.
>
> As I don't know exact semantic and all use-cases of libpth config variable
> I've workarounded this issue by prepending ldflags (and this does contain the
> right path) to lib flags.
>
> Signed-off-by: Roman I Khimov<khimov@altell.ru>
is this a problem for perl-native or target perl ?
> ---
> .../perl-5.10.1/perl-fix-cross-library-check.patch | 19 +++++++++++++++++++
> recipes/perl/perl-native_5.10.1.bb | 3 ++-
> 2 files changed, 21 insertions(+), 1 deletions(-)
> create mode 100644 recipes/perl/perl-5.10.1/perl-fix-cross-library-check.patch
>
> diff --git a/recipes/perl/perl-5.10.1/perl-fix-cross-library-check.patch b/recipes/perl/perl-5.10.1/perl-fix-cross-library-check.patch
> new file mode 100644
> index 0000000..1c51609
> --- /dev/null
> +++ b/recipes/perl/perl-5.10.1/perl-fix-cross-library-check.patch
> @@ -0,0 +1,19 @@
> +Index: perl-5.10.1/lib/ExtUtils/Liblist/Kid.pm
> +===================================================================
> +--- perl-5.10.1.orig/lib/ExtUtils/Liblist/Kid.pm 2010-11-23 13:54:41.000000000 +0300
> ++++ perl-5.10.1/lib/ExtUtils/Liblist/Kid.pm 2010-11-23 14:18:13.000000000 +0300
> +@@ -33,6 +33,14 @@
> + $potential_libs .= " " if $potential_libs;
> + $potential_libs .= $Config{perllibs};
> + }
> ++
> ++ if ($Config{ldflags}) {
> ++ # Dynamic libraries are not transitive, so we may need including
> ++ # the libraries linked against perl.dll again.
> ++
> ++ $potential_libs = $Config{ldflags} . " " . $potential_libs;
> ++ }
> ++
> + return ("", "", "", "", ($give_libs ? [] : ())) unless $potential_libs;
> + warn "Potential libraries are '$potential_libs':\n" if $verbose;
> +
> diff --git a/recipes/perl/perl-native_5.10.1.bb b/recipes/perl/perl-native_5.10.1.bb
> index 8b275a2..c523974 100644
> --- a/recipes/perl/perl-native_5.10.1.bb
> +++ b/recipes/perl/perl-native_5.10.1.bb
> @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.perl.org/"
> SECTION = "libs"
> LICENSE = "Artistic|GPLv1+"
> DEPENDS = "virtual/db-native gdbm-native"
> -PR = "r7"
> +PR = "r8"
> NATIVE_INSTALL_WORKS = "1"
>
> # Not tested enough
> @@ -21,6 +21,7 @@ SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz;name=perl-${PV} \
> file://perl-configpm-switch.patch \
> file://native-nopacklist.patch \
> file://native-perlinc.patch \
> + file://perl-fix-cross-library-check.patch \
> "
>
> SRC_URI[perl-5.10.1.md5sum] = "b9b2fdb957f50ada62d73f43ee75d044"
next prev parent reply other threads:[~2010-12-25 17:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-25 10:48 [PATCH 1/5] perl: fix PERLCONFIGTARGET for multimach builds, move cpan vars Roman I Khimov
2010-12-25 10:48 ` [PATCH 2/5] perl 5.10.1: fix Time::HiRes cross-compilation Roman I Khimov
2010-12-25 10:48 ` [PATCH 3/5] perl-native: fix ExtUtils::Liblist::Kid library check for cross-build Roman I Khimov
2010-12-25 10:48 ` [PATCH 4/5] perl-5.10.1: fix config var. 'need_va_copy' Roman I Khimov
2010-12-25 10:48 ` [PATCH 5/5] perl: fix some arch-specific config.sh variables Roman I Khimov
2010-12-25 17:38 ` Khem Raj
2010-12-25 17:39 ` [PATCH 4/5] perl-5.10.1: fix config var. 'need_va_copy' Khem Raj
2010-12-25 17:33 ` Khem Raj [this message]
2010-12-25 18:05 ` [PATCH 3/5] perl-native: fix ExtUtils::Liblist::Kid library check for cross-build Roman I Khimov
2010-12-25 19:55 ` Khem Raj
2010-12-25 17:30 ` [PATCH 2/5] perl 5.10.1: fix Time::HiRes cross-compilation Khem Raj
2010-12-25 18:25 ` Roman I Khimov
2010-12-25 19:57 ` Khem Raj
2010-12-26 6:26 ` Roman I Khimov
2010-12-25 17:23 ` [PATCH 1/5] perl: fix PERLCONFIGTARGET for multimach builds, move cpan vars Khem Raj
2010-12-25 18:44 ` Roman I Khimov
2010-12-25 20:01 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D162AF0.3050608@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox