[Rpm-maint] [rpm-software-management/rpm] rpmbuild logging tweaks (#1429)

2020-11-09 Thread Michal Domonkos

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

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

-- Commit Summary --

  * Add each macro for concise log queue iteration
  * Extract log iteration from rpmlogPrint()
  * Print only errors in rpmbuild summary (#793)

-- File Changes --

M build/build.c (2)
M rpmio/rpmlog.c (36)
M rpmio/rpmlog.h (7)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1429.patch
https://github.com/rpm-software-management/rpm/pull/1429.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/1429
___
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 special conditional syntaxes from builtin macros (#1421)

2020-11-09 Thread ニール・ゴンパ
> Yup, we've actually been pondering about making Lua mandatory.

I would definitely be in favor with making Lua mandatory. In practice, 
_everyone_ already builds RPM with Lua support because it's needed for handling 
RPMs for systems in general...

-- 
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/1421#issuecomment-724152331___
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 special conditional syntaxes from builtin macros (#1421)

2020-11-09 Thread Panu Matilainen
Yup, we've actually been pondering about making Lua mandatory.
Also note that this was just for the macro part, actual package scriptlets are 
still guarded with both rpmlib() dependency and execution time error message.


-- 
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/1421#issuecomment-723993690___
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 special conditional syntaxes from builtin macros (#1421)

2020-11-09 Thread Michael Schroeder
I'm not super happy about the lua change, but I guess everybody builds rpm with 
lua support enabled so that the missing error generation will not matter much.

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


Re: [Rpm-maint] [rpm-software-management/rpm] Only do early name services initialization if we actually chroot (#1427)

2020-11-09 Thread Panu Matilainen
Merged #1427 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/1427#event-3973395614___
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 special conditional syntaxes from builtin macros (#1421)

2020-11-09 Thread Panu Matilainen
Seems like folks wont be missing these too much...

-- 
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/1421#issuecomment-723969381___
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 special conditional syntaxes from builtin macros (#1421)

2020-11-09 Thread Panu Matilainen
Merged #1421 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/1421#event-3973391142___
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 use of obsolete gethostbyname() function (#1428)

2020-11-09 Thread Panu Matilainen
@pmatilai pushed 1 commit.

b16e255e1b99cc248067d94e9023b7d2486ff674  Eliminate use of obsolete 
gethostbyname() function


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


[Rpm-maint] [rpm-software-management/rpm] Eliminate use of obsolete gethostbyname() function (#1428)

2020-11-09 Thread Panu Matilainen
We only actually used gethostbyname() for canonicalizing buildhost,
convert that to use getaddrinfo() instead: this is not a particularly
useful or interesting field so just grab whatever result comes first.

The other use was to initialize name services, but as we dont 
need
or use hostnames for any operation, we can just as well drop it. User
and group names are what we care about.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Eliminate use of obsolete gethostbyname() function

-- File Changes --

M build/build.c (20)
M configure.ac (2)
M lib/rpmug.c (1)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1428.patch
https://github.com/rpm-software-management/rpm/pull/1428.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/1428
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] Simplify & unhackify dependency generator command construction (#1424)

2020-11-09 Thread Panu Matilainen
Merged #1424 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/1424#event-3972233687___
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 and use rstrndup() API for duplicating partial strings (#1425)

2020-11-09 Thread Panu Matilainen
Merged #1425 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/1425#event-3972226566___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] Only do early name services initialization if we actually chroot (#1427)

2020-11-09 Thread Panu Matilainen
Theres no point or need to do all this fluff on library initialization,
we can just as well do it when were told to use a chroot by
calling rpmChrootSet(), at which time were still on familiar ground.
Eliminating unused cruft from initialization cant hurt our start-up
times either.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Only do early name services initialization if we actually chroot

-- File Changes --

M lib/rpmchroot.c (5)
M lib/rpmrc.c (5)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1427.patch
https://github.com/rpm-software-management/rpm/pull/1427.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/1427
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] rpm --whatrequires does not resolve provides (#1426)

2020-11-09 Thread mikhailnov
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/issues/1426#issuecomment-723808513___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] rpm --whatrequires does not resolve provides (#1426)

2020-11-09 Thread Panu Matilainen
```
   --whatrequires CAPABILITY
  Query  all packages that require CAPABILITY for proper 
functioning.
```

It's literally as it says, it only looks for packages that require the queried 
*capability*. This is expected behavior and not a bug, although resolving the 
capability would be a nice option to have. In the meantime, `rpm -e --test` can 
be used as a workaround.

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


Re: [Rpm-maint] [rpm-software-management/rpm] rpm --whatrequires does not resolve provides (#1426)

2020-11-09 Thread Panu Matilainen
Closed #1426.

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