Re: [Fedora-packaging] Re: Scriptlet to replace a directory can cause infinite loop in update

2025-03-06 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 05, 2025 at 10:58:40PM -0600, Jason Tibbitts via packaging wrote: > > Zbigniew Jędrzejewski-Szmek writes: > > > Let's take a step back. Does it make sense to implement complicated > > and fragile scriptlets in packages? > > No, of course not. > > > Can we *please* get rid of thi

Re: [Fedora-packaging] Scriptlet to replace a directory can cause infinite loop in update

2025-03-05 Thread Jason Tibbitts
> Zbigniew Jędrzejewski-Szmek writes: > Let's take a step back. Does it make sense to implement complicated > and fragile scriptlets in packages? No, of course not. > Can we *please* get rid of this footgun that has been a continous > source of problems? The mantra on the packaging committ

Scriptlet to replace a directory can cause infinite loop in update

2025-03-05 Thread Jarek Prokop
Hi, recently we were faced with a bug that caused an infinite loop in a container. It was from a package (node.js) retaining a scriptlet to replace a directory as recommended in Fedora Guidelines [0]. There the errno and reason returned [1] is effectively ignored. Only whether the operation

Re: [Fedora-packaging] Scriptlet to replace a directory can cause infinite loop in update

2025-03-05 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 05, 2025 at 10:47:36AM +0100, Jarek Prokop via packaging wrote: > Hi, > > recently we were faced with a bug that caused an infinite loop in a > container. It was from a package (node.js) retaining a scriptlet to replace > a directory as recommended in Fedora Guidelines [0]. > Thoughts?