#12486: Add patchbot to Sage itself
----------------------------------------------+-----------------------------
Reporter: robertwb | Owner: mvngu
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.3
Component: doctest | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: Robert Bradshaw, Dan Drake | Merged in:
Dependencies: | Stopgaps:
----------------------------------------------+-----------------------------
Comment (by kini):
I have this setup on arando:
{{{
[1] patchbot@arando /opt $ ls -hal
total 4.4G
drwxrwxr-x 3 root opt 4.0K Aug 15 21:42 .
drwxr-xr-x 22 root root 4.0K Aug 13 18:32 ..
lrwxrwxrwx 1 patchbot patchbot 18 Aug 13 20:12 patchbot ->
patchbot-5.3.beta1
drwxr-xr-x 10 patchbot patchbot 4.0K Aug 13 23:49 patchbot-5.3.beta1
-rw-rw-r-- 1 patchbot patchbot 295M Jul 3 03:15 sage-5.0.1.tar
-r--r--r-- 1 kini kini 294M May 15 17:54 sage-5.0.tar
-rw-r--r-- 1 kini kini 294M May 18 02:09 sage-5.1.beta0.tar
-rw-rw-r-- 1 patchbot patchbot 294M May 29 05:40 sage-5.1.beta1.tar
-rw-rw-r-- 1 patchbot patchbot 290M Jun 4 00:58 sage-5.1.beta2.tar
-rw-rw-r-- 1 patchbot patchbot 290M Jun 7 17:37 sage-5.1.beta3.tar
-rw-rw-r-- 1 patchbot patchbot 291M Jun 19 19:31 sage-5.1.beta5.tar
-rw-rw-r-- 1 patchbot patchbot 291M Jun 25 19:30 sage-5.1.beta6.tar
-rw-rw-r-- 1 patchbot patchbot 291M Jul 3 03:16 sage-5.1.rc0.tar
-rw-rw-r-- 1 patchbot patchbot 291M Jul 6 07:32 sage-5.1.rc1.tar
-rw-rw-r-- 1 patchbot patchbot 313M Jul 10 02:18 sage-5.2.beta0.tar
-rw-rw-r-- 1 patchbot patchbot 314M Jul 25 01:59 sage-5.2.rc1.tar
-rw-rw-r-- 1 patchbot patchbot 314M Jul 26 02:00 sage-5.2.tar
-rw-rw-r-- 1 patchbot patchbot 314M Aug 1 23:55 sage-5.3.beta0.tar
-rw-rw-r-- 1 patchbot patchbot 314M Aug 13 06:15 sage-5.3.beta1.tar
-rwxrwxr-x 1 patchbot patchbot 1.3K Aug 15 21:42 setup-patchbot.sh
[1] patchbot@arando /opt $ cat setup-patchbot.sh
#!/bin/bash
# This script upgrades the currently running patchbot in this directory.
# Supply a Sage version number as an argument, and the script will
# download, set up, and run the patchbot.
VER=$1
[ -n $VER ] || exit 1
# Get new patchbot and extract it
rm -f sage-$VER.tar
wget http://boxen.math.washington.edu/home/release/sage-$VER/sage-$VER.tar
rm -rf $(readlink patchbot)
# Delete old patchbot dir (keep tarball) and move symlink to new
# patchbot dir
rm patchbot
tar xf sage-$VER.tar
mv sage-$VER patchbot-$VER
ln -s patchbot-$VER patchbot
# Build new patchbot's Sage from source
cd patchbot
make
# Install the patchbot into the newly built Sage version (TODO: update
# this when the patches on ticket #12486 change, or when #12486 is
# merged)
hg qimport -P http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/12486/patchbot-root-5.0.patch
hg -R local/bin qimport -P http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/12486/12486-patchbot-scripts-5.0-updated.patch
hg -R local/bin qimport -P http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/12486/12486-fix-sdist.patch
hg -R local/bin qimport -P http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/12486/trac_12486_fix_fd_leak.patch
./sage -b
# Start the patchbot
exec ./sage --patchbot
[1] patchbot@arando /opt $
}}}
Makes it pretty easy...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12486#comment:70>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.