[Rpm-maint] [rpm-software-management/rpm] Document fork, exec, wait and redirect2null Lua functions as deprecated (PR #2948)

2024-03-06 Thread Panu Matilainen
Rpm scriptlets should have no business dealing with this level of detail in process control, rpm.execut() is much saner and safer for scriptlet needs. We cant just remove because this is a public API with known users (eg glibc in Fedora), but we can at least document these as deprecated.

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Panu Matilainen
@pmatilai commented on this pull request. > + return p->token; + } +} +return NULL; +} + +static const int partBeforeBuildOnly(int part) +{ +const struct PartRec *p; + +for (p = partList; p->token != NULL; p++) { + if (p->part == part) { + return

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Florian Festi
@ffesti commented on this pull request. > + return p->token; + } +} +return NULL; +} + +static const int partBeforeBuildOnly(int part) +{ +const struct PartRec *p; + +for (p = partList; p->token != NULL; p++) { + if (p->part == part) { + return

Re: [Rpm-maint] [rpm-software-management/rpm] Random failure on dependency generation 3 test (Issue #2470)

2024-03-06 Thread Panu Matilainen
Closed #2470 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2470#event-12028572241 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Random failure on dependency generation 3 test (Issue #2470)

2024-03-06 Thread Panu Matilainen
Closing in favor of #2949, seems fairly obvious this is the same issue. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2470#issuecomment-1980968956 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Raise an error when passing arguments to non-parametric macros (PR #2940)

2024-03-06 Thread Panu Matilainen
(updated the commit message to reflect error -> warning change) -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2940#issuecomment-1980694996 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Florian Festi
@ffesti pushed 1 commit. 137a4353cf32f7a4d10d05d216dbd9392f84acc4 Don't allow build directives in generated specs -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2917/files/8dcf8824b2e7c00097e28e7ac1d4e939e431a0ab..137a4353cf32f7a4d10d05d216dbd9392f84acc4 You are

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Panu Matilainen
@pmatilai approved this pull request. I actually meant you could just as well inline the whole lookup in what you're calling checkPart() since there are no other users for this in sight, but works for me. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild sometimes is killed by SIGPIPE with bad dependency generator sciptlets (Issue #2949)

2024-03-06 Thread Panu Matilainen
Oh, that sounds a whole lot like https://github.com/rpm-software-management/rpm/issues/2470 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2949#issuecomment-1980957355 You are receiving this because you are subscribed to this thread.

Re: [Rpm-maint] [rpm-software-management/rpm] Split Perl dependency generators into a separate repo (Issue #2873)

2024-03-06 Thread Panu Matilainen
And here goes: https://github.com/rpm-software-management/perl-rpm-packaging The rest is up to the Perl community. If/when you need help with permission matters, please file tickets in https://github.com/rpm-software-management/org-admin . -- Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Florian Festi
@ffesti commented on this pull request. > @@ -1060,71 +1069,72 @@ typedef const struct PreambleRec_s { int type; int deprecated; int ismacro; +int beforebuildonly; `prebuildonly` it is. Not that I am looking for any hills... -- Reply to this email directly or view it on

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Florian Festi
@ffesti commented on this pull request. > {0, 0, 0, 0} }; /** */ static int findPreambleTag(rpmSpec spec,rpmTagVal * tag, - const char ** macro, char * lang) + const char ** macro, char * lang, int * beforebuildonly) Done. I looked at the same issue

Re: [Rpm-maint] [rpm-software-management/rpm] Document fork, exec, wait and redirect2null Lua functions as deprecated (PR #2948)

2024-03-06 Thread Panu Matilainen
We probably should also issue warnings on execution... -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2948#issuecomment-1980752228 You are receiving this because you are subscribed to this thread. Message ID:

[Rpm-maint] [rpm-software-management/rpm] Remove perl dependency generators from the repo (PR #2947)

2024-03-06 Thread Panu Matilainen
These are far better maintained by the Perl community, in a repository of their own: https://github.com/rpm-software-management/perl-rpm-packaging Fixes: #2873 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2947 --

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild sometimes is killed by SIGPIPE with bad dependency generator sciptlets (Issue #2949)

2024-03-06 Thread Michael Schroeder
For reference: https://bugzilla.suse.com/show_bug.cgi?id=1220213 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2949#issuecomment-1980932247 You are receiving this because you are subscribed to this thread. Message ID:

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

2024-03-06 Thread Jarod Wilson
How do you know if the package was built with an older rpm vs. the new rpm? If you can ascertain that, then you can surely have the latest rpm complain/warn if it finds an rpm built with the latest rpm that doesn't have the tags, while older rpm would be blissfully unaware, happy, and able to

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild sometimes is killed by SIGPIPE with bad dependency generator sciptlets (Issue #2949)

2024-03-06 Thread Michael Schroeder
You probably already know this, but rpmbuild is killed by the write() system that writes the filelist to the generator being done after the child has exited. I think the only way to prevent this is to ignore SIGPIPE before calling write(). Everything else like the select() thing we currently do

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Panu Matilainen
@pmatilai commented on this pull request. > + return p->token; + } +} +return NULL; +} + +static const int partBeforeBuildOnly(int part) +{ +const struct PartRec *p; + +for (p = partList; p->token != NULL; p++) { + if (p->part == part) { + return

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Panu Matilainen
Oh and for whatever reason, there's some po/ submodule update in here: > diff --git a/po b/po index d5cc5d368e..eee506492f 16 --- a/po +++ b/po @@ -1 +1 @@ -Subproject commit d5cc5d368e2cbb639156b3f6ceb824a8815fdeba +Subproject commit eee506492f5fe2f4fe8940c5e5b088b42167b790 (also visible in

Re: [Rpm-maint] [rpm-software-management/rpm] Safer handling of internal soname dependencies (Discussion #2872)

2024-03-06 Thread codonell
@praiskup It is exactly the same problem. We will continue to have these issues at the distribution level until we change the way we model how a package exports an interface e.g. list of shared objects. There is perhaps a broader question that this mistake would *not* have been caught without

Re: [Rpm-maint] [rpm-software-management/rpm] No build directives in generated spec parts (PR #2917)

2024-03-06 Thread Florian Festi
@ffesti commented on this pull request. > + return p->token; + } +} +return NULL; +} + +static const int partBeforeBuildOnly(int part) +{ +const struct PartRec *p; + +for (p = partList; p->token != NULL; p++) { + if (p->part == part) { + return

[Rpm-maint] [rpm-software-management/rpm] rpmbuild sometimes is killed by SIGPIPE with bad dependency generator sciptlets (Issue #2949)

2024-03-06 Thread Michael Schroeder
This is a bit of a corner case, but I just received a bug report that builds sometimes terminate for a specific package. It turned out the package contained this little gem: ``` %define __perllib_provides /bin/true ``` Anyway, I don't think rpm should be killed by this. Once upon a time

Re: [Rpm-maint] [rpm-software-management/rpm] rpmbuild sometimes is killed by SIGPIPE with bad dependency generator sciptlets (Issue #2949)

2024-03-06 Thread Panu Matilainen
The flaky test-case is: ```cat << EOF > "${RPMTEST}"/tmp/bad.req #!/bin/sh echo 'bad = *' EOF chmod a+x "${RPMTEST}"/tmp/bad.req runroot rpmbuild -bb --quiet \ --define "__script_requires /tmp/bad.req" \ /data/SPECS/shebang.spec ``` The common theme being a tiny

Re: [Rpm-maint] [rpm-software-management/rpm] Safer handling of internal soname dependencies (Discussion #2872)

2024-03-06 Thread Pavel Raiskup
Agreed, especially with the [CI gating part](https://matrix.to/#/!IHsypFkurbRbXzkjTO:matrix.org/$Jo1uzuG9SVrm__zmNvoYXXI2EarBYgIt-WdTu8TPBVg?via=fedora.im=matrix.org=fedoraproject.org). -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: multi-arch dependencies (Issue #2197)

2024-03-06 Thread Panu Matilainen
Okay, this is not going to make it to 4.20. But, we need to start looking into this soon - shortly after 4.20 is branched to not be in this same situation one year from now. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Transaction ordering should break dependency loops at weak dependencies (if there are any) (#1346)

2024-03-06 Thread Panu Matilainen
Thinking some more on this, I believe the right thing here is treating regular (as in not having (post/pre) type qualifiers) weak dependencies as implicit "meta" dependencies, which is exactly how they are *normally* used (eg that fwupd case). For the rare case where packagers do want them to

Re: [Rpm-maint] [rpm-software-management/rpm] How to obsolete package once their dependencies are not satisfied? (Discussion #2938)

2024-03-06 Thread Vít Ondruch
We agree that at some point, it is good idea to forcefully remove some package from a system. We know how to remove the package from the system, when it is removed from repository using e.g. [fedora-obsolete-packages](https://src.fedoraproject.org/rpms/fedora-obsolete-packages). The method

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

2024-03-06 Thread Zbigniew Jędrzejewski-Szmek
> I don't think bumping the changelog for rebuilds is actually important, but I > do think that this is still the wrong way to solve it, because we're > presuming that _a rebuild is important_. When rebuilds happen every day for > whatever reason due to dependency churn, they are no longer

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

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

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

2024-03-06 Thread Florian Festi
Resolved with #2921 -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2404#issuecomment-1980336343 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Improve build determinism (replace soft dependencies with strict ones) (Issue #2855)

2024-03-06 Thread Michal Domonkos
Closed #2855 as completed via #2914. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2855#event-12025012740 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] CMakeLists.txt: eliminate floating dependencies (PR #2914)

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