On 2025-03-10 2:30 AM, Daniel P. Berrangé wrote:
On Mon, Mar 10, 2025 at 10:26:12AM +0100, Miroslav Suchý wrote:
Dne 10. 03. 25 v 10:22 dop. Daniel P. Berrangé napsal(a):
Did something change in cpio, or has it always been broken for regular file
to directory replacement too, and our docs were thus always incomplete ?
It was always this way.

The same for replacing a file with symlink. Or vice versa.
Ok, so the packaging docs should say that /any/ change in file type between
dir, regular & symlink needs special handling with lua scriptlets. I'll see
about submitting a docs patch.


This topic has come up a few times this year, and it seems like working around RPM's limitations with Lua scripts doesn't work in some situations, including system upgrades:

https://bugzilla.redhat.com/show_bug.cgi?id=2406164

I'm seeing a fair number of users report that this issue prevents them from updating to Fedora 43, and many of them are waiting, expecting the packager to resolve the problem.

I would suggest that Fedora's policies should express a very strong preference for avoiding Lua scripts by simply renaming the directory that contains contents that need to change.

That is, if "/usr/lib64/<app>/foo" is going to change from a directory to something else (or visa versa), then the package should simply use a different prefix, such as "/usr/lib64/<app>2"

I think this approach is similar to using "epoch" to resolve a version ordering issue.

Such a change could be reverted after two Fedora releases.

--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to