Re: [Rpm-maint] [rpm-software-management/rpm] fix some leaks in rpmInstall (PR #2289)

2022-11-23 Thread xujing
> > @pmatilai PTAL > > All PR's will get looked at, in time. Please avoid these kind of personal > pings unless it's actually personal, ie there's something that requires a > response from that person specifically. I'm sorry. I'll follow this rule in the future. -- Reply to this email directl

Re: [Rpm-maint] [rpm-software-management/rpm] fix some leaks in rpmInstall (PR #2289)

2022-11-23 Thread Panu Matilainen
> @pmatilai PTAL All PR's will get looked at, in time. Please avoid these kind of personal pings unless it's actually personal, ie there's something that requires a response from that person specifically. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-man

Re: [Rpm-maint] [rpm-software-management/rpm] fix Header leak in rpmInstall (PR #2289)

2022-11-23 Thread xujing
@JetXujing pushed 1 commit. 23f92b49b757f1449f6889bdcce2f5e40f613b71 fix eiu->sourceURL leak in rpmInstall -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/2289/files/12ecef95db39c45f3f70cb20e63e2ebb7560f222..23f92b49b757f1449f6889bdcce2f5e40f613b71 You are receiving th

Re: [Rpm-maint] [rpm-software-management/rpm] fix Header leak in rpmInstall (PR #2289)

2022-11-23 Thread xujing
@pmatilai PTAL -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2289#issuecomment-1325906444 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing li

[Rpm-maint] [rpm-software-management/rpm] fix Header leak in rpmInstall (PR #2289)

2022-11-23 Thread xujing
when rpm install a package, the Header from tryReadHeader in rpmInstall is leaked. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/2289 -- Commit Summary -- * fix Header leak in rpmInstall -- File Changes -- M lib/rpm

Re: [Rpm-maint] [rpm-software-management/rpm] Drop subkey support from the internal OpenPGP parser (32893a5)

2022-11-23 Thread Neal H. Walfield
I still haven't wrapped my head around the internal pgp parser, so I did not thoroughly review `pgpPrtParams`. Perhaps @DemiMarie can look at the changes to that function. Otherwise, I have no issues with this commit. -- Reply to this email directly or view it on GitHub: https://github.com/rp

Re: [Rpm-maint] [rpm-software-management/rpm] Drop subkey support from the internal OpenPGP parser (32893a5)

2022-11-23 Thread Neal H. Walfield
This fails on the sequoia backend: ``` # -*- compilation -*- 281. rpmsigdig.at:605: testing rpmkeys type confusion ... /rpmsigdig.at:606: if ! [ -d testing/ ]; then cp -aP "${RPMTEST}" . chmod -R u+w testing/ mkdir -p testing/build ln -s ../data/SOURCE

Re: [Rpm-maint] [rpm-software-management/rpm] Drop subkey support from the internal OpenPGP parser (32893a5)

2022-11-23 Thread Neal H. Walfield
This (and the other tests) can be changed to AT_CHECK. According to [the documentation](https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Writing-Testsuites.html) > The difference between AT_CHECK and AT_CHECK_UNQUOTED is that only the latter > performs shell variable expansi

Re: [Rpm-maint] [rpm-software-management/rpm] Drop subkey support from the internal OpenPGP parser (32893a5)

2022-11-23 Thread Neal H. Walfield
due *to* their -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/commit/32893a5e18347b124c405ba216e4ee89b90088f8#r90855888 You are receiving this because you are subscribed to this thread. Message ID: ___

[Rpm-maint] [rpm-software-management/rpm] check target is not generated when fakechroot is not installed (Issue #2288)

2022-11-23 Thread Neal H. Walfield
I tried building rpm (rpm-4.17.0-alpha-687-g37b963fa5) on a relatively fresh Fedora 36 machine. I did: ``` [neal@fedora-36 ~]$ git clone g...@github.com:rpm-software-management/rpm.git Cloning into 'rpm'... remote: Enumerating objects: 138209, done. remote: Counting objects: 100% (117/117), done

Re: [Rpm-maint] [rpm-software-management/rpm] Issue a warning when signing created an OpenPGP v3 signature (PR #2287)

2022-11-23 Thread Panu Matilainen
@pmatilai commented on this pull request. > @@ -168,6 +169,12 @@ static rpmtd makeSigTag(Header sigh, int ishdr, uint8_t > *pkt, size_t pktlen) break; } +ver = pgpDigParamsVersion(sigp); +if (ver < 4) { + rpmlog(RPMLOG_WARNING, _("Deprecated PGP signature version %d

Re: [Rpm-maint] [rpm-software-management/rpm] Issue a warning when signing created an OpenPGP v3 signature (PR #2287)

2022-11-23 Thread Neal H. Walfield
@nwalfield approved this pull request. Looks good. > @@ -168,6 +169,12 @@ static rpmtd makeSigTag(Header sigh, int ishdr, uint8_t > *pkt, size_t pktlen) break; } +ver = pgpDigParamsVersion(sigp); +if (ver < 4) { + rpmlog(RPMLOG_WARNING, _("Deprecated PGP signature ve

[Rpm-maint] [rpm-software-management/rpm] Issue a warning when signing created an OpenPGP v3 signature (PR #2287)

2022-11-23 Thread Panu Matilainen
https://bugzilla.redhat.com/show_bug.cgi?id=2141686 revealed that much of the rpm-ecosystem is still using the obsolete v3 OpenPGP signature format, I think largely due to workarounds for legacy rpm versions (from around the turn of the millennium) that have just been forgotten in place. Lets at

[Rpm-maint] [rpm-software-management/rpm] Emit a warning when creating OpenPGP v3 signatures (Issue #2286)

2022-11-23 Thread Panu Matilainen
If anything, https://bugzilla.redhat.com/show_bug.cgi?id=2141686 has taught us that there are a LOT of v3 signatures still being created, often simply because of a long forgotten workaround for some ancient rpm versions not supporting v4 signatures. Issuing warnings when verifying v3 signature

Re: [Rpm-maint] [rpm-software-management/rpm] Allow piping from rpm2archive (PR #2285)

2022-11-23 Thread Michal Domonkos
Yeah, it's not difficult to just yank that piece of logic now that we output to stdout. It would be a "regression" for existing users, though. But then, one could assume that most users would actually use the "cat ... | rpm2archive ..." form in scripts... -- Reply to this email directly or vie

Re: [Rpm-maint] [rpm-software-management/rpm] Fix rpm2archive to behave like rpm2cpio (by default) (Issue #2208)

2022-11-23 Thread Panu Matilainen
Closed #2208 as completed via 37b963fa51d6ad31086a6e345ce6701afda5afff. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2208#event-7874642585 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Allow piping from rpm2archive (PR #2285)

2022-11-23 Thread Panu Matilainen
Merged #2285 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/2285#event-7874642226 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint maili

Re: [Rpm-maint] [rpm-software-management/rpm] Allow piping from rpm2archive (PR #2285)

2022-11-23 Thread Panu Matilainen
Right, this does achieve rpm2cpio compatible behavior in the piping case while preserving the previous behavior otherwise. We can go with this, but it's not quite what I had in mind for #2208: I find the rpm2archive behavior of silently creation a file in the directory of the argument file jus