On 3/22/23 10:36, Chen Qi via lists.openembedded.org wrote:
On 3/22/23 01:50, Ross Burton wrote:
On 21 Mar 2023, at 15:40, Chen Qi via lists.openembedded.org <[email protected]> wrote:
This recipe provides find-debuginfo which is used by rpm, more
specifically rpmbuild.

RPM upstream removed find-debuginfo and switched to use debugedit
in the following commit.

https://github.com/rpm-software-management/rpm/commit/04b0805a756cdd9466fb9dc717846f5bf15518cc

Without debugedit, rpmbuild fails to generate debuginfo package when
%debug_package is added to spec file.
Our spec files don’t do that, so why would this be a problem?

Are you building “native” spec files on target?

Ross

The original problem comes from users using nativesdk-rpm-build to generate debuginfo packages inside SDK.

This mainly affects target rpm-build and nativesdk-rpm-build. rpm-native is not affected, because our build system does not use %debug_package. And users would usually care about rpm on target and inside SDK, because that's the tool that would usually use to accomplish their tasks. Without this recipe, the 'rpmbuild' lacks the ability to generate debuginfo package. We can also see from the following link that RPM treats debugedit as a requirement.

https://github.com/rpm-software-management/rpm/blob/master/INSTALL

Regards,
Qi

I'd like to add that this problem is a regression. RPM before that commit (date: June 21, 2021) has find-debuginfo. We can see this from the rpm recipe. It has '${libdir}/rpm/debugedit' and '${libdir}/rpm/find-debuginfo.sh' in FILES:${PN}-build. That's why I used the words 'add back' in [PATCH 2/2].

Regards,

Qi







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178907): 
https://lists.openembedded.org/g/openembedded-core/message/178907
Mute This Topic: https://lists.openembedded.org/mt/97757563/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to