scripts/package/Makefile: Restore the RPMOPTS variable
PATCH 1/1 scripts/package/Makefile: Restore the RPMOPTS variable
Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.
--- scripts/package/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/package/Makefile +2 -2
@@ -52,7 +52,7 @@ rpm-pkg rpm: FORCE $(call cmd,src_tar,$(KERNELPATH),kernel.spec) $(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version mv -f $(objtree)/.tmp_version $(objtree)/.version - rpmbuild --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz + rpmbuild $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz rm $(KERNELPATH).tar.gz kernel.spec # binrpm-pkg
@@ -63,7 +63,7 @@ binrpm-pkg: FORCE $(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version mv -f $(objtree)/.tmp_version $(objtree)/.version - rpmbuild --define "_builddir $(objtree)" --target \ + rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \ $(UTS_MACHINE) -bb $(objtree)/binkernel.spec rm binkernel.spec
Signature · 1 line
2.1.4
Dne 17.10.2015 v 02:09 Jim Davis napsal(a):
Quoted 6 lines
Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit
21a59991ce0c("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.Reported-by Alaa Hleihel <[email protected]>Signed-off-by Jim Davis <[email protected]>
If this is a regression fix, please add a Fixes: hash ("commit message") line to the signoff area.
Out of curiosity, what options do you need to pass to rpmbuild?
Michal
hi
Quoted 5 lines · Michal Marek
Dne 17.10.2015 v 02:09 Jim Davis napsal(a):
Quoted 4 lines
Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit
21a59991ce0c("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.
Quoted 7 lines
Quoted 2 lines
Reported-by Alaa Hleihel <[email protected]>Signed-off-by Jim Davis <[email protected]>If this is a regression fix, please add a Fixes: hash ("commit message") line to the signoff area.
Out of curiosity, what options do you need to pass to rpmbuild?
A common usage will be to change the default _topdir (RPMOPTS="--define \"_topdir /tmp/build\"").
Regards,
Alaa