Re: [Rpm-maint] [rpm-software-management/rpm] Resurrect %_missing_doc_files_terminate_build functionality (#849)

2019-09-20 Thread ニール・ゴンパ
Conan-Kudo approved this pull request. -- 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/849#pullrequestreview-291318802___

Re: [Rpm-maint] [rpm-software-management/rpm] Resurrect %_missing_doc_files_terminate_build functionality (#849)

2019-09-20 Thread ニール・ゴンパ
@pmatilai I'd think this does belong in rpm-4.15 too... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Peter Jones
@vathpela pushed 1 commit. 3046bf9b66f8098bacc48be7fe141b91aea87410 Add all of the rpmbuild macro aliases to rpmspec as well -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Peter Jones
vathpela commented on this pull request. > @@ -221,8 +221,8 @@ rpmbuild alias --buildpolicy --define '__os_install_post > %{_rpmconfigdir}/brp-!# rpmbuild alias --sign \ --pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Michael Schroeder
Ah, I get what you mean. I think we should print a bare word error if the expanded string does not start with a digit. This makes it similar to what `%{expr:...}` and `%if` does: ``` $ ./rpm --define "aaa a" --define "bbb 123b" --eval '%{expr: %aaa }' error: bare words are no longer supported,

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Panu Matilainen
Not sure that message makes it any clearer, I probably failed to explain why I find it confusing to begin with. I guess the problem is that it doesn't explain *why* it expects an integer there, and that makes it sound like it will *only* accept a number there, which in a macro context seems

Re: [Rpm-maint] [rpm-software-management/rpm] Hidden doc copy failures in rpm-4.11.x (#808)

2019-09-20 Thread Panu Matilainen
Thanks for the report, but rpm 4.11 is long since unmaintained upstream -> wontfix. In current upstream version, those copying errors are intentionally ignored because rpm now checks for the file presence separately (see commit 1ba05a7456aafb52e89df5dd42d494d09f9ea6a4), but 4.11.x cannot do so

Re: [Rpm-maint] [rpm-software-management/rpm] Hidden doc copy failures in rpm-4.11.x (#808)

2019-09-20 Thread Panu Matilainen
Closed #808. -- 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/808#event-2650199517___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] _missing_doc_files_terminate_build may be ignored (#807)

2019-09-20 Thread Panu Matilainen
Thanks for the report. Fix proposed in PR #849 -- 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/807#issuecomment-533535520___

[Rpm-maint] [rpm-software-management/rpm] Resurrect %_missing_doc_files_terminate_build functionality (#849)

2019-09-20 Thread Panu Matilainen
Fixes regression from commit 1ba05a7456aafb52e89df5dd42d494d09f9ea6a4 where doc files always terminate build regardless of the macro value. Add a testcase to go. Fixes #807 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/849

Re: [Rpm-maint] [rpm-software-management/rpm] %_build_cpu is untranslated in macros file (#791)

2019-09-20 Thread Panu Matilainen
Sorry, I haven't commented because I don't really have much insight to this thing. What I do know is that originally that the build, host and target stuff was originally supposed to reflect autoconf's cross-compilation switches by the same names [1], but either it was woefully misunderstood by

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Michael Schroeder
Sorry for the multiple force pushes, I had a little fight with git. I now use "macro expansion did not return a number" as error message. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Michael Schroeder
@mlschroe pushed 1 commit. 52bd4a99ca452a974b248cf9291454e992e263b3 Implement short-circuit for logical and ternary operators -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Panu Matilainen
Yeah, looks that little bit nicer that way, thanks. I don't particularly love camelCase but when everything in the surroundings uses it... There's an unrelated indentation change for the division-by-zero case, and trailing whitespace after the doExpressionExpansion() function. I could live

Re: [Rpm-maint] [rpm-software-management/rpm] Fix double-free on ternary operator parsing error (#847)

2019-09-20 Thread Panu Matilainen
Merged #847 into master. -- 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/847#event-2649806281___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Michael Schroeder
I switched the helper function to camelCase and moved the digit check into a separate function to make the code easier to read. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Support new %[ ] expression expansion syntax (#846)

2019-09-20 Thread Michael Schroeder
@mlschroe pushed 2 commits. 713d13cb402a76f58be3513fdd8e197754390265 Add support for primary expansion to the expression parser 11e11cf1fc187efc50e4cdff1036355032f97be3 Implement short-circuit for logical and ternary operators -- You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Add 'string' into query format extensions in man-pages (#837)

2019-09-20 Thread Panu Matilainen
Merged #837 into master. -- 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/837#event-2649526462___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Add 'string' into query format extensions in man-pages (#837)

2019-09-20 Thread Panu Matilainen
Thanks. -- 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/837#issuecomment-533460271___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] macros: Add %version_notilde (#722)

2019-09-20 Thread Panu Matilainen
There might well be a case behind this, but not in this form. Lets close this and continue elsewhere. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] macros: Add %version_notilde (#722)

2019-09-20 Thread Panu Matilainen
Closed #722. -- 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/722#event-2649523748___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Make brp-strip run in parallel (#762)

2019-09-20 Thread Panu Matilainen
@ffesti, ping? This seems a bit forgotten... -- 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/762#issuecomment-533459277___

Re: [Rpm-maint] [rpm-software-management/rpm] Localize our chroot in/out operations to minimize time spent inside (#836)

2019-09-20 Thread Panu Matilainen
Refactored into two commits to eliminate the indentation problem in the first version, and clarified commit message. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFC: Limit build parallelism by available memory too, add tunables (#804) (#821)

2019-09-20 Thread Panu Matilainen
> Evidently better way is to emit an error. No kidding? :joy: -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add 'string' into query format extensions in man-pages (#837)

2019-09-20 Thread pavlinamv
@pavlinamv pushed 1 commit. e9d4397003b99f0636bbaabb6a9b151145680a1e Add 'string' into query format extensions in man-pages -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Fix double-free on ternary operator parsing error (#847)

2019-09-20 Thread Panu Matilainen
Added the rdToken() checks + the generic syntax error. Inconsistent error is much better than no error message at all... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Panu Matilainen
pmatilai requested changes on this pull request. See above. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add 'string' into query format extensions in man-pages (#837)

2019-09-20 Thread Panu Matilainen
Ehm. I'm not arguing *against* this addition. I just ask that while we're at it, you *also* document that it's the default format! A simple "(default)" would do. I sure don't want to do *another* pull request just to add that! -- You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Add 'string' into query format extensions in man-pages (#837)

2019-09-20 Thread pavlinamv
Mentioning ":string" in that part of man page, will not cause any problems. But if ":string" is not there, it looks like that it is not supported. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Fix double-free on ternary operator parsing error (#847)

2019-09-20 Thread Panu Matilainen
@pmatilai pushed 2 commits. fa72dae56e925a40df1c9d9a5be67c37bc34e10b Always check for rdToken() return codes in expression parsing be0700f3dfdb215a171a89d7304d6c0c174f3556 Ensure expression syntax errors get at least a generic error message -- You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -221,8 +221,8 @@ rpmbuild alias --buildpolicy --define '__os_install_post > %{_rpmconfigdir}/brp-!# rpmbuild alias --sign \ --pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \