Closed jdemeyer closed 11 years ago
Description changed:
---
+++
@@ -1 +1 @@
-
+See patch, apply [attachment: 13457_sage_bdist.patch](https://github.com/sagemath/sage-prod/files/10656340/13457_sage_bdist.patch.gz) to the scripts repository.
If you feel like doing a little more:
diff --git a/sage-bdist b/sage-bdist
--- a/sage-bdist
+++ b/sage-bdist
@@ -32,10 +32,8 @@ TARGET=sage-"$SAGE_VERSION"-`uname -m`-`
TARGET=`echo $TARGET | sed 's/ //g'` # Remove spaces
TMP="$CUR/tmp/$TARGET"
-mkdir -p "$CUR/tmp"
-
rm -rf "$TMP"
-mkdir "$TMP"
+mkdir -p "$TMP"
# copy sage root repo over:
cd "$SAGE_ROOT"
@@ -72,15 +70,14 @@ if [ -d devel/sage ]; then
ln -sf ../../../../devel/sage/build/sage .
fi
+cd "$SAGE_ROOT"
+
if [ -d devel/sagenb ]; then
echo "Copying Sage Notebook"
cp $CP_OPT -L devel/sagenb "$TMP/devel/sagenb-main"
ln -s sagenb-main "$TMP/devel/sagenb"
fi
-
-cd "$SAGE_ROOT"
-
if [ -d "$PKGDIR" ]; then
echo "Making empty spkg's"
cd "$PKGDIR"
The last two changes are actually crucial: you need a cd "$SAGE_ROOT"
before line 75 because otherwise, the working directory is wrong and the if [ -d devel/sagenb ]
block doesn't execute.
I'll try to keep looking at this.
Fixed.
Note that the main motivation for this ticket is as prerequisite of #13123.
The new patch looks identical to the old patch.
I accidentally made the fixes to the wrong patch. I'm working on too many tickets at the same time...
Fixed (for real this time).
When I run this on OpenSolaris, I see lots of warning messages like
Copying files over to tmp directory
cp: Failed to set acl entries on /export/home/palmieri/testing/sage-5.3.beta2/tmp/sage-5.3.X-i86pc-SunOS//local/include/csage
cp: Failed to set acl entries on /export/home/palmieri/testing/sage-5.3.beta2/tmp/sage-5.3.X-i86pc-SunOS//local/lib/libreadline.so
As far as I can tell, the only consequence of this is that the various symbolic links in local/lib end up with new modification times. If I'm right, we can ignore the warnings. The resulting binary seems to work just fine. What do you think?
Also, the verbose flag in tar zcvf ...
is unneeded, in my opinion, although I guess it's nice to see some indication of progress while the tar.gz file is being created.
Attachment: 13457_sage_bdist.patch.gz
I haven't looked at the OpenSolaris issues, but in any case it's not a regression of this ticket.
Agree on removing the tar v
flag, new patch needs review.
Reviewer: John Palmieri
Okay, good.
Merged: sage-5.4.beta2
See patch, apply attachment: 13457_sage_bdist.patch to the scripts repository.
Component: scripts
Author: Jeroen Demeyer
Reviewer: John Palmieri
Merged: sage-5.4.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13457