File allow-creating-buildRoot-as-non-root-user.patch of Package firebird
From: Michal Kubecek <mkubecek@suse.cz>
Date: Sun, 3 Jun 2012 15:15:28 +0200
Subject: allow creating buildRoot as non-root user
Do not use chown in "make buildRoot" so that it doesn't require
to be run as root.
---
.../install/arch-specific/linux/misc/makeInstallImage.sh.in | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in b/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in
index cda8e63..ee6fab8 100644
--- a/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in
+++ b/builds/install/arch-specific/linux/misc/makeInstallImage.sh.in
@@ -28,10 +28,15 @@
# This script builds an image of the installed system into
# the gen/buildroot directory.
-if [ "`whoami`" != "root" ]; then
- echo 'You must be root to build package'
- exit 1
-fi
+#if [ "`whoami`" != "root" ]; then
+# echo 'You must be root to build package'
+# exit 1
+#fi
+
+function chown
+{
+ :
+}
# Making an assumption that this program is being run in the gen directory
BuildRootDir=..
--
1.8.4.5