Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 2b5c532633291ce3757a200c6cc70157 > files > 3

fbembed-2.5.9.27115-13.mga9.src.rpm

From: Michal Kubecek <mkubecek@suse.cz>
Date: Sun, 3 Jun 2012 15:15:28 +0200
Subject: [PATCH 01/10] 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