[Rpm-maint] [rpm-software-management/rpm] Dynamic generator generates "invalid" srpm (Issue #3096)

2024-05-13 Thread Vít Ondruch
~~~ $ curl -OL https://github.com/rpm-software-management/rpm/raw/master/tests/data/SPECS/dynamic.spec % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 0 00 00 0

[Rpm-maint] [rpm-software-management/rpm] Free old cookie value to prevent a memory leak (PR #3095)

2024-05-13 Thread Florian Festi
This keeps the old behaviour of overriding the cookie. This may not me correct as the code looks like it reads the cookie from the srpm when doing rpmbuild --rebuild for the purpose of preserving it. Otoh the current behaviour with overriding it even in this case has been around for years. This

Re: [Rpm-maint] [rpm-software-management/rpm] sysusers.d support applies %attr() ownership before creating sysusers (Issue #3073)

2024-05-13 Thread Florian Festi
I started a discussion on the Fedora devel list: https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/IKWECWMBWN2IDKLHK3Q2TZKVSVFTXUNA/ -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Michal Domonkos
Merged #3094 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3094#event-12787374762 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Michal Domonkos
Oh, right, my bad... The SRPM is of course not used in the autopatch test specifically (the tarball is separate indeed). And it's fixed in the SRPM for a reason (to avoid the compiler warning, now error). -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Panu Matilainen
The modernization patch never was included in the src.rpm, it's only in separate specs based off that hello.spec. And, we still have the original hello-1.0.tar.gz to which the modernize patch applies (and is applied) in various other tests. -- Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Michal Domonkos
IOW, it seems like a noop patch now (haven't tested manually). -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3094#issuecomment-2107558740 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Michal Domonkos
I wonder what happened to the "modernization" patch, though :smile: Since the `hello.c` file now has the patch "applied" in the SRPM. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3094#issuecomment-2107555261 You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] cmake: move os-release parsing into oci branch (PR #3052)

2024-05-13 Thread Michal Domonkos
(As a cosmetic touch up, I've also switched up the lines with the `find_program()` ones so that the conditional below reads more naturally.) -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3052#issuecomment-2107493844 You are receiving

Re: [Rpm-maint] [rpm-software-management/rpm] cmake: move os-release parsing into oci branch (PR #3052)

2024-05-13 Thread Michal Domonkos
Merged #3052 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3052#event-12786825281 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

[Rpm-maint] [rpm-software-management/rpm] Fix test-suite under Fedora 40 modern C rules (PR #3094)

2024-05-13 Thread Panu Matilainen
Multiple tests are failing on Fedora 40 due to their distro-wide C modernization effort, which cause our ancient hello world package to fail due to implicit printf() function usage. There are two separate issues here: - hello-autopatch.spec had off-by-one in its patch application, causing the

Re: [Rpm-maint] [rpm-software-management/rpm] cmake: move os-release parsing into oci branch (PR #3052)

2024-05-13 Thread Michal Domonkos
The `DOCKERFILE` variable also needs to be set inside the block (since it uses `OS_NAME` as well). I've fixed up the commit accordingly. Otherwise, looks good, thanks for the patch! -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] cmake: move os-release parsing into oci branch (PR #3052)

2024-05-13 Thread Michal Domonkos
@dmnks pushed 1 commit. 4a8634a5776ce301c9145bffc27152923b3e4c8a cmake: move os-release parsing into oci branch -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/3052/files/c93c0530c6930165c7bbebd644050b7c14d14cea..4a8634a5776ce301c9145bffc27152923b3e4c8a You are

[Rpm-maint] [rpm-software-management/rpm] %autopatch -m/-M fall through silently if no patches are in range (Issue #3093)

2024-05-13 Thread Panu Matilainen
hello-autopatch.spec in our testsuite has this: ``` %patchlist hello-1.0-modernize.patch hello-1.0-install.patch %prep %autosetup -N %autopatch 1 %autopatch -m 2 ``` Spot the error? Automatic patch numbers start from zero, so we're telling it to apply hello-1.0-install.patch and then any

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: drop rpmlib() poisoning from --short-circuit'ed binaries (Issue #3091)

2024-05-13 Thread Zbigniew Jędrzejewski-Szmek
I think we just see this a bit differently… I don't think it's "encouraging" to allow something to be done via an explicit option. The reason why I'd prefer to have no marking at all is that personally, most commonly I use short-circuit to do repeat builds while tweaking either the %install or

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Panu Matilainen
Just noting it here that since distros are widely overriding %__spec_install_post, they'll need to update that to match the new logic in there. @ffesti's version placed the %_enable_debuginfo_packages test into %__spec_install_pre which isn't as widely overridden and so would be more backwards

[Rpm-maint] [rpm-software-management/rpm] RFE: cleanly support post-stripping actions in spec (Issue #3092)

2024-05-13 Thread Panu Matilainen
Looking at Fedora packages, there's a very distinct use-case for which multiple packages have to override the entire %__spec_install_post section: stripping changes checksums and the like, and any embedded signatures in files will have to be (re)done after the stripping. As the kernel.spec

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: drop rpmlib() poisoning from --short-circuit'ed binaries (Issue #3091)

2024-05-13 Thread Panu Matilainen
The bad is that it disagrees with rpm design philosophy where the package goes from a source to a binary in one uninterrupted reproducible (in a sense) go. It's of course possible to circumvent that in any number of ways, but encouraging it by making it easy is a whole can of worms. -- Reply

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: drop rpmlib() poisoning from --short-circuit'ed binaries (Issue #3091)

2024-05-13 Thread Zbigniew Jędrzejewski-Szmek
Just a watermark would be much better than _status quo_. > There have been people wanting to distribute packages built with > short-circuit, just to shorten their build times basically. Actually, I don't think this would be so bad. There are countless ways in which somebody can mess up a

Re: [Rpm-maint] [rpm-software-management/rpm] Upstream debuginfo enablement (PR #3040)

2024-05-13 Thread Florian Festi
Closed #3040. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3040#event-12783537201 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Upstream debuginfo enablement (PR #3040)

2024-05-13 Thread Florian Festi
This is superseded by #3085 which solves is similarly but even a bit cleaner. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3040#issuecomment-2106981500 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] rpmspec does not expect debuginfo rpm for a subpackage (Issue #1878)

2024-05-13 Thread Florian Festi
Closed #1878 as completed via #3085. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1878#event-12783522217 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Properly upstream debuginfo enablement (Issue #2204)

2024-05-13 Thread Florian Festi
Closed #2204 as completed via #3085. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2204#event-12783522105 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Florian Festi
Merged #3085 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3085#event-12783521877 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] rpmspec does not expect debuginfo rpm for a subpackage (Issue #1878)

2024-05-13 Thread Florian Festi
Closed #1878 as completed via 8535694599ee7f35747d44e2ea0a62dc5e8880e5. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1878#event-12783522273 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Florian Festi
Release notes need to mention this and that distribution need to drop the ``` %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ %%install\ %{nil} ``` hack in *-pm-config. So this probably needs to go into the "Compatibility" section at least in parts. -- Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Florian Festi
This is even cleaner than my own variant. Great so see we got this to the point where it can be done this cleanly. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3085#issuecomment-2106923789 You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] Always create %specpartsdir on build (PR #3084)

2024-05-13 Thread Florian Festi
Merged #3084 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3084#event-12783120373 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Dynamic spec generation depends on %setup (for no good reason) (Issue #3063)

2024-05-13 Thread Florian Festi
Closed #3063 as completed via #3084. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/3063#event-12783120658 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Always create %specpartsdir on build (PR #3084)

2024-05-13 Thread Florian Festi
Guess this is how the %specpartsdir should have been created in the first place. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3084#issuecomment-2106916674 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Panu Matilainen
Had a brief look at killing %__debug_package, but that gets more complicated than it should (and who's surprised?) So many packages rely on redefining %debug_package to %{nil} for disabling debuginfo generation that we just have to preserve that for the time being, and having %debug_package

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Panu Matilainen
Mentioned the %setup-less debuginfo case and added an explicit sub-test for it. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3085#issuecomment-2106811147 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Panu Matilainen
@pmatilai pushed 1 commit. 8abfcff2ec15d750f9f92d7a8053413fe888172e Add proper logic for debuginfo enablement -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/3085/files/d8ad95f93cfb362390e3f0249d9bcbcad7eb4d5a..8abfcff2ec15d750f9f92d7a8053413fe888172e You are

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper program logic for debuginfo enablement (PR #3036)

2024-05-13 Thread Panu Matilainen
Closed #3036. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3036#event-12782153559 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper program logic for debuginfo enablement (PR #3036)

2024-05-13 Thread Panu Matilainen
Closing in favor of #3085 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3036#issuecomment-2106783596 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Add proper logic for debuginfo enablement (PR #3085)

2024-05-13 Thread Panu Matilainen
Yeah it's nice to be able to use the dynamic spec stuff for our own purposes. To clarify, #3084 is only needed for the "rpmbuild %caps" test which intentionally does not use %setup to test that case, and whose debuginfo now gets generated. So that's basically another bug fixed / limitation

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: drop rpmlib() poisoning from --short-circuit'ed binaries (Issue #3091)

2024-05-13 Thread Panu Matilainen
> The whole idea of "prevent people from distributing them" doesn't make much > sense. You cannot build a package with --short-circuit "accidentally". It's a > very long option that you need to insert in the right place. And I guess > "otherwise" means "maliciously" here Obviously you can't

[Rpm-maint] [rpm-software-management/rpm] --short-circuit poisons the produced packages (Issue #3091)

2024-05-13 Thread Panu Matilainen
> Only with --short-circuit we "poison" the produced packages to prevent people from distributing them (accidentally or otherwise). It is a misfeature. It means that the produced packages cannot be compared and tested properly. In particular, `--short-circuit` is very often used