Re: RPM dependency generator sanity check

2024-09-06 Thread Dridi Boukelmoune
On Tue, Sep 3, 2024 at 1:50 PM Richard W.M. Jones wrote: > > On Sun, Sep 01, 2024 at 09:54:38PM +, Dridi Boukelmoune wrote: > > On Sun, Sep 1, 2024 at 9:40 PM Dridi Boukelmoune > > wrote: > > > > > > > > I can't say I'm proud of this hack but at least, the error message > > > > > shows up to

Re: RPM dependency generator sanity check

2024-09-03 Thread Richard W.M. Jones
On Sun, Sep 01, 2024 at 09:54:38PM +, Dridi Boukelmoune wrote: > On Sun, Sep 1, 2024 at 9:40 PM Dridi Boukelmoune > wrote: > > > > > > I can't say I'm proud of this hack but at least, the error message > > > > shows up to give a clue. I can finally add some error handling to my > > > > depende

Re: RPM dependency generator sanity check

2024-09-01 Thread Dridi Boukelmoune
On Sun, Sep 1, 2024 at 9:40 PM Dridi Boukelmoune wrote: > > > > I can't say I'm proud of this hack but at least, the error message > > > shows up to give a clue. I can finally add some error handling to my > > > dependency generators. > > > > Yes, currently the exit code is ignored, and the only w

Re: RPM dependency generator sanity check

2024-09-01 Thread Dridi Boukelmoune
> > I can't say I'm proud of this hack but at least, the error message > > shows up to give a clue. I can finally add some error handling to my > > dependency generators. > > Yes, currently the exit code is ignored, and the only way to break the > build is to generate a line that does not parse as

Re: RPM dependency generator sanity check

2024-09-01 Thread Fabio Valentini
On Sun, Sep 1, 2024 at 5:31 PM Dridi Boukelmoune wrote: > > > I made the scripts end with something written to stderr followed by an > > explicit "exit 1", and I can see the error message, but then it just > > succeeds. So my question is how to make RPM register that a dependency > > generator fai

Re: RPM dependency generator sanity check

2024-09-01 Thread Dridi Boukelmoune
> I made the scripts end with something written to stderr followed by an > explicit "exit 1", and I can see the error message, but then it just > succeeds. So my question is how to make RPM register that a dependency > generator failed and in turn fail the build? I tried following the rpmdeps code

RPM dependency generator sanity check

2024-08-30 Thread Dridi Boukelmoune
Greetings, I recently implemented generators for Hare modules (provides and requires so far) and my current work in progress does what it says on the tin. However, trying to answer the question "what if the package installs garbage" I was not able to fail a package build with the dependency genera