Bug 27637 - find-debuginfo.sh depends on RPM_ environment variables
Summary: find-debuginfo.sh depends on RPM_ environment variables
Status: NEW
Alias: None
Product: debugedit
Classification: Unclassified
Component: find-debuginfo (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-23 14:42 UTC by Mark Wielaard
Modified: 2021-05-06 10:11 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2021-03-23 14:42:14 UTC
The find-debuginfo.sh scripts only works correctly when the following (rpm) environment variables are set:

RPM_BUILD_ROOT
RPM_PACKAGE_NAME
RPM_PACKAGE_VERSION
RPM_PACKAGE_RELEASE
RPM_ARCH

We must find a better way to provide this information to the find-debuginfo.sh scripts that isn't dependent on rpm setting these before calling find-debuginfo.sh so that it can be used with other packaging tools.
Comment 1 Panu Matilainen 2021-05-06 10:11:01 UTC
I'd collapse that into two arguments, one for taking the buildroot equivalent and another for the package nevra (or similar). Rpm needs slight modifications anyhow due to the split, we can just as easily add these to the calling macro.