aboutsummaryrefslogtreecommitdiff
path: root/academic/sage/sage-build-root.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-19 18:22:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-19 18:22:48 +0700
commit2b9473f833d8349f5a595e7b970bc5fb4cb3ccf2 (patch)
tree392d8451b37999efa96afd3b45e8ac2f95b43268 /academic/sage/sage-build-root.patch
parent906015fffddb118928cc4c3e704f4ad6fae2a0bf (diff)
academic/sage: Updated for version 6.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/sage/sage-build-root.patch')
-rw-r--r--academic/sage/sage-build-root.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/academic/sage/sage-build-root.patch b/academic/sage/sage-build-root.patch
new file mode 100644
index 000000000000..40e1572605a8
--- /dev/null
+++ b/academic/sage/sage-build-root.patch
@@ -0,0 +1,33 @@
+--- sage-6.5/configure.old 2015-02-19 08:11:31.873711070 +0700
++++ sage-6.5/configure 2015-02-19 08:12:00.982710447 +0700
+@@ -2942,19 +2942,19 @@
+
+
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root user" >&5
+-$as_echo_n "checking for root user... " >&6; }
++#{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root user" >&5
++#$as_echo_n "checking for root user... " >&6; }
+
+-uid=`id -u`
+-if test "x$uid" == "x0"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+-$as_echo "yes" >&6; }
+- as_fn_error $? "You cannot build Sage as root, switch to a unpriviledged user" "$LINENO" 5
+-else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+-$as_echo "no" >&6; }
++#uid=`id -u`
++#if test "x$uid" == "x0"; then
++# { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++#$as_echo "yes" >&6; }
++# as_fn_error $? "You cannot build Sage as root, switch to a unpriviledged user" "$LINENO" 5
++#else
++# { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++#$as_echo "no" >&6; }
+
+-fi;
++#fi;
+
+
+ #---------------------------------------------------------