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

2019-10-16 Thread Panu Matilainen
#551 is relevant/related. -- 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/860#issuecomment-542613820___ Rpm-maint mailing list

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

2019-10-09 Thread Panu Matilainen
I've been mulling over this thing over and over: in principle, I like the idea of eliminating magic from %setup a lot, I've just been worried that there are cases that our test-suite doesn't exhibit that rely on some subtleties around spec->buildSubdir being untouchable by macros (maybe because

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

2019-10-09 Thread Panu Matilainen
Just submitted #890 to sanitize + fix the build-in-place case, which should eliminate it from the radar in this patch completely. -- 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-10-09 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -345,7 +349,7 @@ static int doSetupMacro(rpmSpec spec, const char *line) } if (!createDir) { - rasprintf(, "cd '%s'", spec->buildSubdir); + buf = rpmExpand("%{?buildsubdir:cd '%{buildsubdir}'}", NULL); As an aside, the

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

2019-10-09 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -345,7 +349,7 @@ static int doSetupMacro(rpmSpec spec, const char *line) } if (!createDir) { - rasprintf(, "cd '%s'", spec->buildSubdir); + buf = rpmExpand("%{?buildsubdir:cd '%{buildsubdir}'}", NULL); I mean, this is inside

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

2019-10-09 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -345,7 +349,7 @@ static int doSetupMacro(rpmSpec spec, const char *line) } if (!createDir) { - rasprintf(, "cd '%s'", spec->buildSubdir); + buf = rpmExpand("%{?buildsubdir:cd '%{buildsubdir}'}", NULL); We didn't need all

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

2019-10-09 Thread Panu Matilainen
pmatilai commented on this pull request. > } /* Mer addition - support --build-in-place */ if (rpmExpandNumeric("%{_build_in_place}")) { buildInPlace = 1; - spec->buildSubdir = NULL; + rpmPushMacro(spec->macros, "buildsubdir", NULL, "", RMIL_SPEC); This would

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-25 Thread Panu Matilainen
%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. What's the actual use-case behind this? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view

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

2019-09-24 Thread Adam Jackson
nwnk approved this pull request. > @@ -329,8 +333,8 @@ static int doSetupMacro(rpmSpec spec, const char *line) /* if necessary, create and cd into the proper dir */ if (createDir) { - buf = rpmExpand("%{__mkdir_p} ", spec->buildSubdir, "\n", - "cd '",

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

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

2019-09-24 Thread Adam Jackson
Other than the typo this looks good to me. `Reviewed-by: Adam Jackson ` -- 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] Make %{buildsubdir} usable without being a side effect of %setup. (#860)

2019-09-24 Thread Peter Jones
This patch makes a couple of related changes: - lets you set %{_buildsubdir} as a global to expose it everywhere, rather than just specific parts of %prep (%setup and %patch*) - lets you choose what path is used independently of the unpack options in %setup - allows you to use a different