pmatilai left a comment (rpm-software-management/rpm#2760)

This is a super annoying thing. Sanity demands we do this change, but doing so 
would cause silent breakage on recompilation. Which is just ... something you 
don't do. We'd either need to either drop the RPMTAG_*SIZE* names entirely to 
force a break for everything using those. Which also seems like a thing you 
don't do, especially in a release where you're not planning to bump the soname, 
but otherwise too.

I'm starting to think the only option to get this done is to silently convert a 
mismatching numeric type header data to the requested one on rpmtdGetUint*() 
calls, instead of just returning NULL. Because rpmtdGetUint*() returns pointers 
to the data, not the numbers themselves, it'd need to convert all of the data 
in the block, and allocate a new one for the converted thing. Seems a bit 
hairy, but then it also seems the only way to get this done.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2760#issuecomment-2753561279
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2760/2753561...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to