All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] libeigen: allow empty packages
@ 2018-10-02  8:32 Vyacheslav Yurkov
  2018-10-02 15:14 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Vyacheslav Yurkov @ 2018-10-02  8:32 UTC (permalink / raw)
  To: openembedded-devel

When libeigen is used as a dependency (e.g. in ceres library),
the build is broken because empty packages are not constructed be default

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
---
 meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
index 31a42a9d6..a59320655 100644
--- a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
+++ b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
@@ -18,3 +18,4 @@ FILES_${PN}-dev = "${includedir} ${datadir}/eigen3/cmake ${datadir}/cmake/Module
 # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
 RDEPENDS_${PN}-dev = ""
 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
+ALLOW_EMPTY_${PN} = "1"
-- 
2.19.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] libeigen: allow empty packages
  2018-10-02  8:32 [meta-oe][PATCH] libeigen: allow empty packages Vyacheslav Yurkov
@ 2018-10-02 15:14 ` Khem Raj
  2018-10-02 17:52   ` Vyacheslav Yurkov
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2018-10-02 15:14 UTC (permalink / raw)
  To: uvv.mail; +Cc: openembeded-devel

Hi Vyacheslav

On Tue, Oct 2, 2018 at 1:33 AM Vyacheslav Yurkov <uvv.mail@gmail.com> wrote:
>
> When libeigen is used as a dependency (e.g. in ceres library),
> the build is broken because empty packages are not constructed be default
>

can you explain a bit more on whats going on? it is a runtime failure
or build time failure.

> Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
> ---
>  meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> index 31a42a9d6..a59320655 100644
> --- a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> +++ b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> @@ -18,3 +18,4 @@ FILES_${PN}-dev = "${includedir} ${datadir}/eigen3/cmake ${datadir}/cmake/Module
>  # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
>  RDEPENDS_${PN}-dev = ""
>  RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
> +ALLOW_EMPTY_${PN} = "1"
> --
> 2.19.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] libeigen: allow empty packages
  2018-10-02 15:14 ` Khem Raj
@ 2018-10-02 17:52   ` Vyacheslav Yurkov
  2018-10-02 18:43     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Vyacheslav Yurkov @ 2018-10-02 17:52 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

Hi Khem,
It's a build time failure. libeigen is header-only library.
All headers go into dev package, therefore the main package is empty. 
Dependency on the dev package doesn't work, AFAIK, so you have to allow 
empty package for build to succeed. Otherwise I get an error that empty 
packages are not allowed. I reproduced it when I built ceres-solver 
recipe (although I don't use the latest poky). Perhaps I'm missing 
something and it has been solved in the latest poky?

Vyacheslav

On 02/10/2018 17:14, Khem Raj wrote:
> Hi Vyacheslav
>
> On Tue, Oct 2, 2018 at 1:33 AM Vyacheslav Yurkov <uvv.mail@gmail.com> wrote:
>> When libeigen is used as a dependency (e.g. in ceres library),
>> the build is broken because empty packages are not constructed be default
>>
> can you explain a bit more on whats going on? it is a runtime failure
> or build time failure.
>
>> Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
>> ---
>>   meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
>> index 31a42a9d6..a59320655 100644
>> --- a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
>> +++ b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
>> @@ -18,3 +18,4 @@ FILES_${PN}-dev = "${includedir} ${datadir}/eigen3/cmake ${datadir}/cmake/Module
>>   # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
>>   RDEPENDS_${PN}-dev = ""
>>   RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
>> +ALLOW_EMPTY_${PN} = "1"
>> --
>> 2.19.0
>>
>> --
>> _______________________________________________



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] libeigen: allow empty packages
  2018-10-02 17:52   ` Vyacheslav Yurkov
@ 2018-10-02 18:43     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-10-02 18:43 UTC (permalink / raw)
  To: Vyacheslav Yurkov; +Cc: openembeded-devel

On Tue, Oct 2, 2018 at 10:52 AM Vyacheslav Yurkov <uvv.mail@gmail.com> wrote:
>
> Hi Khem,
> It's a build time failure. libeigen is header-only library.
> All headers go into dev package, therefore the main package is empty.
> Dependency on the dev package doesn't work, AFAIK, so you have to allow
> empty package for build to succeed. Otherwise I get an error that empty
> packages are not allowed. I reproduced it when I built ceres-solver
> recipe (although I don't use the latest poky). Perhaps I'm missing
> something and it has been solved in the latest poky?
>

that helps. So lets add this to commit message and send v2, we could then move
ahead with this patch.

> Vyacheslav
>
> On 02/10/2018 17:14, Khem Raj wrote:
> > Hi Vyacheslav
> >
> > On Tue, Oct 2, 2018 at 1:33 AM Vyacheslav Yurkov <uvv.mail@gmail.com> wrote:
> >> When libeigen is used as a dependency (e.g. in ceres library),
> >> the build is broken because empty packages are not constructed be default
> >>
> > can you explain a bit more on whats going on? it is a runtime failure
> > or build time failure.
> >
> >> Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
> >> ---
> >>   meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb | 1 +
> >>   1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> >> index 31a42a9d6..a59320655 100644
> >> --- a/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> >> +++ b/meta-oe/recipes-support/libeigen/libeigen_3.3.4.bb
> >> @@ -18,3 +18,4 @@ FILES_${PN}-dev = "${includedir} ${datadir}/eigen3/cmake ${datadir}/cmake/Module
> >>   # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
> >>   RDEPENDS_${PN}-dev = ""
> >>   RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
> >> +ALLOW_EMPTY_${PN} = "1"
> >> --
> >> 2.19.0
> >>
> >> --
> >> _______________________________________________
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-02 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02  8:32 [meta-oe][PATCH] libeigen: allow empty packages Vyacheslav Yurkov
2018-10-02 15:14 ` Khem Raj
2018-10-02 17:52   ` Vyacheslav Yurkov
2018-10-02 18:43     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.