Open jnpkrn opened 7 years ago
Yup. It's in one of those > 100 macro expansions within rpm which have no way of returning an error, eg rpmExpand() has no way of indicating an error as it is, and there's no other API that it can be directly replaced with in all cases.
Which is not to say it shouldn't be fixed but it's far more laborous than just adding a missing check for an error code someplace.
So this is basically waiting on a large scale refactoring effort of the macro handling.
That, or some less intrusive way of stopping rpm from macro errors after they occurrer. rpmMacroWasError() that gives the return code of previous expansion at couple of strategic locations could perhaps be used to home in on the ballpark of last failed expansion without changing all of those rpmExpands().
Currently:
So the process doesn't fail and continues despite an internal error with undesired consequences. It would be expected that the build fails instead, not masking any subtle issues.