Dne 29. 07. 25 v 23:03 Fabio Valentini napsal(a):
On Tue, Jul 29, 2025 at 10:38 PM Elliott Sales de Andrade
<quantum.anal...@gmail.com> wrote:
On Tue, Jul 29, 2025 at 4:16 PM Jos de Kloe <josdek...@gmail.com> wrote:
Hi,

as suggested on this Directory_Replacement page I tried to solve this
problem by adding a little lua scriptlet.
Unfortunately it seems not to work for me so I must be missing some
details here.
You aren't missing anything. The scriptlet doesn't work, as the
transaction is checked by dnf before rpm scriptlets even happen. The
best workaround is to just _not_ change directories to symlinks or
vice versa. How to actually do that depends on the package, though.
Given the recent Change Proposal to hard-link duplicate files, maybe
the simplest option is to just make the symlinks into duplicate
directory copies.

I don't know why that documentation page still exists; I've never been
able to get it to work as documented, and it's been that way for a
long time:
https://pagure.io/packaging-committee/issue/1139
As I understand it, some behaviour of dnf changed a few years ago,
which made the approach documented in the Packaging Guidelines
("Directory_Replacement" page) no longer work.

So there's currently no really good / documented way to handle this case.
(And we should remove the docs for things that no longer work, I agree.)


There was recently this discussion:

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IDDIQWY7YO2V627KIIJCAPTWWIB7DO7H/

Wouldn't something like this help?


Vít



Fabio

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to