On Saturday 21 May 2011, Jeff Stroomer wrote:
> Kwankyu,
> 
> Thanks for the fix.  I tried to apply the patch against a clean copy
> of Sage-4.6.2, but ran into the following:
> 
> 
> sage: hg_sage.patch('trac_11316.patch')
> cd "/Applications/sage/devel/sage" && hg status
> cd "/Applications/sage/devel/sage" && hg status
> cd "/Applications/sage/devel/sage" && hg import   "/Users/jeff/
> trac_11316.patch"
> applying /Users/jeff/trac_11316.patch
> patching file sage/rings/polynomial/pbori.pyx
> Hunk #5 FAILED at 7057
> 1 out of 6 hunks FAILED -- saving rejects to file sage/rings/
> polynomial/pbori.pyx.rej
> abort: patch failed to apply
> sage:
> Exiting Sage (CPU time 0m0.07s, Wall time 11m54.95s).

The patch is meant to apply cleanly against the upcoming 4.7 release of Sage.

> I'm guessing you've been working against something other than plain
> sage-4.6.2, but don't know the details.  Can you give me any advice as
> to how I can get your patch to work?  Before a couple days ago I
> didn't realize it was possible to patch sage, so this is somewhat new
> to me.

You have two options:
1) Install 4.7 (either wait until it is out or install a release candidate)
2) Patch Sage like this

0) go to your sage directory
1) ./sage -sh # starts a Sage shell
2) cd ./devel/sage/sage/
3) hg qimport trac_11316.patch
4) hg qpush # it will print the same error as above, ignore it
5) ./sage -b

Essentially, you do the same thing as the Sage command you quote above, but 
you ignore the error (since it isn't really that important in this particular 
case)

For more details check:

http://sagemath.org/doc/developer/walk_through.html
http://hginit.com/

Cheers,
Martin

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://martinralbrecht.wordpress.com/
_jab: [email protected]

-- 
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-support
URL: http://www.sagemath.org

Reply via email to