Re: [Rpm-maint] [rpm-software-management/rpm] Properly quote %sources and %patches (#1781)

2021-09-23 Thread Florian Festi
I'll adjust this to use the new macro as soon as it is upstream. -- 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] brp-strip fails with Guile objects on Fedora 35 (#1765)

2021-09-23 Thread Florian Festi
These changes do both to be on the save side. On the longer term the question is if the Guile object really should not be stripped. `eu-strip` should be able to strip those, too. Not sure if we want to switch over to that in general. -- You are receiving this because you are subscribed to

Re: [Rpm-maint] [rpm-software-management/rpm] Add %{shescape:...} macro for single quoting with escapes for the shell (#1783)

2021-09-24 Thread Florian Festi
Merged #1783 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/1783#event-5355924327___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-10-13 Thread Florian Festi
@ffesti pushed 1 commit. c1d631c94bf078936fcfe07b136344f924a112cd Require package names to be valid provides -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-10-13 Thread Florian Festi
@ffesti commented on this pull request. > @@ -19,6 +19,7 @@ #undef HTDATATYPE #define ALLOWED_CHARS_NAME ".-_+%{}" +#define ALLOWED_FIRSTCHARS_NAME "_%{}" Ok, after reading `rpmCharCheck()` 3 more times: Looks like `%{}`are actually legal in dependency names and only create a warning. So

Re: [Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-10-13 Thread Florian Festi
@ffesti pushed 1 commit. 2019abae2439c5d3d4e250098b093e648a1f72d7 Require package names to be valid provides -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-10-14 Thread Florian Festi
@ffesti commented on this pull request. > @@ -19,6 +19,7 @@ #undef HTDATATYPE #define ALLOWED_CHARS_NAME ".-_+%{}" +#define ALLOWED_FIRSTCHARS_NAME "_%{}" OK, so this is not by accident but to not blow up for unexpanded macros that may just not be available at that point in time. --

Re: [Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-10-14 Thread Florian Festi
@ffesti pushed 1 commit. a5e67695d970c964089470001f7fad1d99354fac Require package names to be valid provides -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] ELF files left when remove same package in different arch (Issue #1800)

2021-10-19 Thread Florian Festi
It's quite possible that this is a bug. Can you still please verify that these files are not owned by another package by running `rpm -qf /usr/bin/strip`? Thanks! -- 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] Clean up shescape macro implementation (#1793)

2021-10-08 Thread Florian Festi
Merged #1793 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/1793#event-5434455706___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] brp-strip fails with Guile objects on Fedora 35 (#1765)

2021-09-28 Thread Florian Festi
Closed #1765 via ee5d150aea19ebd10569cd805917acc583719e49. -- 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] Don't strip *.go and ELF files with "no maschine" (#1780)

2021-09-28 Thread Florian Festi
Merged #1780 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/1780#event-5372346573___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Don't strip *.go and ELF files with "no maschine" (#1780)

2021-09-28 Thread Florian Festi
I talked to mjw about this. eu-strip would probably be able to strip even these Guile files. I don't really know whether they should be stripped or not, though. Excluding the Golang (source) files should really not matter but this is to be on the save side. And yes this whole brp business

Re: [Rpm-maint] [rpm-software-management/rpm] Check file iterator for being NULL consistently (#1784)

2021-09-28 Thread Florian Festi
Merged #1784 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/1784#event-5372460114___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Check for NULL after dereference in rpmfi.c (#1782)

2021-09-28 Thread Florian Festi
Closed #1782 via #1784. -- 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/1782#event-5372460130___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Check file iterator for being NULL consistently (#1784)

2021-09-28 Thread Florian Festi
Yeah, not beautiful but just good enough for now. -- 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/1784#issuecomment-929018182___

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-29 Thread Florian Festi
Ok, more thorough investigation turns up a few more problems than expected: - Macro parameters are split by ` splitQuoted()` https://github.com/rpm-software-management/rpm/blob/master/rpmio/macro.c#L930 - It uses Unit Separator (ASCII 0x1f) as separator and ignores quotes - Non UTF-8 characters

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-29 Thread Florian Festi
Skipping over `"\ "` and `"\^t"` in `splitQuoted()` makes `%autosetup -n auto\ foo` work. Still need to figure out what this all breaks. It is also not compatible with `shescape` which uses single quotes. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-29 Thread Florian Festi
OK, to be more clear with this: We currently don't have any (working) means to have spaces in macro parameters (with the exception of built-in macros which are different in all kind of wonderful ways). I wonder if we actually need two ways for doing that. One that is stripped during parsing

Re: [Rpm-maint] [rpm-software-management/rpm] [regression?] rpm 4.17 can't find group declared inside sceleton package (#1789)

2021-10-01 Thread Florian Festi
This is caused by RPM no longer using the user and group information from out side of the change root. Earlier versions were not properly using the inside files in all cases. The uid and gid of these files are set before they are moved in place. So the shadow group does not exist yet. While

Re: [Rpm-maint] [rpm-software-management/rpm] [regression?] rpm 4.17 can't find group declared inside sceleton package (#1789)

2021-10-01 Thread Florian Festi
Oh, right. The patch does only move the `rpmugInit` call to later. I first thought it now does that whenever entering the chroot and was wondering why the commit message is more vocal about that. I still have this vivid memory of rpm no longer using the the files from outside the chroot. But I

[Rpm-maint] [rpm-software-management/rpm] Require package names to be valid provides (#1778)

2021-09-20 Thread Florian Festi
Only allow alphanumeric or _ as first character. Also check the name of Obsoletes. Resolves: #1694 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1778 -- Commit Summary -- * Require package names to be valid provides --

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-22 Thread Florian Festi
Reopened #1644. -- 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/1644#event-5341789680___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Properly quote %sources and %patches (#1781)

2021-09-22 Thread Florian Festi
Yes, we need quoting at more places. Reopened #1644. -- 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] Properly quote %sources and %patches (#1781)

2021-09-22 Thread Florian Festi
Not sure if we can do a quoting macro. This patch has the benefit of running in lua and though work on the original content of the file name. A macro will always see the macro expanded version of the parameter. Not sure if there is a way around that with the current macro system - especially as

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-22 Thread Florian Festi
This needs the same kind of quoting as #1445 but at other places. %patches is not actually used by %autosetup. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Check file iterator for being NULL consistently (#1784)

2021-09-22 Thread Florian Festi
No point in allowing NULL only for one of the arguments. Thanks to ex0z3 (https://github.com/ex0z3) for reporting! Resolves: #1782 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1784 -- Commit Summary -- *

Re: [Rpm-maint] [rpm-software-management/rpm] Add %{shescape:...} macro for single quoting with escapes for the shell (#1783)

2021-09-22 Thread Florian Festi
Looks good to me. -- 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/1783#issuecomment-924876305___ Rpm-maint mailing list

[Rpm-maint] [rpm-software-management/rpm] Properly quote %sources and %patches (#1781)

2021-09-21 Thread Florian Festi
by enclosing them in single quotes (). Replace sigle quotes within with \ as needed for sh Resolves: #1445 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1781 -- Commit Summary -- *

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-21 Thread Florian Festi
See #1781 -- 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/1644#issuecomment-923858687___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-21 Thread Florian Festi
Yes, definitely a duplicate. Closing here - but working on the original issue. -- 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] rpm-build: %setup and %autosetup crashes on directories with spaces (#1644)

2021-09-21 Thread Florian Festi
Closed #1644. -- 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/1644#event-5334505537___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] [regression?] rpm 4.17 can't find group declared inside sceleton package (#1789)

2021-10-04 Thread Florian Festi
It won't solve the issue though, as the group still doesn't exist when the files are created. Guess something like `echo "shadow:x:404:" >> /etc/group` in %pre might do the trick. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

[Rpm-maint] [rpm-software-management/rpm] Don't strip *.go and ELF files with "no maschine" (#1780)

2021-09-21 Thread Florian Festi
Not 100% sure if this no machine business is 100% correct. But it looks like a better defense against `strip` failing than relying on the file name alone. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1780 -- Commit

[Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-09-05 Thread Florian Festi
as far as possible. This allows setting these tags during the build using the dynamic spec feature. Move copyTagsDuringParse requiredTags optionalTags isMemberInEntry() checkForValidArchitectures() checkForRequired() checkForDuplicates() fillOutMainPackage() copyInheritedTags() from

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-09-14 Thread Florian Festi
This is the major part of what is needed for #1240 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2646#issuecomment-1718917225 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Implement a declarative autobuild system (prototype) (PR #2620)

2023-08-24 Thread Florian Festi
The BuildRequires case is just one example of Preamble content. The dynamic spec feature will soon drop you into the preamble of the main package for each parsed file (PR coming soon). The other option (which is possible now) is to expand a macro directly where the Autobuild directive is

Re: [Rpm-maint] [rpm-software-management/rpm] Implement a declarative autobuild system (prototype) (PR #2620)

2023-08-24 Thread Florian Festi
Yeah, this needs to be non dynamic. But it can use dynamic spec in the implementation of the different build types. So this gets confusing quickly. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2620#issuecomment-1691676788 You are

Re: [Rpm-maint] [rpm-software-management/rpm] Implement a declarative autobuild system (prototype) (PR #2620)

2023-08-24 Thread Florian Festi
This needs some design document or at least section in the commit message. This looks awfully like it could also be done with a simple macro or lua script. So we need some explanation why this isn't done that way. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: optionally validate SPDX identifiers in the License field (Issue #2627)

2023-08-31 Thread Florian Festi
Issue is less the availability of tools but which one to use - and which dependencies we want to drag in. There is https://github.com/spdx with several relevant repositories. There also are the tools around http://reuse.software https://git.fsfe.org/reuse -- Reply to this email directly or

[Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-16 Thread Florian Festi
Avoid the now deprecated RSA and DSA data types and use the generic EVP_PKEY Resolves: #2294 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2723 -- Commit Summary -- * Move OpenSSL code to newer API -- File Changes --

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-11 Thread Florian Festi
@ffesti pushed 5 commits. 7258c44f688c7712af9cdcdb12227d3820e77879 Move checks and package initialization after build 80feaf69bf841293daa0707bccc546707ca7968e Remove checks during parsing of packages 2581fecd67178574f5e813e8c97fb5c21045d93f Always start parsing in the preable of the main

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-11 Thread Florian Festi
OK, everything that didn't get moved to its own ticket should be addressed. Renamed the constant to NOFINALIZE, fixed warnings and added to more test cases with parsing errors. I am a bit confused that giving Summary two times is only a warning and doesn't break the build. BUt that's not

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-11 Thread Florian Festi
@ffesti pushed 6 commits. a830cc6c8c009080a6d78b621c5206f2c4059bb2 Drop NVR parameter to make them easier to reuse 6bb9f49f4380c8ec96ea5ffe104116f97e693c6b Make functions available to be moved later on 7594a223af9cdd4a33f6857ecdc22df5ba84ed6b Move checks and package initialization after

Re: [Rpm-maint] [rpm-software-management/rpm] Provide dedicated option to query fake installed RPM packages with GPG keys associated with them (Issue #2404)

2023-10-17 Thread Florian Festi
Also `gpg-pubkey` is not the prefix of the name but the actual name. Otherwise `rpm -q gpg-pubkey` wouldn't work. The other gibberish is the hash of the key stuffed in version and release to make it unique. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Provide dedicated option to query fake installed RPM packages with GPG keys associated with them (Issue #2404)

2023-10-17 Thread Florian Festi
Right place for this would be the `rpmkeys` tool. There actually already is a - commented out - stub for `--list-keys` and `--delete-key` waiting for someone to come along and implement them. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-17 Thread Florian Festi
@ffesti pushed 1 commit. 009daa3ab584b0e271f08d717c19daaa18de3eed Move OpenSSL code to newer API -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2723/files/f23f894620350dbe35384eb22c88fbca51d0502e..009daa3ab584b0e271f08d717c19daaa18de3eed You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-17 Thread Florian Festi
@ffesti commented on this pull request. > if (!constructDSASigningKey(key)) goto done; if (!constructDSASignature(sig)) goto done; -if (DSA_do_verify(hash, hashlen, sig->dsa_sig, key->dsa_key) == 1) +pkey_ctx = EVP_PKEY_CTX_new(key->evp_pkey, NULL); +

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow overriding buildtime and hostname via environment variable (Issue #2603)

2023-10-17 Thread Florian Festi
OK, given that the `BUILDHOST` can already be set via `%_buildhost` what is still missing here? Or can we just close this ticket? -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2603#issuecomment-1766142951 You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] Trying to rebuild RPM SRPM package on RISC-V Linux (Issue #2085)

2023-10-25 Thread Florian Festi
Closed #2085 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2085#event-10767718055 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Trying to rebuild RPM SRPM package on RISC-V Linux (Issue #2085)

2023-10-25 Thread Florian Festi
Sorry for the late answer! The spec file runs the rpm test suite which needs fakechroot. It's possible that it is either not available or not working properly on RISC-V Linux. Note that the current release do use a different technology for isolating the test suite. I am closing this as it is

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild: make it possible to not include SPEC tag (rpm-4.17 compat behavior) (Issue #2727)

2023-10-25 Thread Florian Festi
We are not planning to add such an option. While we have stricter requirement for the backward compatibility of SRPMs than for normal packages they do not include backward compatibility for all time. Closing. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild: make it possible to not include SPEC tag (rpm-4.17 compat behavior) (Issue #2727)

2023-10-25 Thread Florian Festi
Closed #2727 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2727#event-10766717419 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Multiple builds via the BuildArch tag do not work (Issue #2319)

2023-10-25 Thread Florian Festi
So I think going back to the old behaviour is just not worth the trouble - even if it may be easy to do code wise. So all that's left is cleaning up the code a little bit. Not keeping a ticket open for stuff like that - otherwise we had tickets for each line of RPM code... -- Reply to this

Re: [Rpm-maint] [rpm-software-management/rpm] Multiple builds via the BuildArch tag do not work (Issue #2319)

2023-10-25 Thread Florian Festi
Closed #2319 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2319#event-10766742033 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Add support for macro aliases (PR #2722)

2023-10-27 Thread Florian Festi
I am still a bit puzzled on what this can do that you can't do with a simple macro definition. I mean I have a rough idea. But may be the docs should make a bit more of an effort to explain what to use in which case. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Obsoleted-by: would be useful in some cases (#1768)

2023-11-02 Thread Florian Festi
Closed #1768 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1768#event-10843533706 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Obsoleted-by: would be useful in some cases (#1768)

2023-11-02 Thread Florian Festi
Looks like the conclusion in 2021 was that `Obsoleted-by:` is not the solution. Closing. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1768#issuecomment-1790663062 You are receiving this because you are subscribed to this thread.

[Rpm-maint] [rpm-software-management/rpm] Set %_sharedstatedir to %{_var}/lib (PR #2743)

2023-11-02 Thread Florian Festi
Configure traditionally sets it to %{_prefix}/com which RPM has followed so far. But this directory is not used anywhere and everybody changes the location to /var/lib. As we are only changing the macro and not the configure default this should be relatively save to do. Resolves: #2092 You can

Re: [Rpm-maint] [rpm-software-management/rpm] [RFE] Subpackage for excluded files (#1448)

2023-11-02 Thread Florian Festi
I agree that there should be more control over what files go where and the current means given to the packagers are not that great. Having more special code for creating sub packages is not something we want, though. We'd rather give the packager the means to do that in the spec - or the build

Re: [Rpm-maint] [rpm-software-management/rpm] [RFE] Subpackage for excluded files (#1448)

2023-11-02 Thread Florian Festi
Closed #1448 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1448#event-10843864415 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Fix typos (PR #2737)

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

Re: [Rpm-maint] [rpm-software-management/rpm] Fix typos (PR #2737)

2023-10-31 Thread Florian Festi
Thanks for the fixes! -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2737#issuecomment-1786683577 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Convert %prep into a regular build scriptlet (PR #2730)

2023-10-26 Thread Florian Festi
Looks actually quite nice and surprisingly straight forward. I wonder if we should do an announcement if we really want to drop %patchN so distributions have a bit more time to prepare. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Implement prepend and append modes for all our normal build scriptlets (PR #2728)

2023-10-26 Thread Florian Festi
May be people like this version better. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2728#issuecomment-1781371354 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Implement prepend and append modes for all our normal build scriptlets (PR #2728)

2023-10-26 Thread Florian Festi
@ffesti pushed 1 commit. a8b4e5be21cae2f980e75bc528bff0405ec64689 Reword spec.md change -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2728/files/39973be09ef2f0217177fd2afc65cabd1cd3945d..a8b4e5be21cae2f980e75bc528bff0405ec64689 You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] Use uniform formatting for SEE ALSO sections (PR #2732)

2023-10-25 Thread Florian Festi
@ffesti pushed 1 commit. 557112f44791d499b3a5208329a01846af63f480 Use uniform formatting for SEE ALSO sections -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2732/files/2449e94632bab36a52bd5cafbff2ac03e86790ed..557112f44791d499b3a5208329a01846af63f480 You are

Re: [Rpm-maint] [rpm-software-management/rpm] Use uniform formatting for SEE ALSO sections (PR #2732)

2023-10-25 Thread Florian Festi
I don't have a strong opinion. Guess it depends on what pages you sample. I just switched to bold. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2732#issuecomment-1778994409 You are receiving this because you are subscribed to this

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-09-19 Thread Florian Festi
@ffesti pushed 6 commits. 28dbca6a15efdef33863c1412b331279e9ae2853 Drop NVR parameter to make them easier to reuse fb0d81ef9cb886ec31e34c64b13ade85e023b062 Make functions available to be moved later on 7d3d23cd7c13de952be577f47dfad5bfd0bdda74 Move checks and package initialization after

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-03 Thread Florian Festi
@ffesti pushed 6 commits. 7ec8dd2235d6d684f590d3bb92ec6adfa75d583d Drop NVR parameter to make them easier to reuse 65be4c1e70b7b7745b582dc59be9de1832f550d7 Make functions available to be moved later on 1894a121973c1f93decc64e6a81a9a790d9288a3 Move checks and package initialization after

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-03 Thread Florian Festi
OK, I addressed the comments above: Re-Added a check for the NVR tags, renamed RPMSPEC_DONTFINALIZE, added a test case and fixed issues that the test case turned up. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Move checks and package initialization after build (PR #2646)

2023-10-04 Thread Florian Festi
Yes, this thought has occurred to me, too. I have not addressed this here as it is mainly an issue of the original dynamic spec change. But it is something we need to address. Funny enough we could actually allow %prep to create later build scripts. Ofc this doesn't work right now. Also there

[Rpm-maint] [rpm-software-management/rpm] Prevent Dynamic Spec part to create things needed earlier (Issue #2693)

2023-10-04 Thread Florian Festi
As noted in #2646 dynamic spec parts can create/declare tags and sections that cannot be used that late and we should not allow that and error out. First rough list: - all build sections - including %generatebuildrequires - BuildRequires - BuildArch except noarch -- Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] Fix tagtbl.C placement in build dir (PR #2670)

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

Re: [Rpm-maint] [rpm-software-management/rpm] Add new plugin slots for pre/post chroot events (PR #2669)

2023-09-19 Thread Florian Festi
Looks good and pretty straight forward. May be should get a test case. It might also be a good idea to point out that these are called even when running without --root. Technically we omit the chroot call in this case but the hoooks are ofc executed no matter what (as they should be) -- Reply

Re: [Rpm-maint] [rpm-software-management/rpm] Python tests: Close open files (PR #2675)

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

Re: [Rpm-maint] [rpm-software-management/rpm] Python tests: Close open files (PR #2675)

2023-09-25 Thread Florian Festi
Over are the good old days when one could rely on the garbage collection to just close the files for you. Had to do something very similar recently in my own Python project. Thanks for the patch! -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-19 Thread Florian Festi
@ffesti pushed 1 commit. 32b12aec2d81690f271cd1cde8b8bf72c358229a Move OpenSSL code to newer API from version 3.0 -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2723/files/009daa3ab584b0e271f08d717c19daaa18de3eed..32b12aec2d81690f271cd1cde8b8bf72c358229a You are

Re: [Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-19 Thread Florian Festi
OK, turns out this is code based on OpenSSL 3.0 which is from 2021. So it is a bit new. Otoh it no longer is the default variant to be built and the next release shouldn't be backported to some ancient enterprise distribution. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Macro %-x modifies original flag if argument follows without intervening space (Issue #2454)

2023-10-11 Thread Florian Festi
See #2455 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2454#issuecomment-1757463275 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Spec file versioning macros (Issue #2443)

2023-10-11 Thread Florian Festi
@ffesti converted this issue into discussion #2715. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2443#event-10617291792 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Move OpenSSL code to newer API (PR #2723)

2023-10-20 Thread Florian Festi
Thank would be great, it's not that I have a clue about OpenSSL either. I just banged it with a hammer until it seemed to work. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2723#issuecomment-1772906920 You are receiving this because

[Rpm-maint] [rpm-software-management/rpm] Add %_iconsdir macro (PR #2729)

2023-10-20 Thread Florian Festi
Offer a generic way to place icons in the proper system dir Resolves: #2196 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2729 -- Commit Summary -- * Add %_iconsdir macro -- File Changes -- M macros.in (1) --

Re: [Rpm-maint] [rpm-software-management/rpm] Queried tag fields not exhibited. Specified package name reported in output (Issue #2411)

2023-10-16 Thread Florian Festi
Closed #2411 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2411#event-10661746538 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Queried tag fields not exhibited. Specified package name reported in output (Issue #2411)

2023-10-16 Thread Florian Festi
The issue here is that these tags are arrays and need to be surrounded by square brackets. The CLI params already do that for you. They also include the flags and version while the using the tags directly only gives you the name part of the tripplets. You can just use `%{conflictnevrs}` and

[Rpm-maint] [rpm-software-management/rpm] Docs/README and minor rewording (PR #2705)

2023-10-06 Thread Florian Festi
You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2705 -- Commit Summary -- * Reword to make sentence easier to understand * Add docs/README.md -- File Changes -- M docs/CMakeLists.txt (1) A docs/README.md (30)

Re: [Rpm-maint] [rpm-software-management/rpm] Document and/or implement the rpm.org content generation process (Issue #2259)

2023-10-06 Thread Florian Festi
Documented how to build the reference manual locally but we really should actually do that in our cmake files. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2259#issuecomment-1750545445 You are receiving this because you are

Re: [Rpm-maint] [rpm-software-management/rpm] Multiple builds via the BuildArch tag do not work (Issue #2319)

2023-10-24 Thread Florian Festi
I also don't have too strong of an opinion on that. Only the comment that most build systems may be pretty surprised if suddenly packages from more than one build arch show up. May be we should keep things as they are and just clean up the code. -- Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] [RFE] Filter requires per subpackage (Issue #2720)

2023-10-24 Thread Florian Festi
Yeah, giving the packager more control here is something we generally want. The dependency generators are a bit clunky as soon as they don't exactly what one wants/needs. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Use uniform formatting for SEE ALSO sections (PR #2732)

2023-10-24 Thread Florian Festi
Improved wording of the commit message -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2732#issuecomment-1777100699 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow overriding buildtime and hostname via environment variable (Issue #2603)

2023-10-24 Thread Florian Festi
Closed #2603 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2603#event-10752520725 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow overriding buildtime and hostname via environment variable (Issue #2603)

2023-10-24 Thread Florian Festi
Guess not. Feel free to re-open if we missed something and there is really something that needs doing. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2603#issuecomment-1777011289 You are receiving this because you are subscribed to

[Rpm-maint] [rpm-software-management/rpm] Use uniform formatting for SEE ALSO sections (PR #2732)

2023-10-24 Thread Florian Festi
While there is no generally agreed standard for this we should at least use only one. Comma separated lists are commonly used. Lets just pick *italic* for man pages. Thanks to Frank Dana https://github.com/ferdnyc; for pointing this out. Resolves: #2731 You can view, comment on, or merge this

Re: [Rpm-maint] [rpm-software-management/rpm] Implement a declarative autobuild system (prototype) (PR #2620)

2023-08-22 Thread Florian Festi
We should probably put those build macros into separate macro files - one per build type. That makes it easier for people to add their own and to hand them over to other communities, if we want to get rid of them upstream. Also the macros file is too big already. -- Reply to this email

[Rpm-maint] [rpm-software-management/rpm] Add SPDX licenses headers to all files (Issue #2626)

2023-08-22 Thread Florian Festi
and make the project REUSE compatible. See https://reuse.software/ This will more explicit what license each file is under and will allow to quickly review the overall license of the whole project. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] The debuginfo machinery breaks if %install follows directly after %prep (Issue #1870)

2022-09-26 Thread Florian Festi
It closes a section. So it would end the `%prep` section. Idea is that the debuginfo magic wold then be evaluated after the `prep` section. Basically the same as if there was another section inbetween. -- Reply to this email directly or view it on GitHub:

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

2022-09-28 Thread Florian Festi
OK, I guess I start with writing down how debuginfo works right now: There are quite a few macros that [control](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L452) and [implement](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L135) the debuginfo

Re: [Rpm-maint] [rpm-software-management/rpm] The debuginfo machinery breaks if %install follows directly after %prep or preamble (Issue #1870)

2022-09-27 Thread Florian Festi
Well, `%install` following the preamble is technically a different issue. `%prep` is setting `%buildsubdir` via `%setup` and everything that makes use of that needs to be after `%prep`. This is not limited to the debuginfo magic - although it is especially non-obvious there. -- Reply to this

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

2022-09-27 Thread Florian Festi
The issue here is that we actually want some macros in the SPEC file. I wonder if we could just add `%__spec_pre` and `%__spec_post` macros that are expanded at the beginning and the end of the spec file. We have something similar for the build scripts already. This would give rpm itself but

[Rpm-maint] [rpm-software-management/rpm] Add a better way to run and control buildroot policy (brp) scripts (Issue #2207)

2022-09-29 Thread Florian Festi
For now build root policy scripts are just shipped in the [scripts/](https://github.com/rpm-software-management/rpm/tree/master/scripts) and it is left to the distributions to run them in ` %__os_install_post` ([Fedora as an

<    6   7   8   9   10   11   12   13   14   15   >