Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various small fixes to sage-bdist #13457

Closed
jdemeyer opened this issue Sep 13, 2012 · 11 comments
Closed

Various small fixes to sage-bdist #13457

jdemeyer opened this issue Sep 13, 2012 · 11 comments

Comments

@jdemeyer
Copy link

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

@jdemeyer jdemeyer added this to the sage-5.4 milestone Sep 13, 2012
@jdemeyer jdemeyer changed the title Some refactoring of sage-bdist Various small fixes to sage-bdist Sep 13, 2012
@jdemeyer

This comment has been minimized.

@jhpalmieri
Copy link
Member

comment:3

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.

@jdemeyer
Copy link
Author

comment:4

Fixed.

Note that the main motivation for this ticket is as prerequisite of #13123.

@jhpalmieri
Copy link
Member

comment:5

The new patch looks identical to the old patch.

@jdemeyer
Copy link
Author

comment:6

I accidentally made the fixes to the wrong patch. I'm working on too many tickets at the same time...

@jdemeyer
Copy link
Author

comment:7

Fixed (for real this time).

@jhpalmieri
Copy link
Member

comment:8

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.

@jdemeyer
Copy link
Author

comment:9

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.

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@jhpalmieri
Copy link
Member

comment:10

Okay, good.

@jdemeyer
Copy link
Author

Merged: sage-5.4.beta2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants