On Mon, 2015-01-12 at 22:13 +0100, Patrick Ohly wrote:
> On Mon, 2015-01-12 at 15:34 +0000, VanCutsem, Geoffroy wrote:
> > Hi Patrick,
> >
> > > -----Original Message-----
> > > From: Patrick Ohly [mailto:[email protected]]
> > > Sent: Monday, January 12, 2015 8:59 AM
> > > To: VanCutsem, Geoffroy
> > > Cc: Kévin THIERRY; [email protected]; [email protected]
> > > Subject: Re: [IVI] [Dev] Tizen-Distro the Tizen build with Yocto Project
> > > is
> > > available
> > >
> > > On Fri, 2015-01-09 at 10:18 +0000, VanCutsem, Geoffroy wrote:
> > > > Hi Kevin,
> > > >
> > > > I got past this error by installing pcre-devel on my Fedora dev
> > > > machine (sudo yum install pcre-devel). Swig was then successfully
> > > > compiled.
> > >
> > > Was that swig-native or swig for the target architecture?
> > I don't know, how can I find out?
>
> The name of all native tools end with -native. In this case it was the
> swig for the target that failed.
>
> > One might get
> > > away with linking the native swig against the native pcre-devel, but
> > > doing the same for the target is almost certainly wrong.
> > >
> > > meta-oe/recipes-devtools/swig/swig.inc declares the dependency on
> > > libpcre. A log of the actual build failure would be useful to determine
> > > why it was not found.
> > The log (do_configure) was attached to my previous mail, here it is again.
>
> My bad. Somehow I managed to overlook both the attachment and your
> comment about it.
>
> Unfortunately the log doesn't show much about the state of the sysroot
> at the time of the failure. But I was able to reproduce it:
> libpcre-devel in Yocto installs only the .pc file, whereas swig is
> looking for the older pcre-config. There is a patch replacing that with
> pkg-config, but the swig recipe fails to re-generate configure after
> patching configure.ac.
>
> Looks like an upsteam meta-oe bug. I'll check in more detail tomorrow.
Of course it took longer because of some other work.
This patch for swig in meta-openembedded works for me. Now I just need
to figure out how to get that into meta-openembedded and/or
tizen-distro.
diff --git a/meta-oe/recipes-devtools/swig/swig.inc
b/meta-oe/recipes-devtools/swig/swig.inc
index 9821fa5..51b6c0a 100644
--- a/meta-oe/recipes-devtools/swig/swig.inc
+++ b/meta-oe/recipes-devtools/swig/swig.inc
@@ -41,12 +41,15 @@ EXTRA_OECONF = " \
BBCLASSEXTEND = "native nativesdk"
-do_configure() {
+# Located too deep in the source tree such that the default search in
+# autotools_do_configure does not find it and we have to specify it manually.
+acpaths = "-I ${S}/Tools/config"
+
+do_configure_prepend() {
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess
${S}/Tools/config
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub
${S}/Tools/config
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
- oe_runconf
}
do_install_append_class-nativesdk() {
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev