Re: [Rpm-maint] [rpm-software-management/rpm] Add popt to Requires. (#940)

2019-11-18 Thread Tomasz Kłoczko
IIRC on rpm5.org last time I saw popt 0.17 which had way more freshen translations (and more translations) and all .po files converted to UTF-8 + few minor code cleanups. Looks like rpm5.org domain disappeared :/ If that tree still is somewhere it would be good to merge all those changes. I shoul

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
Corrected patch in progress, will push tomorrow. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/938#issuecomment-555122938___ Rp

Re: [Rpm-maint] [rpm-software-management/rpm] Add popt to Requires. (#940)

2019-11-18 Thread Panu Matilainen
To elaborate a bit, the reason this bumps popt version dependency to 1.16 is that older versions did not *have* the pkgconfig file, and so cannot satisfy the dependency. The rpm.pc was added long before popt added its own, which is the main reason it's not there now. Expressing that dependency

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Panu Matilainen
Good point @mlschroe , we're still in a library here and the calling process may have forked children we don't know about, and whose termination should not affect our behavior. So we should only abort if the SIGCHLD originated from our forked gpg process, and probably use SA_NOCLDSTOP to ignore

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
> (A different fix that might also work (untested) would be to simply open the > named pipe for reading before doing the exec call. You can even do that > before the fork(). The opened file descriptor will not be used by gpg, but > that shouldn't hurt.) Turns out this won't work. When calling `

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Syntax sugar for bconds with inherited defaults (#941)

2019-11-18 Thread torsava
Brainstorming: * bcond_default_same + bcond_default_opposite -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/941#issuecomment-555008238___

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Syntax sugar for bconds with inherited defaults (#941)

2019-11-18 Thread Miro Hrončok
I agree. `%bcond_inherit` and `%bcond_antiinherit` are indeed not very good. Brainstorming some ideas: * bcond_default_as * bcond_default_like * bcond_like * bcond_as For the opposite relation, I'm unsure. Mayeb we can use something like ``` %bcond_like ! bootstrap ``` However I'm unsure i

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Syntax sugar for bconds with inherited defaults (#941)

2019-11-18 Thread torsava
I would find it useful as well. However, we should really consider the naming, as bconds are already confusing enough, this could become completely unreadable to people not-in-the-know. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
> (A different fix that might also work (untested) would be to simply open the > named pipe for reading before doing the exec call. You can even do that > before the fork(). The opened file descriptor will not be used by gpg, but > that shouldn't hurt.) This actually sounds pretty good. I'll gi

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
> A SIGCHLD can happen all the time for whatever reason, you need at least to > check if the process still exists and retry the Fopen if it does and the > error is EINTR. Could you please elaborate? The thing is, what we're trying to do here is to actually get Fopen unblock when a SIGCHLD happe

[Rpm-maint] [rpm-software-management/rpm] RFE: Syntax sugar for bconds with inherited defaults (#941)

2019-11-18 Thread Miro Hrončok
I often find myself writing code like this: ``` %bcond_with some_thing %if %{with some_thing} %bcond_with some_other_thing %else %bcond_without some_other_thing %endif ``` Or the other way around: ``` %bcond_with some_thing %if %{with some_thing} %bcond_without some_other_thing %else %bcond_wi

Re: [Rpm-maint] [rpm-software-management/rpm] Fixes for some issues on Arm platforms (#901)

2019-11-18 Thread Panu Matilainen
Oh, ugh. Now that I started rebasing rawhide to 4.15.1 I notice Fedora also reverted 8c3a7b8fa92b49a811fe36b60857b12f5d7db8a8 and upstream should've probably done the same because now the detection code can come up with architectures that are not in the rpmrc anymore. Which means that as far as

Re: [Rpm-maint] [rpm-software-management/rpm] Added option to rpmbuild to check the build dependencies (-bd, -td, -rd) (#876)

2019-11-18 Thread Florian Festi
ffesti commented on this pull request. > @@ -659,6 +674,10 @@ int main(int argc, char *argv[]) case 's': ba->buildAmount |= RPMBUILD_PACKAGESOURCE; break; +case 'd': This looks fishy. The `'r'` case also gets ``` ba->buildAmount |= RPMBUILD_PREP; ``` and I fail to see

Re: [Rpm-maint] [rpm-software-management/rpm] Added option to rpmbuild to check the build dependencies (-bd, -td, -rd) (#876)

2019-11-18 Thread Florian Festi
Ok, opposite to what is discussed in #875 this patch does not the same thing as `rpmbuild -bb --nobuild`. The later does not execute `%generate_buildrequires` while this patch clearly tries to do that. In it's function it is very close to -br but does not build the srpm if no issue is encountere

[Rpm-maint] RPM 4.15.1 released!

2019-11-18 Thread Panu Matilainen
This is first and foremost a critical bugfix release to address some regressions introduced in 4.15.0 and a few other important bugs in that release. This would've been called 4.15.0.1 if it wasn't for one thing: a new (optional) libgcrypt crypto backend, which is good news for those who wer

Re: [Rpm-maint] [rpm-software-management/rpm] RPM 4.15.1 (#923)

2019-11-18 Thread Panu Matilainen
Merged #923 into rpm-4.15.x. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/923#event-2807024391___ Rpm-maint mailing list Rpm-m

Re: [Rpm-maint] [rpm-software-management/rpm] RPM 4.15.1 (#923)

2019-11-18 Thread Panu Matilainen
Okay, that's it then. Thanks for the feedback. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/923#issuecomment-554960749___ Rpm-

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michael Schroeder
(A different fix that might also work (untested) would be to simply open the named pipe for reading before doing the exec call. You can even do that before the fork(). The opened file descriptor will not be used by gpg, but that shouldn't hurt.) -- You are receiving this because you are subsc

Re: [Rpm-maint] [rpm-software-management/rpm] Change in behaviour from 4.14 to 4.15 when calling rpmbuild --nobuild (#875)

2019-11-18 Thread Panu Matilainen
Right, I'll add a remark to 4.15.0 release notes about it then to make it official behavior change. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/875#issuecomment-55495

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michael Schroeder
A SIGCHLD can happen all the time for whatever reason, you need at least to check if the process still exists and retry the Fopen if it does and the error is EINTR. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://gi

Re: [Rpm-maint] [rpm-software-management/rpm] Change in behaviour from 4.14 to 4.15 when calling rpmbuild --nobuild (#875)

2019-11-18 Thread Florian Festi
Ok, as there is a supported way of doing this already I am just closing this. Adding a new top level command that does the same thing only would add to the confusion and create even more weird interactions with all the different parameters. -- You are receiving this because you are subscribed t

Re: [Rpm-maint] [rpm-software-management/rpm] Change in behaviour from 4.14 to 4.15 when calling rpmbuild --nobuild (#875)

2019-11-18 Thread Florian Festi
Closed #875. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/875#event-2806912594___ Rpm-maint mailing list Rpm-maint@lists.rpm

Re: [Rpm-maint] [rpm-software-management/rpm] Add popt to Requires. (#940)

2019-11-18 Thread Panu Matilainen
This effectively sets our popt version requirement to >= 1.16 from the current >= 1.13. It's not necessarily a bad thing (1.16 wasn't exactly released yesterday), but such a thing needs to be a conscious decision and documented appropriately in the commit message and INSTALL. -- You are receiv

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -276,7 +282,26 @@ static int runGPG(sigTarget sigt, const char *sigfile) rpmPopMacro(NULL, "__plaintext_filename"); rpmPopMacro(NULL, "__signature_filename"); +/* The child GPG process may terminate without ever opening the pipe (such

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
dmnks commented on this pull request. > @@ -276,7 +282,26 @@ static int runGPG(sigTarget sigt, const char *sigfile) rpmPopMacro(NULL, "__plaintext_filename"); rpmPopMacro(NULL, "__signature_filename"); +/* The child GPG process may terminate without ever opening the pipe (such +

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -276,7 +282,26 @@ static int runGPG(sigTarget sigt, const char *sigfile) rpmPopMacro(NULL, "__plaintext_filename"); rpmPopMacro(NULL, "__signature_filename"); +/* The child GPG process may terminate without ever opening the pipe (such

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
dmnks commented on this pull request. > @@ -276,7 +282,26 @@ static int runGPG(sigTarget sigt, const char *sigfile) rpmPopMacro(NULL, "__plaintext_filename"); rpmPopMacro(NULL, "__signature_filename"); +/* The child GPG process may terminate without ever opening the pipe (such +

Re: [Rpm-maint] [rpm-software-management/rpm] Stop blocking when GPG process dies prematurely (RhBug:1746353) (#938)

2019-11-18 Thread Michal Domonkos
dmnks commented on this pull request. > @@ -276,7 +282,26 @@ static int runGPG(sigTarget sigt, const char *sigfile) rpmPopMacro(NULL, "__plaintext_filename"); rpmPopMacro(NULL, "__signature_filename"); +/* The child GPG process may terminate without ever opening the pipe (such +