diff -r bf0e6e20391c -r 5518fc960e09 SPKG.txt
a
|
b
|
|
76 | 76 | FLINT 2.x. If a sufficiently recent version of FLINT is ever added |
77 | 77 | to Sage, we should make Singular use it |
78 | 78 | (configure --with-flint="$SAGE_LOCAL"). |
79 | | * If the environment variable SINGULAR_XALLOC is set to "yes", then |
| 79 | * If the environment variable SINGULAR_DEBUG is set to "yes", then |
80 | 80 | omalloc will be replaced by xalloc. The resulting Singular executable |
81 | 81 | and libsingular library will be slower than with omalloc, but allow |
82 | 82 | for easier debugging of memory corruptions. |
83 | 83 | |
84 | 84 | == ChangeLog == |
85 | 85 | |
| 86 | === singular-3-1-5.p3 (Volker Braun, 28 December 2012) === |
| 87 | * Trac #13876: Rename SINGULAR_XALLOC to SAGE_DEBUG |
| 88 | * Build fixes for the Sage library with SAGE_DEBUG=yes |
| 89 | |
86 | 90 | === singular-3-1-5.p2 (Simon King, 03 December 2012) === |
87 | 91 | * Trac #13731 |
88 | 92 | * Optionally replace omalloc with xalloc (a thin compatibility layer |
diff -r bf0e6e20391c -r 5518fc960e09 patches/conditional/singular_xalloc.patch
a
|
b
|
|
447 | 447 | diff -ruN a/omalloc/omalloc.h b/omalloc/omalloc.h |
448 | 448 | --- a/omalloc/omalloc.h 1970-01-01 01:00:00.000000000 +0100 |
449 | 449 | +++ b/omalloc/omalloc.h 2012-12-21 11:08:42.137513466 +0100 |
450 | | @@ -0,0 +1,223 @@ |
| 450 | @@ -0,0 +1,230 @@ |
451 | 451 | +#ifndef XMEMORY_H |
452 | 452 | +#define XMEMORY_H |
453 | 453 | +/**************************************** |
… |
… |
|
647 | 647 | +#define omTestBinAddrSize(A,B,C) (omError_NoError) |
648 | 648 | +#define omInitRet_2_Info(argv0) ((void) 0) |
649 | 649 | +#define omMergeStickyBinIntoBin(A,B) ((void) 0) |
| 650 | +#define omIsTrackAddr(addr) 0 |
| 651 | +#define omIsTrackAddrPage(page) 0 |
| 652 | +#define omIsNormalBinPageAddr(addr) omIsBinPageAddr(addr) |
| 653 | +#define omIsBinAddrTrackAddr(addr) 0 |
| 654 | +#define omFreeKeptAddr() ((void)0) |
| 655 | +#define omPrintUsedAddrs(fd,m) ((void)0) |
| 656 | +#define omPrintUsedTrackAddrs(fd,m) ((void)0) |
650 | 657 | + |
651 | 658 | +enum omError_e |
652 | 659 | +{ |
diff -r bf0e6e20391c -r 5518fc960e09 spkg-install
a
|
b
|
|
94 | 94 | |
95 | 95 | if [ "x$SAGE_DEBUG" = "xyes" ]; then |
96 | 96 | mv conditional/sage_debug.patch . || return $? |
97 | | fi |
98 | | |
99 | | if [ "x$SINGULAR_XALLOC" = "xyes" ]; then |
100 | 97 | # Remove old omalloc files, except for configure |
101 | 98 | mv ../src/omalloc/configure configure_omalloc |
102 | 99 | rm -r ../src/omalloc/* |