public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends
@ 2020-11-23 19:13 Mark Jonas
  2020-11-23 19:54 ` [OE-core] " Andre McCurdy
  2020-11-24 19:32 ` [PATCH V2] " Mark Jonas
  0 siblings, 2 replies; 5+ messages in thread
From: Mark Jonas @ 2020-11-23 19:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mark Jonas

When building libsdl2 with PACKAGECONFIG[directfb] then directfb is
added to the DEPENDS. But the automatically generated runtime
dependencies do not add the directfb package to the runtime
dependencies. Most likely this happens because libsdl2 does not link
against directfb but uses dlopen() or similar. Thus, the runtime
dependency to directfb needs to be declared explicitly.

Here, a runtime recommendation is used to allow ignoring the runtime
dependency using NO_RECOMMENDATIONS.

Signed-off-by: Mark Jonas <toertel@gmail.com>
---
 meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
index 2ef7d2e5ef..ae42db2610 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
@@ -58,7 +58,7 @@ PACKAGECONFIG ??= " \
 "
 PACKAGECONFIG[alsa]       = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
 PACKAGECONFIG[arm-neon]   = "--enable-arm-neon,--disable-arm-neon"
-PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb"
+PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb,,directfb"
 PACKAGECONFIG[gles2]      = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"
 PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
-- 
2.25.1


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

