Re: [Rpm-maint] [rpm-software-management/rpm] Make "rpmspec -q --srpm foo.spec" say .src, not .%{arch} (#1116)

2020-03-17 Thread Peter Jones
@vathpela pushed 1 commit. 5fa11af61ae2545ad94f351379222829810bb020 Make "rpmspec -q --srpm foo.spec" say .src, not .%{arch} -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Make "rpmspec -q --srpm foo.spec" say .src, not .%{arch} (#1116)

2020-03-12 Thread Peter Jones
> What about nosrc packages? It's a bit harder to do well, as "rpmspec -q" goes through rpmcliQuery(), which doesn't parse the spec file, and rpmspec.c doesn't know about rpmSpec internals, so can't access spec->noSource without including rpmbuild_internals.h, but I've pushed an updated patch

[Rpm-maint] [rpm-software-management/rpm] Make "rpmspec -q --srpm foo.spec" say .src, not .%{arch} (#1116)

2020-03-11 Thread Peter Jones
--srpm foo.spec to show src, like the package generated by rpmbuild -bs would be named, instead of the local machines arch. Signed-off-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1116

Re: [Rpm-maint] [rpm-software-management/rpm] [RFC] Make "%patchlist -f patches" work. (#874)

2019-10-02 Thread Peter Jones
> Wouldn't this also make sense for `%sourcelist` too? Yeah - and if you look at the code, it does it for both, I just didn't mention one in the commit message. -- 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] rpmbuild: %patch: fix a memory leak (#873)

2019-10-02 Thread Peter Jones
Yeah, I noticed that it still leaks on multiple uses, and there may be better solutions these days. I chose to stop here for an entirely selfish reason - using -b twice is clearly wrong to do, with only invoking it once, that leak is chaff that shows up when I'm running valgrind to check my

Re: [Rpm-maint] [rpm-software-management/rpm] [RFC] Make "%patchlist -f patches" work. (#874)

2019-09-30 Thread Peter Jones
@vathpela pushed 1 commit. ef44ff173f42517ebebfe5b31c35e3bd1e9c6388 Make "%patchlist -f patches" work. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] [RFC] Make "%patchlist -f patches" work. (#874)

2019-09-30 Thread Peter Jones
This adds a -f argument to %patchlist, similar to that for %files. There is no limit to how many patchlist files you specify, and doing so does not restrict the use of an inline patch list. Patches get added from the leftmost list to rightmost, and any patches listed below get added after that.

[Rpm-maint] [rpm-software-management/rpm] rpmbuild: %patch: fix a memory leak (#873)

2019-09-30 Thread Peter Jones
-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/873 -- Commit Summary -- * rpmbuild: %patch: fix a memory leak -- File Changes -- M build/parsePrep.c (14) -- Patch Links -- https

Re: [Rpm-maint] [rpm-software-management/rpm] Improve "git am" support. (#854)

2019-09-27 Thread Peter Jones
Okay, I think this one should be pretty much fully baked - there's test cases now for %{patches -m N -M N}, %{sources...}, %autosetup -S git_am, %autosetup -S git, each of those with -N, and %autopatch after each of those. -- You are receiving this because you are subscribed to this thread.

Re: [Rpm-maint] [rpm-software-management/rpm] Make "%patchlist -f patches" work. (#866)

2019-09-26 Thread Peter Jones
Closed #866. -- 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/866#event-2665980647___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Make "%patchlist -f patches" work. (#866)

2019-09-26 Thread Peter Jones
Don't pull this yet; once I added a test case I realized there's still something wrong with it. -- 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] Make "%patchlist -f patches" work. (#866)

2019-09-26 Thread Peter Jones
@vathpela pushed 1 commit. 99f643c6b8d17ebe99d397f4fa91d2955deecc64 Make "%patchlist -f patches" work. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Make "%patchlist -f patches" work. (#866)

2019-09-25 Thread Peter Jones
that. I couldnt find other code that obviously just reads a list of lines from a file without assuming its a .spec, so Ive open coded this. If theres a better way, Im open to suggestions. Signed-off-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online

Re: [Rpm-maint] [rpm-software-management/rpm] Improve "git am" support. (#854)

2019-09-25 Thread Peter Jones
In anticipation of your responses above, I've reworked this patch series. If you'd like it differently than I guessed, let me know. -- 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] Improve "git am" support. (#854)

2019-09-25 Thread Peter Jones
> Nice to see that at least somebody has discovered this and finding the idea > useful enough to improve. > > Please split to independent commits though, too much unrelated change packed > into one here: Sure, that's fine by me. > * creating a branch where patches are applied is one

Re: [Rpm-maint] [rpm-software-management/rpm] Make %setup use %{__tar_opts} to set tar options. (#859)

2019-09-25 Thread Peter Jones
That's reasonable enough - what would you prefer I do here, just close this one? -- 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] Make %{buildsubdir} usable without being a side effect of %setup. (#860)

2019-09-25 Thread Peter Jones
> %buildsubdir is a long-standing documented macro, we can't just rename it on > a whim as doing so will break packages that were doing nothing wrong. Okay, I didn't realize that, but the renaming part is only there because I thought the codebase didn't like to expose non-underscored globals.

Re: [Rpm-maint] [rpm-software-management/rpm] Make %{buildsubdir} usable without being a side effect of %setup. (#860)

2019-09-24 Thread Peter Jones
@vathpela pushed 1 commit. 43c0982a97a5c600f00b8108ef1765bc15ee563f Make %{buildsubdir} usable without being a side effect of %setup. -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Make %{buildsubdir} usable without being a side effect of %setup. (#860)

2019-09-24 Thread Peter Jones
> Other than the typo this looks good to me. > > `Reviewed-by: Adam Jackson ` Yeah, that's what I get for doing make check and then going "oh that looks dangerous, but it's an easy fix" while re-reading the patch before pushing. Anyway, new version that passes pushed. -- You are receiving

[Rpm-maint] [rpm-software-management/rpm] Make %{buildsubdir} usable without being a side effect of %setup. (#860)

2019-09-24 Thread Peter Jones
%{_buildsubdir} in different parts of the .spec, for instance if you have multiple builds of the same code with different compile options - renames it to %{_buildsubdir} since its now exposed Signed-off-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online

[Rpm-maint] [rpm-software-management/rpm] Make %setup use %{__tar_opts} to set tar options. (#859)

2019-09-24 Thread Peter Jones
This patch adds __tar_opts and __tar_opts_verbose macros, which can be overriden to change the default tar behavior when called from %setup while building packages. Signed-off-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online at: https://github.com

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Peter Jones
@vathpela pushed 1 commit. 3046bf9b66f8098bacc48be7fe141b91aea87410 Add all of the rpmbuild macro aliases to rpmspec as well -- You are receiving this because you are subscribed to this thread. View it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-20 Thread Peter Jones
vathpela commented on this pull request. > @@ -221,8 +221,8 @@ rpmbuild alias --buildpolicy --define '__os_install_post > %{_rpmconfigdir}/brp-!# rpmbuild alias --sign \ --pipe 'rpm --addsign `grep ".*: .*\.rpm$"|cut -d: -f2` < "/dev/"`ps -p $$ -o tty | tail -n 1`' \

[Rpm-maint] [rpm-software-management/rpm] Add all of the rpmbuild macro aliases to rpmspec as well (#848)

2019-09-19 Thread Peter Jones
This adds all of the rpmbuild popt aliases that expand to defines to rpmspec as well. It also changes --trace to include --POPTdesc argument help. Signed-off-by: Peter Jones pjo...@redhat.com You can view, comment on, or merge this pull request online at: https://github.com/rpm-software

Re: [Rpm-maint] [rpm-software-management/rpm] RFC: rpmlib efi provides (#438)

2018-04-27 Thread Peter Jones
How will that work? Is there some mechanism I haven't seen that makes kernel filesystems work as file provides? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] RFC: rpmlib efi provides (#438)

2018-04-26 Thread Peter Jones
This makes it possible for a package to do: Requires: system(EFI) or Conflicts: system(EFI) I'm certainly open to other ways to do this, or other ways it needs to be phrased. You can view, comment on, or merge this pull request online at:

Re: [Rpm-maint] [rpm-software-management/rpm] Bounds check strings to print correctly in %trace mode. (#160)

2017-02-20 Thread Peter Jones
It's not completely clear to me why the Jenkins check here failed, but it looks like it has to do with Jenkins, not with this patch. Given that https://github.com/rpm-software-management/rpm/pull/161 worked, I think this is fine. -- You are receiving this because you are subscribed to this

[Rpm-maint] [rpm-software-management/rpm] Bounds check strings to print correctly in %trace mode. (#160)

2017-02-20 Thread Peter Jones
or our sentinal value (NUL). Signed-off-by: Peter Jones <pjo...@redhat.com> You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/160 -- Commit Summary -- * Bounds check strings to print correctly in %trace mode. -- File Ch

[Rpm-maint] [rpm-software-management/rpm] rpm2cpio and rpm2archive: don't write archive data to a terminal. (#116)

2017-01-05 Thread Peter Jones
r encoding changes. On some systems, this can even result in installation of relatively arbitrary rpms! Nobody has ever meant to do this, and it's easy to prevent, so that's what this patch does. Signed-off-by: Peter Jones <pjo...@redhat.com> Reviewed-by: Adam Jackson <a...@redhat.com>

[Rpm-maint] [PATCH] Add efi arch macro

2011-03-10 Thread Peter Jones
Add efi to the arch macro list, so %ifarch %{efi} will work. --- macros.in |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/macros.in b/macros.in index a279995..a7e5fdb 100644 --- a/macros.in +++ b/macros.in @@ -1040,6 +1040,10 @@ done \ # arch macro for all supported