William Stein wrote:
> Hi,
> 
> I built sage-6.7.beta4 fine, then did "git pull", then build
> sage-6.7.beta5 fine, which passed all tests.  But I can't do "./sage
> -bdist ...":
> 
> sage -t --long --warn-long 64.2
> local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/misc/sphinxify.py
>     [14 tests, 1.23 s]
> ----------------------------------------------------------------------
> All tests passed!
> ----------------------------------------------------------------------
> Total time for all tests: 12477.3 seconds
>     cpu time: 9784.7 seconds
>     cumulative wall time: 12130.9 seconds
> salvus@compute2-us:/projects/sage/sage-6.7.beta4$
> salvus@compute2-us:/projects/sage/sage-6.7.beta4$
> salvus@compute2-us:/projects/sage/sage-6.7.beta4$ ls
> 6.7.beta4   autom4te.cache  build   config.log     configure
> COPYING.txt  home   logs  Makefile    sage  upstream
> aclocal.m4  bootstrap       config  config.status  configure.ac  dist
>        local  m4    README.txt  src   VERSION.txt
> salvus@compute2-us:/projects/sage/sage-6.7.beta4$ ./sage -bdist 6.7.beta4
> Sage version 6.7.beta5, release date 2015-05-13
> rm -rf config configure build/Makefile-auto.in
> Traceback (most recent call last):
>   File "/projects/sage/sage-6.7.beta4/src/bin/sage-download-file",
> line 417, in <module>
>     tarball = Tarball(url)
>   File "/projects/sage/sage-6.7.beta4/src/bin/sage-download-file",
> line 265, in __init__
>     self._init_checksum()
>   File "/projects/sage/sage-6.7.beta4/src/bin/sage-download-file",
> line 301, in _init_checksum
>     with open(checksums_ini, 'rt') as f:
> IOError: [Errno 2] No such file or directory:
> '/configure/configure/checksums.ini'
> Error: downloading configure-91.tar.gz failed
> 
> ---
> 
> logout/login then run sage (OK), then fails again:
> 
> salvus@compute2-us:/projects/sage/sage-6.7.beta5$ ./sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ SageMath Version 6.7.beta5, Release Date: 2015-05-13               │
> │ Type "notebook()" for the browser-based notebook interface.        │
> │ Type "help()" for help.                                            │
> └────────────────────────────────────────────────────────────────────┘
> ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
> ┃ Warning: this is a prerelease version, and it may be unstable.     ┃
> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
> The Sage installation tree has moved
> from /projects/sage/sage-6.7.beta4
>   to /projects/sage/sage-6.7.beta5
> Updating various hardcoded paths...
> (Please wait at most a few minutes.)
> DO NOT INTERRUPT THIS.
> Done updating paths.
> sage:
> Exiting Sage (CPU time 0m0.03s, Wall time 0m11.72s).
> salvus@compute2-us:/projects/sage/sage-6.7.beta5$ ./sage -bdist 6.7.beta5
> Sage version 6.7.beta5, release date 2015-05-13
> rm -rf config configure build/Makefile-auto.in
> Traceback (most recent call last):
>   File "/projects/sage/sage-6.7.beta5/src/bin/sage-download-file",
> line 417, in <module>
>     tarball = Tarball(url)
>   File "/projects/sage/sage-6.7.beta5/src/bin/sage-download-file",
> line 265, in __init__
>     self._init_checksum()
>   File "/projects/sage/sage-6.7.beta5/src/bin/sage-download-file",
> line 301, in _init_checksum
>     with open(checksums_ini, 'rt') as f:
> IOError: [Errno 2] No such file or directory:
> '/configure/configure/checksums.ini'
> Error: downloading configure-91.tar.gz failed
> salvus@compute2-us:/projects/sage/sage-6.7.beta5$
> 
> This is happening because of this line:
> 
>    pkg_dir = os.path.join(SAGE_ROOT, 'build', 'pkgs', self.package)
> 
> in
> 
>    src/bin/sage-download-file
> 
> which is not working since self.package is
> '/configure/configure/checksums.ini', which starts with a slash hence
> resets the os.path.join.
> 
> There was some recent discussion I mostly ignored about parsing
> package filenames, and the above is related to parsing tarball names.
> Anyway, this seems seriously broken and is holding up me building
> binaries for SMC for Sage development...

Not exactly related.

This should fix the issue:

diff --git a/bootstrap b/bootstrap
index e64eae4..59e5c6f 100755
--- a/bootstrap
+++ b/bootstrap
@@ -59,7 +59,7 @@ bootstrap-download () {

     mkdir upstream 2>/dev/null
     if [ ! -f $CONFBALL ]; then
-        sage-download-file
$SAGE_UPSTREAM/configure/configure-$CONFVERSION.tar.gz >$CONFBALL
+        sage-download-file configure-$CONFVERSION.tar.gz >$CONFBALL
         if [ $? -ne 0 ]; then
             rm -f "$CONFBALL"
             echo >&2 "Error: downloading configure-$CONFVERSION.tar.gz
failed"


-leif


P.S.:  I mentioned on the ticket I had not yet tested it thoroughly, but
someone else gave it positive review... ;-)


-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to