* Re: [OE-core] [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends
  2020-11-23 19:13 [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends Mark Jonas
@ 2020-11-23 19:54 ` Andre McCurdy
  2020-11-24 15:52   ` Richard Purdie
  2020-11-24 19:32 ` [PATCH V2] " Mark Jonas
  1 sibling, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2020-11-23 19:54 UTC (permalink / raw)
  To: Mark Jonas; +Cc: OE Core mailing list

On Mon, Nov 23, 2020 at 11:14 AM Mark Jonas <toertel@gmail.com> wrote:
>
> When building libsdl2 with PACKAGECONFIG[directfb] then directfb is
> added to the DEPENDS. But the automatically generated runtime
> dependencies do not add the directfb package to the runtime
> dependencies. Most likely this happens because libsdl2 does not link
> against directfb but uses dlopen() or similar. Thus, the runtime
> dependency to directfb needs to be declared explicitly.
>
> Here, a runtime recommendation is used to allow ignoring the runtime
> dependency using NO_RECOMMENDATIONS.

Why would anyone want to ignore the runtime dependency?

> Signed-off-by: Mark Jonas <toertel@gmail.com>
> ---
>  meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
> index 2ef7d2e5ef..ae42db2610 100644
> --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
> +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
> @@ -58,7 +58,7 @@ PACKAGECONFIG ??= " \
>  "
>  PACKAGECONFIG[alsa]       = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
>  PACKAGECONFIG[arm-neon]   = "--enable-arm-neon,--disable-arm-neon"
> -PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb"
> +PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb,,directfb"
>  PACKAGECONFIG[gles2]      = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"
>  PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
>  PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
> --
> 2.25.1
>
>
> 
>

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

* Re: [OE-core] [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends
  2020-11-23 19:54 ` [OE-core] " Andre McCurdy
@ 2020-11-24 15:52   ` Richard Purdie
  2020-11-24 19:04     ` Mark Jonas
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2020-11-24 15:52 UTC (permalink / raw)
  To: Andre McCurdy, Mark Jonas; +Cc: OE Core mailing list

On Mon, 2020-11-23 at 11:54 -0800, Andre McCurdy wrote:
> On Mon, Nov 23, 2020 at 11:14 AM Mark Jonas <toertel@gmail.com>
> wrote:
> > When building libsdl2 with PACKAGECONFIG[directfb] then directfb is
> > added to the DEPENDS. But the automatically generated runtime
> > dependencies do not add the directfb package to the runtime
> > dependencies. Most likely this happens because libsdl2 does not
> > link
> > against directfb but uses dlopen() or similar. Thus, the runtime
> > dependency to directfb needs to be declared explicitly.
> > 
> > Here, a runtime recommendation is used to allow ignoring the
> > runtime
> > dependency using NO_RECOMMENDATIONS.
> 
> Why would anyone want to ignore the runtime dependency?

Agreed, that does seem strange. Whichever way this goes, the patch
shortlog needs to match the commit (it says rdepends right now).

Cheers,

Richard


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

* Re: [OE-core] [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends
  2020-11-24 15:52   ` Richard Purdie
@ 2020-11-24 19:04     ` Mark Jonas
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Jonas @ 2020-11-24 19:04 UTC (permalink / raw)
  To: Richard Purdie, Andre McCurdy; +Cc: OE Core mailing list

Hi Richard and Andre,

On Tue, Nov 24, 2020 at 4:52 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2020-11-23 at 11:54 -0800, Andre McCurdy wrote:
> > On Mon, Nov 23, 2020 at 11:14 AM Mark Jonas <toertel@gmail.com>
> > wrote:
> > > When building libsdl2 with PACKAGECONFIG[directfb] then directfb is
> > > added to the DEPENDS. But the automatically generated runtime
> > > dependencies do not add the directfb package to the runtime
> > > dependencies. Most likely this happens because libsdl2 does not
> > > link
> > > against directfb but uses dlopen() or similar. Thus, the runtime
> > > dependency to directfb needs to be declared explicitly.
> > >
> > > Here, a runtime recommendation is used to allow ignoring the
> > > runtime
> > > dependency using NO_RECOMMENDATIONS.
> >
> > Why would anyone want to ignore the runtime dependency?
>
> Agreed, that does seem strange. Whichever way this goes, the patch
> shortlog needs to match the commit (it says rdepends right now).

Thank you for the feedback. I'll send a V2 of the patch.

Greetings,
Mark

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

* [PATCH V2] libsdl2: Add directfb to PACKAGECONFIG rdepends
  2020-11-23 19:13 [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends Mark Jonas
  2020-11-23 19:54 ` [OE-core] " Andre McCurdy
@ 2020-11-24 19:32 ` Mark Jonas
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Jonas @ 2020-11-24 19:32 UTC (permalink / raw)
  To: Andre McCurdy, richard.purdie; +Cc: openembedded-core, Mark Jonas

PACKAGECONFIG[directfb] already adds directfb to the build
dependencies. But the automatically generated runtime
dependencies do not add the directfb package to the runtime
dependencies. Most likely this happens because libsdl2 does not link
against directfb but uses dlopen() or similar. Thus, the runtime
dependency to directfb needs to be declared explicitly.

Signed-off-by: Mark Jonas <toertel@gmail.com>
---
Changes in v2:
- Add directfb as a rdepends instead of a rrecommends.
- Rework commit message.

 meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
index 2ef7d2e5ef..5fa99821c4 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
@@ -58,7 +58,7 @@ PACKAGECONFIG ??= " \
 "
 PACKAGECONFIG[alsa]       = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
 PACKAGECONFIG[arm-neon]   = "--enable-arm-neon,--disable-arm-neon"
-PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb"
+PACKAGECONFIG[directfb]   = "--enable-video-directfb,--disable-video-directfb,directfb,directfb"
 PACKAGECONFIG[gles2]      = "--enable-video-opengles,--disable-video-opengles,virtual/libgles2"
 PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
--
2.25.1

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

end of thread, other threads:[~2020-11-24 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-23 19:13 [PATCH] libsdl2: Add directfb to PACKAGECONFIG rdepends Mark Jonas
2020-11-23 19:54 ` [OE-core] " Andre McCurdy
2020-11-24 15:52   ` Richard Purdie
2020-11-24 19:04     ` Mark Jonas
2020-11-24 19:32 ` [PATCH V2] " Mark Jonas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox