[Rpm-maint] converting new format rpms to something installable w/older rpm

2020-10-28 Thread L A Walsh

I was out of touch from my normal internet connectivity for a few
months and when I got back and d/l'd rpms and tried to use them
I got an error:

Failed dependencies: rpmlib(PayloadIsZstd)

I tried building rpm from source, but it had several dependent 
devel packages that also were encoded in the new format.


Was a tool also part of the format-upgrade to allow for re-encoding
new rpms such that they might be readable by the old rpm?
OR...any suggestions on how I can bring my system into sync
with the newer format so that I can move forward?

Suggestion: can rpm be enhanced to support plug-ins, where needed,
like when it wants to compress/decompress a payload, ala tar's: 


-I, --use-compress-program=COMMAND
 Filter  data through COMMAND.  It must accept the -d option, for
 decompression.  The argument can contain command line options.

Certainly would be a great help to allow for external plug-ins
in situations like this. 



___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add API for clone rpmps iterator (func rpmpsiClone) (#1359)

2020-10-28 Thread Panu Matilainen
Closed #1359.

-- 
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/1359#event-3930984309___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Do not fail if there is no "$temp"/res.* file (#1391)

2020-10-28 Thread Panu Matilainen
Merged #1391 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/1391#event-3930899012___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Possible deadlock when macro tracing and debug is turned on (#1418)

2020-10-28 Thread Michael Schroeder
This deadlocks for me:
```
rpm -vv --eval '%trace'
```
It hangs because rpmlog() tries to expand 
`%{?_color_output}^{!?_color_output:auto}` leading to another call to rpmlog().

We could temporarily clear print_expand_trace in the printExpansion() function 
but I think a better fix would be to revert commit 
7f220202f20c69d6f3fd957325cdbe692bbabedd. It's weird that printExpansion() uses 
rpmlog, but printMacro() does not. Also, the line is printed with multiple 
rpmlog calls, leading to `D:` being spread into the output.

The commit does not include a rationale, so it's hard to tell why this was 
changed in the first place.

-- 
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/1418___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add API for clone rpmps iterator (func rpmpsiClone) (#1359)

2020-10-28 Thread Panu Matilainen
After mulling over this some more... as per above comments, sorry but no.
There are several key iterators where we couldn't support this even if we 
wanted to, so adding it for one or two would only make both the C API and the 
C++ wrapper more inconsistent instead of improving it.

-- 
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/1359#issuecomment-717901144___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Do not fail if there is no "$temp"/res.* file (#1391)

2020-10-28 Thread Panu Matilainen
Sorry, managed to forget this whole thing. Yeah much better now, thanks!

-- 
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/1391#issuecomment-717890876___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add new rpmExpandThisMacro() public method (#1414)

2020-10-28 Thread Panu Matilainen
Names are annoying... for a theme that's used elsewhere in rpm too, mbInit() 
and mbFini() maybe?
Also seems to me in that the mbAllocBuf() calls could be moved to the 
start/init-part too. But yeah much nicer this way, regardless of names.

-- 
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/1414#issuecomment-717768213___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Silence warnings from newer Doxygen (#1417)

2020-10-28 Thread Panu Matilainen

You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1417

-- Commit Summary --

  * Fix some Doxygen grouping artifacts (aka bugs)
  * Shut up bogus Doxygen warnings about undocumented parameters

-- File Changes --

M build/files.c (2)
M build/parseChangelog.c (2)
M build/rpmbuild_internal.h (10)
M build/rpmbuild_misc.h (2)
M doc/librpm/Doxyheader.h (2)
M lib/backend/db3.c (2)
M lib/cpio.c (2)
M lib/cpio.h (6)
M lib/fprint.h (4)
M lib/fsm.c (4)
M lib/fsm.h (2)
M lib/header.c (6)
M lib/header.h (8)
M lib/headerfmt.c (12)
M lib/manifest.h (4)
M lib/order.c (4)
M lib/rpmcli.h (4)
M lib/rpmdb.c (12)
M lib/rpmdb.h (4)
M lib/rpmdb_internal.h (2)
M lib/rpmds.h (6)
M lib/rpmfi.h (16)
M lib/rpmfiles.h (13)
M lib/rpmgi.c (2)
M lib/rpmlead.h (2)
M lib/rpmlib.h (20)
M lib/rpmtag.h (2)
M lib/signature.h (4)
M lib/tagexts.c (28)
M rpmio/argv.h (10)
M rpmio/macro.c (2)
M rpmio/rpmfileutil.h (10)
M rpmio/rpmio_internal.h (4)
M rpmio/rpmpgp.c (2)
M rpmio/rpmpgp.h (28)
M rpmio/rpmurl.h (2)
M rpmio/rpmver.c (6)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1417.patch
https://github.com/rpm-software-management/rpm/pull/1417.diff

-- 
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/1417
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
Merged #1415 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/1415#event-3930574338___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Possible deadlock when macro tracing and debug is turned on (#1418)

2020-10-28 Thread Panu Matilainen
Looks like https://bugzilla.redhat.com/show_bug.cgi?id=613010 was the 
background to diverting the spew to the debug log, but I'm not sure that is 
such a constructive thing to do because it now doesn't even say which macro we 
tripped on.

rpmlog() is used in multiple places in macros.c so we'll need to somehow 
untangle the rpmlog color configuration from this anyway, so from that 
perspective it might make sense to just change printMacro() to use rpmlog() 
too. No firm opinion on that though...

-- 
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/1418#issuecomment-717850197___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
@pmatilai commented on this pull request.



> @@ -3,96 +3,296 @@
 ## Base package tags
 
 * Name (1000) string

This is about the package format, not spec tags. The numbers are the tag ID's 
that the physical headers have, the names are entirely for human convenience.

-- 
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/1415#discussion_r513206963___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
@pmatilai pushed 1 commit.

cd97f67b09866401d14e89c8227b1b894b1f7f99  Reorganize the ancient spec tag blurb 
into a new beginning


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1415/files/2487579c91d57017238919f5c8513b4ab8153129..cd97f67b09866401d14e89c8227b1b894b1f7f99
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Possible deadlock when macro tracing and debug is turned on (#1418)

2020-10-28 Thread Michael Schroeder
Maybe it was done because expand_trace is turned on if the macro recursion 
limit is reached. Hmm. Should printMacro() also use rpmlog?

-- 
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/1418#issuecomment-717833573___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Eliminate Python and SELinux deprecation warnings (#1416)

2020-10-28 Thread Panu Matilainen
Merged #1416 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/1416#event-3930002415___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Silence warnings from newer Doxygen (#1417)

2020-10-28 Thread Panu Matilainen
Merged #1417 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/1417#event-3930003792___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
Added overlapping extension tags + a link from queryformat docs.

-- 
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/1415#issuecomment-717779731___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
@pmatilai pushed 1 commit.

2487579c91d57017238919f5c8513b4ab8153129  Document (however briefly) all our 
actively used header tags


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1415/files/f73860af1591985ccb4225930d012091bfda..2487579c91d57017238919f5c8513b4ab8153129
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Eliminate Python and SELinux deprecation warnings (#1416)

2020-10-28 Thread Panu Matilainen

You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1416

-- Commit Summary --

  * Stop using deprecated security_context_t
  * Replace uses of deprecated PyEval_CallObject() with PyObject_Call()

-- File Changes --

M plugins/selinux.c (4)
M python/rpmts-py.c (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1416.patch
https://github.com/rpm-software-management/rpm/pull/1416.diff

-- 
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/1416
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Add brief tag documentation for all actively used header tags (#1415)

2020-10-28 Thread Panu Matilainen
@pmatilai commented on this pull request.



>  * Version (1001) string
+
+  Package version.

Look, this is not a finished book which will go to press and never revisited 
again. It's about gradually doing *at least something*, and if I start worrying 
about making it perfect, it's simply going to stay in the entirely undocumented 
state forever.

-- 
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/1415#discussion_r513205670___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint