git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12d050
)
create a separate rpmbuild script that can be properly executed from sudo
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Wed, 12 Sep 2007 20:25:40 +0000
(20:25 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Wed, 12 Sep 2007 20:25:40 +0000
(20:25 +0000)
rpmbuild.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/rpmbuild.sh
b/rpmbuild.sh
new file mode 100644
(file)
index 0000000..
08da09e
--- /dev/null
+++ b/
rpmbuild.sh
@@ -0,0
+1,14
@@
+#!/bin/bash
+
+# We require this hack to tell rpmbuild where to find the .rpmmacros
+# file. And for whatever reason the $HOME variable used by the build
+# system is not set correctly when invoking rpmbuild with sudo. This
+# is hopefully just a temporary hack until we can either figure out
+# what to do with sudo or pass rpmbuild an option that points it at a
+# specific .rpmmacros file.
+
+# Be verbose
+set -x
+
+export HOME=${PWD}
+rpmbuild $@