Re: [Rpm-maint] [rpm-software-management/rpm] RFE: bundle popt with rpm again (#506)

2018-08-12 Thread Jeff Johnson
Moving POPT back into rpm does not imply depriving users of libpopt, but rather controls for symbol pollution and version mismatches. Do not expose POPT symbols through rpm libraries. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: bundle popt with rpm again (#506)

2018-08-12 Thread Jeff Johnson
Moving POPT back into rpm does not imply depriving users of libpopt, but rather controls for symbol pollution and version mismatches. Do not expose POPT symbols through rpm libraries. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: implement chained builds by recursively build-and-install in rpmbuild (#465)

2018-08-12 Thread Jeff Johnson
Running rpmbuild as root, dropping perms through the build, and switching back to root for installation is neither rocket science, nor "unsolvable" You claim this should not be in rpm without supplying any reason. -- You are receiving this because you are subscribed to this thread. Reply to

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: use kernel/keyutils key rings as a backing store for rpm keyrings (#454)

2018-08-12 Thread Jeff Johnson
You can script up an example using the executable provided with keyutils. The keyutils API is pleasantly simple. keyutils is used in RPM5 to save the password passed to gpg for signing as well as a store for pubkeys: doing an implementation is far simpler than designing the namespace and going

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: bundle popt with rpm again (#506)

2018-08-12 Thread Jeff Johnson
See issue #496 for a claim that GNOME does indeed embed libpopt still. -- 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] RFE: permit rpm to be invoked as a simple REPL shell (#477)

2018-08-12 Thread Jeff Johnson
If rpm supplied a simple REPL, exposed in the API, then there would be no need to reimplement the same REPL stack (usually imperfectly) in multiple applications, in multiple implementation languages. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: use exceptions within macro expansion to deliver errors out of band (#495)

2018-08-12 Thread Igor Gnatenko
I wonder what this RFE is about. I mean what's the use-case for those exceptions? -- 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] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Igor Gnatenko
@n3npq that's implementation detail (envvar vs macro). -- 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] RFE: teach rpm to supply a backtrace when exiting abnormally (#493)

2018-08-12 Thread Igor Gnatenko
If you have patch - please submit PR. -- 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/493#issuecomment-412346540___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Add --ignoresize by default (#468)

2018-08-12 Thread Igor Gnatenko
Closed #468. -- 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/468#event-1784163260___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: devolve rich dependencies to first dependency encounter with --norichdeps (#461)

2018-08-12 Thread Igor Gnatenko
Closed #461. -- 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/461#event-1784164849___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: devolve rich dependencies to first dependency encounter with --norichdeps (#461)

2018-08-12 Thread Igor Gnatenko
This is pretty much useless. Requires: (annobin if gcc) is not same as `Recommends: annobin`. Requires: annobin sounds a bit better, but not enough. Solving forward-compatibility is out of scope. CLOSING. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: use kernel/keyutils key rings as a backing store for rpm keyrings (#454)

2018-08-12 Thread Igor Gnatenko
@n3npq if you have patch, please send a PR. This is something what would be interesting to see. -- 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] RFE: bundle popt with rpm again (#506)

2018-08-12 Thread Igor Gnatenko
Other people rely on popt so moving it back to RPM is bad idea. GNOME doesn't use POPT. -- 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] RFE: bundle popt with rpm again (#506)

2018-08-12 Thread Igor Gnatenko
Closed #506. -- 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/506#event-1784160164___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: define NEVRA macro identifiers dynamically while processing each binary package (#504)

2018-08-12 Thread Jeff Johnson
Yes it solves all issues with side-effect macro definitions of tags used multiple times (like Summary: defining %summary). -- 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] RFE: implement chained builds by recursively build-and-install in rpmbuild (#465)

2018-08-12 Thread Jeff Johnson
Rpmbuild certainly checks that build dependencies are satisfied before starting a build (unless disabled), and that check can be done before every link in a chained build to verify that the just installed previous build does indeed supply provides that satisfy new build requirements. I do not

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: use exceptions within macro expansion to deliver errors out of band (#495)

2018-08-12 Thread Jeff Johnson
The other impetus for adding exceptions is so the caller can provide a context (including files and linenos when appropriate) for a failed expansion. Adding a try...catch wrapper in the rpmbuild parser permits the parser to supply detailed error information without changing the existing API

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: handle lists/tuples within macro expansions (#503)

2018-08-12 Thread Igor Gnatenko
As I stated above, I'm interested to see patch and play a bit with it. So if you have one -- feel free to open PR and I will test it out. -- 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] RFE: rpm needs two i18n domains, one for executables, the other for libraries (#505)

2018-08-12 Thread Igor Gnatenko
What's the problem with having one domain? Apart from mo files containing more than just lib translations. -- 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] RFE: define NEVRA macro identifiers dynamically while processing each binary package (#504)

2018-08-12 Thread Igor Gnatenko
Do you have patch handy? This would definitely solve some issues. Also, will it solve issue when %{summary} gets redefined for subpackages? -- 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] Not found symbol of poptGetContext in popt library during compilation. (#496)

2018-08-12 Thread Yi-Soo An
For more information, here is the error from config.log, it seems that something wrong with ld. ``` configure:21692: checking for popt.h configure:21692: result: yes configure:21695: checking for poptGetContext in -lpopt configure:21720: gcc -o conftest -O2 -g -fstack-protector-strong -O2 -g -O2

Re: [Rpm-maint] [rpm-software-management/rpm] RFC: permit erasures to be mixed into install/upgrade transactions (#475)

2018-08-12 Thread Igor Gnatenko
This sounds useful, although no one requested this in last 6 years as far as I know. Because all this handled in higher-level tools. -- 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] RFE: permit rpm to be invoked as a simple REPL shell (#477)

2018-08-12 Thread Igor Gnatenko
IMO this should be done in high-level tools (like dnf) instead. -- 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] RFC: permit erasures to be mixed into install/upgrade transactions (#475)

2018-08-12 Thread Jeff Johnson
No one has asked for the functionality largely for historical reasons. Unlike Debian depsolvers, which make heavy use of conflicts to direct an upgrade including removal of conflicting packages, rpm based depsolvers typically treat a conflicts as a full stop error, displaying enough information

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Jeff Johnson
The general and extensible through configuration method establishes a means to control for the environment being used by expanding a preamble. That goes beyond implementation detail into functionality: rpm has always gone to some lengths to have reproducible builds with scripts that are easy to

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Jeff Johnson
Can you supply a usage case or example for needing NEVRA like identifiers while processing attribute helpers? -- 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] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Igor Gnatenko
well, you already have `Provides: pkgconfig(foo)`, so we could do something like `Requires: (pkgconfig(bar) if pkgconfig-static(foo))`. It might be not perfect, but it is doable even today. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: handle lists/tuples within macro expansions (#503)

2018-08-12 Thread Jeff Johnson
Get a copy of RPM5 rpmio/macro.c (the cvs is browsable at http://rpm5.org even if the interface is clunky). Look for "stackarray", the variable that controls the functionality. There are basically 3 uses: 1) initialize to zero 2) set by parsing/detecting a %{M:S} construct 3) if stackarray is

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: handle lists/tuples within macro expansions (#503)

2018-08-12 Thread Jeff Johnson
I can/will point you to the 20-30 lines of code in rpm5 and tell you where to put them in rpm4 rpmio/macro.c if you wish to "play". There is too little interest for me to justify the work involved in a PR however: the functionality has been mentioned before in rpm.org issues in the past year.

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Jeff Johnson
Ok, I think I've got the intent. The flaw in the approach is that the namespace of pkg-config (and likely Python/rust/perl/node/Java etc) is very different than rpm package names and a fully general solution would need to supply mappings between "package" namespaces that are deliberately using

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Jeff Johnson
Your specific example would seem to need a boolean like "contains a static library" which is more precise than depending on an inference based on a pattern applied to a conventional package name. Perhaps a filter of (pattern,envvar-if-true,envvar-if-false) applied to the file magic strings

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: handle lists/tuples within macro expansions (#503)

2018-08-12 Thread Igor Gnatenko
> I can/will point you to the 20-30 lines of code in rpm5 and tell you where to > put them in rpm4 rpmio/macro.c if you wish to "play". So point me to. > before in rpm.org issues in the past year Sorry, you are opening so many of them so I just can't keep up with reading all of them ;) --

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Jeff Johnson
The existing pkgconfig(...) dependencies in rpm are quite primitive and awkward, though the mechanism is just cut-n-paste. -- 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] RFE: rpm needs two i18n domains, one for executables, the other for libraries (#505)

2018-08-12 Thread Jeff Johnson
The recommended solution in gettext documentation is separate domains for executables and libraries. This avoids bloat if/when libraries are packaged separately from executables. The efforts of translation teams are perhaps simplified by having two smaller domains: the mostly error messages in

Re: [Rpm-maint] [rpm-software-management/rpm] export environment variable for package on which depgen is run (#502)

2018-08-12 Thread Igor Gnatenko
@n3npq imagine that you split -devel into -devel + -static packages. My idea was to add pkg-config file to both packages, but make sure that -devel depends on Requires stuff while -static depends on both Requires and Requires.private. There are more use-cases in Python / Rust worlds, but this

Re: [Rpm-maint] [rpm-software-management/rpm] BUG: hdrblobImport() leaks memory if hdrp argument is NULL (#487)

2018-08-12 Thread Igor Gnatenko
Pull Request? -- 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/487#issuecomment-412346672___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: provide lustache as an external templating alternative to macro expansion (#492)

2018-08-12 Thread Igor Gnatenko
This sounds interesting, do you have patch to play with? -- 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] %setup -T -a 0 -a 1 doesn't extract %{S:0} (#462)

2018-08-12 Thread Igor Gnatenko
@pavlinamv have time to look at this? -- 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/462#issuecomment-412347029___ Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: implement chained builds by recursively build-and-install in rpmbuild (#465)

2018-08-12 Thread Igor Gnatenko
the unsolvable problem here is that it won't have necessary permissions to install RPMs. And this doesn't help because it doesn't know runtime provides before build. And if it does, it's stupid to build-seewhatcanbebuilt-build-etc. In any case, this should not be in RPM. -- You are receiving

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: implement chained builds by recursively build-and-install in rpmbuild (#465)

2018-08-12 Thread Igor Gnatenko
Closed #465. -- 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/465#event-1784164042___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Macros: Use full build template (#480)

2018-08-12 Thread Andreas Scherer
@Conan-Kudo you may want to try the new `%_debmacrodir` from debbuild 18.8.1 for your macro bundle. -- 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] RFE: use exceptions within macro expansion to deliver errors out of band (#495)

2018-08-12 Thread Jeff Johnson
Delivering an error with rpm --expand '%ifarch' is one usage case for exceptions that you are surely familiar with since you reported the issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: