Re: [Rpm-maint] [rpm-software-management/rpm] Enhance requires with version information from the build root. (PR #2372)

2024-01-31 Thread Gordon Messmer
I'd been meaning to come back to this quite a while ago, but I got sick and that put me out for a *long* time. I still think that *something* should be done with the ELF dep generator, but more discussion would be helpful. I mentioned that Debian's approach came up in discussions. On one

Re: [Rpm-maint] [rpm-software-management/rpm] Allow to specify a default for bcond features in a macro file (PR #2405)

2024-01-31 Thread Florian Festi
Well turns out this actually works. But may be not the way you expected... and that's why we need docs. As far as I understand this `%bcond_default` is just a helper macro (and should be prepended with `__`) and the user/distro is supposed to declare %bcond_default_foo manually. With that

Re: [Rpm-maint] [rpm-software-management/rpm] Allow to specify a default for bcond features in a macro file (PR #2405)

2024-01-31 Thread Florian Festi
Guess we want `%__bcond_default` and `%bcond_default` for declaring the `%bcond_default_foo` macro even if that is slightly silly. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2405#issuecomment-1919596356 You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] add build directory auto path to %autosetup step (PR #2859)

2024-01-31 Thread Matteo Croce
@teknoraver pushed 1 commit. 61abc03412741efe05730e5d2d405c155a9ceac4 add build directory auto path to %autosetup -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2859/files/170bfc9dcd8e04b5a6681a56dbaa9414f6d3a2a5..61abc03412741efe05730e5d2d405c155a9ceac4 You are

Re: [Rpm-maint] [rpm-software-management/rpm] Is there available a macro with package name during processing `%files` section? (Discussion #2876)

2024-01-31 Thread Panu Matilainen
Yes, I get that you have repetitive sections. Like I've been telling you: script it (build scriptlets are shell scripts, you can have functions in there) or macroize it, with parameters to allow for the variety. The package name in macros would not be helpful here at all. -- Reply to this

[Rpm-maint] [rpm-software-management/rpm] Add a build option for enabling undefined behavior sanitizer, use for CI (PR #2881)

2024-01-31 Thread Panu Matilainen
Similar to ASAN, now that we can this is a nice and cheap way to keep compiler gremlins at bay. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2881 -- Commit Summary -- * Add a build option for enabling undefined behavior

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for address-sanitizer builds and enable on CI (PR #2879)

2024-01-31 Thread Panu Matilainen
Merged #2879 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2879#event-11652142792 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Add a build option for enabling undefined behavior sanitizer, use for CI (PR #2881)

2024-01-31 Thread Panu Matilainen
@pmatilai pushed 1 commit. 8b8f905d29b6bf92fd36f712ef55a59360353405 Fix an UB in expression code (when built without -fno-strict-overflow) -- View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add a build option for enabling undefined behavior sanitizer, use for CI (PR #2881)

2024-01-31 Thread Panu Matilainen
Merged #2881 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2881#event-11652657021 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Add "local_generator" (PR #2734)

2024-01-31 Thread Florian Festi
I think the issue here that they can be both overriding existing ones or being an add-on. This makes it difficult to find a good name that covers both cases. OK, technically the macro doesn't override existing file attrs. Overriding/defining the macros does. So here we are registering file attr

Re: [Rpm-maint] [rpm-software-management/rpm] Allow to specify a default for bcond features in a macro file (PR #2405)

2024-01-31 Thread Florian Festi
I think I like "override" better. Probably because it emphasizes the out of order operation. We also need to add this to `manual/conditionalbuilds.md` as soon as we decided on a name. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add "local_generator" (PR #2734)

2024-01-31 Thread Vít Ondruch
`__embedded_file_attrs`? -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2734#issuecomment-1918940894 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] add build directory auto path to %autosetup step (PR #2859)

2024-01-31 Thread Florian Festi
This looks pretty good now. I wonder if the examples in the commit message would better be moved into a test case. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2859#issuecomment-1918773263 You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] add build directory auto path to %autosetup step (PR #2859)

2024-01-31 Thread Panu Matilainen
Oh yup, sorry for leaving you hanging in the air here. Technically this looks pretty good (but yup, could use a test-case). What this needs now is us thinking it all through, taking other plans into consideration and see how the details fit in with those. Don't despair in the meanwhile

Re: [Rpm-maint] [rpm-software-management/rpm] Package specific prep/build/... sections (Discussion #2849)

2024-01-31 Thread Florian Festi
Well, sub package definitions are normal preambles that can contain everything the main preamble can. But that doesn't mean those (e.g. `Source:`) directives are somehow attached to that sub package. Global directives are global no matter where they are. The build scripts also are global.

Re: [Rpm-maint] [rpm-software-management/rpm] Package specific prep/build/... sections (Discussion #2849)

2024-01-31 Thread Vít Ondruch
At this stage, I don't want to really constrain myself by `Source` being attached to subpackage or not. But if there is space for [append / prepend scriptlets](https://github.com/rpm-software-management/rpm/pull/2728), then I don't see the package specific scriptlets to being way off. --

Re: [Rpm-maint] [rpm-software-management/rpm] support reproducible automatic rebuilds (PR #2880)

2024-01-31 Thread Jan Zerebecki
> You've effectively created a situation where your builds are not reproducible > outside of your build system with the build system circumstances that created > it. That is incorrect. Pass the same 2 environment variables and it is reproducible. Same as before, just one additional variable.

Re: [Rpm-maint] [rpm-software-management/rpm] Allow to specify a default for bcond features in a macro file (PR #2405)

2024-01-31 Thread Tomasz Kłoczko
This PR is wrong and is not solving th issue. It is the problem that macros used with `%bcond_with foo`/`%bcond_without foo` like `%{?with_foo}` and `%{?without_foo}` are using presence or not that macro. If you will look closer on macros file ```spec # Internally, the `--with foo` option defines

Re: [Rpm-maint] [rpm-software-management/rpm] Enhance requires with version information from the build root. (PR #2372)

2024-01-31 Thread Michal Domonkos
@gordonmessmer, this PR seems to have stalled a bit. Do you still wish to have it reviewed and merged in its current state, or are they changes needed? In any case, I'll convert it to a draft now as there's some level of uncertainty around the right approach (based on reading the recent

Re: [Rpm-maint] [rpm-software-management/rpm] add build directory auto path to %autosetup step (PR #2859)

2024-01-31 Thread Matteo Croce
What about adding those two archives in `tree/master/tests/data/SOURCES` and add a test to `tests/rpmbuild.at`? -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2859#issuecomment-1919422189 You are receiving this because you are