Re: [PATCH] rpm: make nativesdk-rpm rdepend on nativesdk-file
toggle quoted message Show quoted text
The use case I was fixing in:
was just about rpmdeps not being able to find rpmrc due to wrong path in the wrapper.
MAGIC was moved to environment-setup.d/rpm.sh just to set all variables (which used to be set in the wrappers) in the same place and to be able to remove the wrappers completely in the next commit.
It might be cleaner to set MAGIC variable in separate environment-setup.d/file.sh installed by nativesdk-file to make sure that it's set only together when corresponding magic.mgc is installed in SDK (but we'll still need to depend on file where needed). MAGIC variable was added in https://git.openembedded.org/openembedded-core/commit/?id=760103cdaed3e820888d8984ec0b76cfc831d534 but commit doesn't say why.
On Mon, Jan 16, 2023 at 1:47 PM Chen, Qi <Qi.Chen@...> wrote:
Richard, I'm going to check how rpm uses 'file' and will come up with a better solution.