From: Randolph Sapp <rs@ti.com>
To: Max Krummenacher <max.oss.09@gmail.com>
Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>,
Max Krummenacher <max.krummenacher@toradex.com>
Subject: Re: [EXTERNAL] Re: [oe][OE-core][Patch 0/1] Revert "bin_package.bbclass: Inhibit the default dependencies"
Date: Mon, 28 Aug 2023 14:45:09 -0500 [thread overview]
Message-ID: <76528db0-dba6-4e63-9477-e74f37c85fea@ti.com> (raw)
In-Reply-To: <0dc0924a-587e-44f5-a264-b78a6f470412@ti.com>
On 8/28/23 11:22, Randolph Sapp wrote:
> On 8/28/23 10:09, Max Krummenacher wrote:
>> On Mon, Aug 28, 2023 at 5:01 PM Max Krummenacher via
>> lists.openembedded.org <max.oss.09=gmail.com@lists.openembedded.org>
>> wrote:
>>>
>>> On Sun, Aug 27, 2023 at 11:23 PM Peter Kjellerstedt
>>> <peter.kjellerstedt@axis.com> wrote:
>>>>
>>>>> -----Original Message-----
>>>>> From: Max Krummenacher <max.oss.09@gmail.com>
>>>>> Sent: den 27 augusti 2023 10:10
>>>>> To: openembedded-core@lists.openembedded.org; Peter Kjellerstedt
>>>>> <peter.kjellerstedt@axis.com>
>>>>> Cc: Max Krummenacher <max.krummenacher@toradex.com>; Randolph Sapp
>>>>> <rs@ti.com>
>>>>> Subject: [oe][OE-core][Patch 0/1] Revert "bin_package.bbclass:
>>>>> Inhibit the
>>>>> default dependencies"
>>>>>
>>>>> From: Max Krummenacher <max.krummenacher@toradex.com>
>>>>>
>>>>> Hi
>>>>>
>>>>> With commit d1d09bd4d7 ("bin_package.bbclass: Inhibit the default
>>>>> dependencies") applied I'm getting a lot of these errors, i.e. qa
>>>>> does miss libc and compiler provided libs:
>>>>>
>>>>> ERROR: ti-img-rogue-umlibs-23.1.6404501-r2 do_package_qa: QA Issue:
>>>>> /usr/lib/libusc.so.23.1.6404501 contained in package
>>>>> ti-img-rogue-umlibs
>>>>> requires ld-linux-aarch64.so.1(GLIBC_2.17)(64bit), but no providers
>>>>> found
>>>>> in RDEPENDS:ti-img-rogue-umlibs? [file-rdeps]
>>>>> ERROR: ti-img-rogue-umlibs-23.1.6404501-r2 do_package_qa: QA Issue:
>>>>> /usr/lib/libusc.so.23.1.6404501 contained in package
>>>>> ti-img-rogue-umlibs
>>>>> requires libc.so.6(GLIBC_2.17)(64bit), but no providers found in
>>>>> RDEPENDS:ti-img-rogue-umlibs? [file-rdeps]
>>>>> ERROR: ti-img-rogue-umlibs-23.1.6404501-r2 do_package_qa: QA Issue:
>>>>> /usr/lib/libufwriter.so.23.1.6404501 contained in package
>>>>> ti-img-rogue-
>>>>> umlibs requires libstdc++.so.6(GLIBCXX_3.4.14)(64bit), but no
>>>>> providers
>>>>> found in RDEPENDS:ti-img-rogue-umlibs? [file-rdeps]
>>>>>
>>>>> Reverting the commit makes the build pass, alternatively adding
>>>>> to depends in the recipe which is using the bin_package class
>>>>> fixes it too:
>>>>>
>>>>> DEPENDS += " virtual/${TARGET_PREFIX}compilerlibs virtual/libc"
>>>>>
>>>>> I'd prefer reverting removing the default dependencies over fixing
>>>>> each of the recipes which do use the bin_package class to actually
>>>>> install binaries running in the target user space.
>>>>>
>>>>> Any opinions?
>>>>
>>>> Bummer. I guess we will have to update our recipes individually
>>>> instead. :(
>>>
>>> From the bugzilla entry [1] which added the feature and from the commit
>>> adding the class [2] it looks to me that the class should simplify
>>> adding
>>> binaries externally built for the target.
>>> Having the users of the class having to add the used libc / compiler
>>> shared objects to not trigger a qa warning seems really wrong to me.
>>>
>>> Additionally I don't see the advantage in not installing the base
>>> dependencies. Doing anything usefull in a build would need to build
>>> them anyway for some other recipe, so one would save creating a few
>>> hard links. Do I miss something here?
>>>
>>> So IMHO a recipe which inherits the class and really does not like the
>>> default dependencies should add the `INHIBIT_DEFAULT_DEPS = "1"`.
>>
>> Adding the missing links, sorry about that:
>> [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=1592
>> [2]
>> https://www.openembedded.org/pipermail/openembedded-core/2012-September/067782.html
>
> Thanks for bringing this to light Max. I have no opinion in this. I
> understand not wanting to implicitly depending on anything. After all,
> explicit is always nice for those that don't want to navigate the full
> include chain to figure out recipe dependencies. It's also nicer for a
> minimal build (though arguably not in this case because these are core
> packages we're depending on).
>
> If this is going to be the standard moving forward please let me know so
> I can update this recipe accordingly.
Scratch that, I have an opinion now. Removing hidden base package
dependencies that QA steps explicitly rely is a bad idea. Please revert
this.
next prev parent reply other threads:[~2023-08-28 19:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-27 8:09 [oe][OE-core][Patch 0/1] Revert "bin_package.bbclass: Inhibit the default dependencies" Max Krummenacher
2023-08-27 8:09 ` [oe][OE-core][Patch 1/1] " Max Krummenacher
2023-10-27 20:13 ` Peter Kjellerstedt
2023-08-27 21:23 ` [oe][OE-core][Patch 0/1] " Peter Kjellerstedt
2023-08-28 15:01 ` Max Krummenacher
[not found] ` <177F942FA4953D34.1521@lists.openembedded.org>
2023-08-28 15:09 ` Max Krummenacher
2023-08-28 16:22 ` [EXTERNAL] " Randolph Sapp
2023-08-28 19:45 ` Randolph Sapp [this message]
2023-08-28 19:50 ` Randolph Sapp
2023-08-28 17:10 ` Ryan Eatmon
2023-08-31 17:28 ` Peter Kjellerstedt
[not found] ` <178087E768B3479B.27804@lists.openembedded.org>
2023-10-07 0:10 ` Peter Kjellerstedt
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=76528db0-dba6-4e63-9477-e74f37c85fea@ti.com \
--to=rs@ti.com \
--cc=max.krummenacher@toradex.com \
--cc=max.oss.09@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=peter.kjellerstedt@axis.com \
/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 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.