Two RPM building improvements:
- Building the RPMs can now be done by a non-root user.
- The additional target all-rpms now builds the RPMs for a multitude of target platforms.
Signed-off-by: Niels Basjes <redacted>
---
.gitignore | 1 +
Makefile | 26 ++++++++++++++++++++++++--
2 files changed, 25 insertions(+), 2 deletions(-)
From: Jakub Narebski <hidden> Date: 2016-06-15 22:46:29
Niels Basjes [off-list ref] writes:
Two RPM building improvements:
Two _unrelated_ RPM building improvements squashed in one commit.
- Building the RPMs can now be done by a non-root user.
It was always possible, you only have to configure rpm / rpmbuild,
namely put path to where you want your RPM_BUILDING directory in
~/.rpmmacros as %_topdir, for example:
$ cat ~/.rpmmacros
%_topdir /home/local/builddir
Please RTFM first, before going to solve non-problem in (ugh) fairly
complicated way.
- The additional target all-rpms now builds the RPMs for a multitude of target platforms.
Please wrap commit messages at 72-76 columns, at most at 80 columns.
No such overly long lines, please.
But the all-rpms target looks like a good idea
--
Jakub Narebski
Poland
ShadeHawk on #git
From: Michael J Gruber <hidden> Date: 2016-06-15 22:46:29
Jakub Narebski venit, vidit, dixit 27.03.2009 14:50:
Niels Basjes [off-list ref] writes:
quoted
Two RPM building improvements:
Two _unrelated_ RPM building improvements squashed in one commit.
quoted
- Building the RPMs can now be done by a non-root user.
It was always possible, you only have to configure rpm / rpmbuild,
namely put path to where you want your RPM_BUILDING directory in
~/.rpmmacros as %_topdir, for example:
$ cat ~/.rpmmacros
%_topdir /home/local/builddir
Please RTFM first, before going to solve non-problem in (ugh) fairly
complicated way.
Also, the "solution" from the patch overrides any user choice from
.rpmmacros, AFAICS.
quoted
- The additional target all-rpms now builds the RPMs for a multitude of target platforms.
Please wrap commit messages at 72-76 columns, at most at 80 columns.
No such overly long lines, please.
But the all-rpms target looks like a good idea
From: Junio C Hamano <hidden> Date: 2016-06-15 22:46:29
Jakub Narebski [off-list ref] writes:
Niels Basjes [off-list ref] writes:
quoted
Two RPM building improvements:
Two _unrelated_ RPM building improvements squashed in one commit.
quoted
- Building the RPMs can now be done by a non-root user.
It was always possible, you only have to configure rpm / rpmbuild,
namely put path to where you want your RPM_BUILDING directory in
~/.rpmmacros as %_topdir, for example:
$ cat ~/.rpmmacros
%_topdir /home/local/builddir
Please RTFM first, before going to solve non-problem in (ugh) fairly
complicated way.
That might be a bit too harsh to somebody who genuinely wished to share
his improvement with others.
Being RPM novice, the first thing I asked around immediately after taking
the maintainership over was the ~/.rpmmacros trick. We really should
mention it in _our_ documentation, even just a sentence or two would be
sufficient.
From: Michael J Gruber <hidden> Date: 2016-06-15 22:46:29
Junio C Hamano venit, vidit, dixit 27.03.2009 17:20:
Jakub Narebski [off-list ref] writes:
quoted
Niels Basjes [off-list ref] writes:
quoted
Two RPM building improvements:
Two _unrelated_ RPM building improvements squashed in one commit.
quoted
- Building the RPMs can now be done by a non-root user.
It was always possible, you only have to configure rpm / rpmbuild,
namely put path to where you want your RPM_BUILDING directory in
~/.rpmmacros as %_topdir, for example:
$ cat ~/.rpmmacros
%_topdir /home/local/builddir
Please RTFM first, before going to solve non-problem in (ugh) fairly
complicated way.
That might be a bit too harsh to somebody who genuinely wished to share
his improvement with others.
Being RPM novice, the first thing I asked around immediately after taking
the maintainership over was the ~/.rpmmacros trick. We really should
mention it in _our_ documentation, even just a sentence or two would be
sufficient.
I assumed everyone building rpms would use rpmdev-setuptree from
rpmdevtools, but apparently not ;) I'm not sure whether non-Redhat
rpm-based distros have that, though.
I'm wondering a bit about the all-rpms target. How does this work
without mock? All build requirements installed for all platforms?? I
think it really calls for a mock build/vm (unless i386 on x86_64).
Michael