--- singular-3-0-4-3.dfsg.orig/debian/control.in +++ singular-3-0-4-3.dfsg/debian/control.in @@ -0,0 +1,43 @@ +Source: singular +Section: math +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Tim Abbott +Homepage: http://www.singular.uni-kl.de/ +Build-Depends: @cdbs@, libgmp3-dev, libntl-dev, libncurses5-dev, libreadline-dev, libmpfr-dev +Standards-Version: 3.8.0 + +Package: singular +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libsingular-3-0-4-3 +Description: A commutative algebra system + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. + +Package: libsingular-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libsingular-3-0-4-3 +Description: Library for commutative algebra, development files + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. + +Package: libsingular-3-0-4-3 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Library for commutative algebra, shared library + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. --- singular-3-0-4-3.dfsg.orig/debian/singular.install +++ singular-3-0-4-3.dfsg/debian/singular.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin/* usr/lib/singular +debian/singular-bin/* /usr/bin --- singular-3-0-4-3.dfsg.orig/debian/compat +++ singular-3-0-4-3.dfsg/debian/compat @@ -0,0 +1 @@ +5 --- singular-3-0-4-3.dfsg.orig/debian/libsingular-dev.install +++ singular-3-0-4-3.dfsg/debian/libsingular-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/include/ usr/ +debian/tmp/usr/lib/singular/*.*a usr/lib/ +debian/tmp/usr/lib/singular/libsingular.so usr/lib/ --- singular-3-0-4-3.dfsg.orig/debian/libsingular-3-0-4-3.install +++ singular-3-0-4-3.dfsg/debian/libsingular-3-0-4-3.install @@ -0,0 +1,3 @@ +debian/tmp/usr/bin/*.so usr/lib/singular/ +debian/tmp/usr/lib/singular/libsingular-*.so usr/lib/ +debian/tmp/usr/share/singular/* usr/lib/singular/ --- singular-3-0-4-3.dfsg.orig/debian/copyright +++ singular-3-0-4-3.dfsg/debian/copyright @@ -0,0 +1,199 @@ +This package was debianized by Tim Abbott in 2008. + +It was downloaded from http://www.singular.uni-kl.de. + +Copyright: (C) 1986-2007 G.-M. Greuel, G. Pfister, H. Schoenemann + (C) 1999-2007 O. Bachmann (omalloc/, licensed under GPL2+) + (C) 1991-2007 G.-M. Greuel, R. Stobbe, J. Schmidt, G. Pfister, + H. Schoenemann (factory/) + (C) 1996-2007 Michael Messollen (libfac/) + (C) 1996-2007 Agnes Eileen Heydtmann, + Alexander Dreyer, + Andrea Mindnich, + Anne Fruehbis-Krueger, + Bernd Martin, + Christian Gorzel, + Christine Theis, + Christoph Lossen, + Dietmar Hillebrand, + Gerhard Pfister, + Gert-Martin Greuel, + Hans Schoenemann, + I.Bermejo, + Ivor Saynisch, + Jorge Martin Morales, + Jose Ignacio Farran Martin, + Kai Krueger, + Markus Hochstetter, + Martin Lamm, + Maryna Viazovska, + Mathias Schulze, + Moritz Wenk, + Olaf Bachmann, + Ph.Gimenez, + Santiago Laplagne, + S. Endrass, + Simon King, + Thomas Bayer, + Thomas Keilen, + Tobias Hirsch, + Viktor Levandovskyy, + Wilfred Pohl, + Wolfram Decker (Singular/LIB) + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 or version 3 of the License. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The file factory/bin/folding.el is + +Copyright (C) 1992, 1993, Jamie Lokier + +and is also licensed under the GPL, version 2 or higher. + +The file Singular/run.c is + +Copyright (C) 1998 Charles S. Wilson + +and is licensed under the GPL, version 2 or higher. + +The file omalloc/gmalloc.c is + +Copyright 1990, 1991, 1992, 1993, 1995 Free Software Foundation, Inc. + Written May 1989 by Mike Haertel. + +and is licensed under the GPL, version 2 or higher. + +The file factory/readcf.cc is + +Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, + 2006 Free Software Foundation, Inc. + +and is licensed under the GPL, version 2 or higher. + +The files kernel/fegetopt.h and kernel/fegetopt.c are + +Copyright (C) 1987-1994 Free Software Foundation, Inc. + +and are licensed under the GPL, version 2 or higher. + +The directory mpr/ is taken from the libiberty library, and is + + Copyright 1989-1992 Free Software Foundation, Inc. + +and is licensed under the GPL, version 2 or higher. + +The file kernel/htmlhelp.h has a different license: + + * Copyright 2004 Jacek Caban + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +On Debian systems, the complete text of the GNU Lesser General Public +License can be found in `/usr/share/common-licenses/LGPL'. + +The file omalloc/omReturn.h has the following license: + + * Copyright 2000 by Gray Watson + * + * This file is part of the dmalloc package. + * + * Permission to use, copy, modify, and distribute this software for + * any purpose and without fee is hereby granted, provided that the + * above copyright notice and this permission notice appear in all + * copies, and that the name of Gray Watson not be used in advertising + * or publicity pertaining to distribution of the document or software + * without specific, written prior permission. + * + * Gray Watson makes no representations about the suitability of the + * software described herein for any purpose. It is provided "as is" + * without express or implied warranty. + * + * The author may be contacted via http://dmalloc.com/ + +The files Singular/ndbm.cc and Singular/ndbm.h have the following license: + +Copyright (c) 1983 Regents of the University of California. + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted under the terms of the BSD License. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +On Debian systems, the complete text of the BSD License can be +found in `/usr/share/common-licenses/BSD'. + +The directory omalloc/Misc/dlmalloc has the following license: + +Copyright (c) 1995 Wolfram Gloger + +Permission to use, copy, modify, distribute, and sell this software +and its documentation for any purpose is hereby granted without fee, +provided that (i) the above copyright notices and this permission +notice appear in all copies of the software and related documentation, +and (ii) the name of Wolfram Gloger may not be used in any advertising +or publicity relating to the software. + +THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, +EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY +WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + +IN NO EVENT SHALL WOLFRAM GLOGER BE LIABLE FOR ANY SPECIAL, +INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY +OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +The directory MP/ was removed from the singular package because it had +non-DFSG free code (the license requires non-commercial use). + +The directory ntl/ was removed from the singular package in order to +use the Debian ntl package from upstream sources. + +The directory Singular/LIB/surfex and the file Singular/LIB/surfex.lib +were removed from the singular package because it had unclear +copyright status, had no actual java sources for the class files, and +regardless should be packaged separately should it be included in +Debian. + +The Debian packaging is (C) 2008, Tim Abbott and is +licensed under the GPL, see above. --- singular-3-0-4-3.dfsg.orig/debian/control +++ singular-3-0-4-3.dfsg/debian/control @@ -0,0 +1,43 @@ +Source: singular +Section: math +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Tim Abbott +Homepage: http://www.singular.uni-kl.de/ +Build-Depends: cdbs (>= 0.4.23-1.1), autotools-dev, debhelper (>= 5), quilt, patchutils (>= 0.2.25), cdbs (>= 0.4.27), libgmp3-dev, libntl-dev, libncurses5-dev, libreadline5-dev, libmpfr-dev +Standards-Version: 3.8.0 + +Package: singular +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libsingular-3-0-4-3 +Description: A commutative algebra system + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. + +Package: libsingular-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libsingular-3-0-4-3 +Description: Library for commutative algebra, development files + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. + +Package: libsingular-3-0-4-3 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Library for commutative algebra, shared library + SINGULAR is a Computer Algebra System for polynomial computations + with special emphasis on the needs of commutative algebra, + algebraic geometry, and singularity theory. + . + Main computational objects: ideals/modules over very general + polynomial rings over various ground fields. --- singular-3-0-4-3.dfsg.orig/debian/libsingular-3-0-4-3.lintian-overrides +++ singular-3-0-4-3.dfsg/debian/libsingular-3-0-4-3.lintian-overrides @@ -0,0 +1 @@ +libsingular-3-0-4-3: shlib-with-executable-bit usr/lib/libsingular-3-0-4-3.so 0755 --- singular-3-0-4-3.dfsg.orig/debian/changelog +++ singular-3-0-4-3.dfsg/debian/changelog @@ -0,0 +1,29 @@ +singular (3-0-4-3.dfsg-3ubuntu1) lucid; urgency=low + + * debian/patches/: Refresh: + + sage-bugfixes.patch + + soname.patch + * debian/patches/fix-invalid-conversion.patch: Use upstream fix + (cast!) for invalid conversion. + + -- Daniel T Chen Sat, 02 Jan 2010 02:21:23 -0500 + +singular (3-0-4-3.dfsg-3) unstable; urgency=low + + * Update readline dependency to "libreadline-dev", not + "libreadline5-dev". + + -- Tim Abbott Fri, 18 Sep 2009 19:48:47 -0400 + +singular (3-0-4-3.dfsg-2) unstable; urgency=low + + * Change singuname architecture detection to support Linux on + architectures unknown to the Singular build system. (Closes: #493492). + + -- Tim Abbott Sat, 02 Aug 2008 21:45:51 -0400 + +singular (3-0-4-3.dfsg-1) unstable; urgency=low + + * Initial release (Closes: #383515). + + -- Tim Abbott Tue, 08 Jul 2008 19:12:19 -0400 --- singular-3-0-4-3.dfsg.orig/debian/Singular.1 +++ singular-3-0-4-3.dfsg/debian/Singular.1 @@ -0,0 +1,92 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH SINGULAR "1" "April 2008" "Singular" "User Commands" +.SH NAME +Singular \- A commutative algebra system for polynomial computations +.SH DESCRIPTION +.SS "Singular -- a CAS for polynomial computations." +.SS "ESingular: starts-up Singular within emacs." +.SS "TSingular: starts-up Singular within a new terminal" +.IP +.SH SYNTAX +.B \&Singular [options] [file1 [file2 ...]] + +.B \&ESingular [options] [file1 [file2 ...]] + +.B \&TSingular [options] [file1 [file2 ...]] + +.SH OPTIONS +.TP +\fB\-b\fR \fB\-\-batch\fR +Run in MP batch mode +.TP +\fB\-c\fR \fB\-\-execute\fR=\fISTRING\fR +Execute STRING on start\-up +.TP +\fB\-d\fR \fB\-\-sdb\fR +Enable source code debugger (experimental) +.TP +\fB\-e\fR \fB\-\-echo\fR[=\fIVAL\fR] +Set value of variable `echo' to (integer) VAL +.TP +\fB\-h\fR \fB\-\-help\fR +Print help message and exit +.TP +\fB\-q\fR \fB\-\-quiet\fR +Do not print start\-up banner and lib load messages +.TP +\fB\-r\fR \fB\-\-random\fR=\fISEED\fR +Seed random generator with integer (integer) SEED +.TP +\fB\-t\fR \fB\-\-no\-tty\fR +Do not redefine the terminal characteristics +.TP +\fB\-u\fR \fB\-\-user\-option\fR=\fISTRING\fR +Return STRING on `system("\-\-user\-option")' +.TP +\fB\-v\fR \fB\-\-version\fR +Print extended version and configuration info +.TP +\fB\-\-allow\-net\fR +Allow to fetch (html) help pages from the net +.TP +\fB\-\-browser\fR=\fIBROWSER\fR +Display help in BROWSER ([x,tk]info, netscape) +.TP +\fB\-\-emacs\fR +Set defaults for running within emacs +.TP +\fB\-\-no\-stdlib\fR +Do not load `standard.lib' on start\-up +.TP +\fB\-\-no\-rc\fR +Do not execute `.singularrc' file(s) on start\-up +.TP +\fB\-\-no\-warn\fR +Do not display warning messages +.TP +\fB\-\-no\-out\fR +Suppress all output +.TP +\fB\-\-min\-time\fR=\fISECS\fR +Do not display times smaller than SECS (in seconds) +.TP +\fB\-\-MPport\fR=\fIPORT\fR +Use PORT number for MP conections +.TP +\fB\-\-MPhost\fR=\fIHOST\fR +Use HOST for MP connections +.TP +\fB\-\-MPrsh\fR=\fIRSH\fR +Use RSH for MP connections +.TP +\fB\-\-ticks\-per\-sec\fR=\fITICKS\fR +Sets unit of timer to TICKS per second +.PP +For more information, type `help;' from within Singular or visit +http://www.singular.uni\-kl.de or consult the +Singular manual (available as on\-line info or html manual). +.PP +.SH "SEE ALSO" +The full documentation for +.B Singular +is maintained as a Texinfo manual. --- singular-3-0-4-3.dfsg.orig/debian/rules +++ singular-3-0-4-3.dfsg/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +#DEB_AUTO_UPDATE_AUTOCONF = 1 +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +CFLAGS += -fPIC +CXXFLAGS += -fPIC +# Singular doesn't use DESTDIR, so we'll try to put DESTDIR in PREFIX +PREFIX=$(DEB_DESTDIR)/usr +DEB_CONFIGURE_EXTRA_FLAGS += --with-apint=gmp --with-gmp=/usr/lib --with-ntl --with-NTL --without-MP --enable-gmp=/usr/lib --enable-Singular --enable-factory --enable-libfac --enable-IntegerProgramming --disable-debug --prefix=$(PREFIX) --exec_prefix=$(PREFIX) --libdir=$(PREFIX)/lib/singular --libexecdir=$(PREFIX)/lib/singular --bindir=$(PREFIX)/bin --includedir=$(PREFIX)/include/singular/ --without-lex --without-bison --enable-doc --without-Boost +DEB_MAKE_INVOKE += slibdir=$(PREFIX)/share/singular install_slibdir=$(PREFIX)/share/singular +DEB_MAKE_BUILD_TARGET = distclean +DEB_MAKE_CLEAN_TARGET = distclean +DEB_MAKE_INSTALL_TARGET = install-nolns +DEB_FIXPERMS_EXCLUDE = libsingular-3-0-4-3.so +DEB_DH_LINK_singular += usr/share/man/man1/Singular.1.gz usr/share/man/man1/ESingular.1.gz +DEB_DH_LINK_singular += usr/share/man/man1/Singular.1.gz usr/share/man/man1/TSingular.1.gz + +common-install-impl:: +# +$(DEB_MAKE_INVOKE) libsingular + +$(DEB_MAKE_INVOKE) install-libsingular + +# binary-post-install/singular:: +# rm -f debian/singular/usr/bin/*.*o* + +binary-post-install/libsingular-3-0-4-3:: + chmod -x debian/*/usr/lib/singular/*.lib + chmod -x debian/*/usr/lib/singular/gftables/* + +binary-post-install/libsingular-dev:: + chmod -x debian/*/usr/include/singular/*.h + chmod -x debian/*/usr/include/singular/*.c + chmod -x debian/*/usr/include/singular/singular/* + +binary-post-install/singular:: + rm -f debian/singular/usr/lib/singular/*.so + +clean:: +# rm -f configure + find . -name *.dl_o -exec rm \{\} \; + find . -name *.o -exec rm \{\} \; + find . -name *.og -exec rm \{\} \; + find . -name *.so -exec rm \{\} \; + find . -name *.a -exec rm \{\} \; + find . -name *.o_ndebug -exec rm \{\} \; + find . -name *.op -exec rm \{\} \; + rm -f Singular/libparse.cc.lmp Singular/stamp-h doc/uname.texi doc/version.texi kernel/prCopy.inc --- singular-3-0-4-3.dfsg.orig/debian/singular.manpages +++ singular-3-0-4-3.dfsg/debian/singular.manpages @@ -0,0 +1 @@ +debian/Singular.1 --- singular-3-0-4-3.dfsg.orig/debian/singular-bin/Singular +++ singular-3-0-4-3.dfsg/debian/singular-bin/Singular @@ -0,0 +1,11 @@ +#!/bin/bash +export SINGULARPATH=/usr/lib/singular +export SINGULAR_BIN_DIR=/usr/lib/singular +export SINGULAR_ROOT_DIR=/usr/share/singular +export SINGULAR_INFO_FILE=/usr/share/doc/singular/info/singular.hlp +export SINGULAR_IDX_FILE=/usr/share/doc/singular/doc/singular.idx +export SINGULAR_HTML_DIR=/usr/share/doc/singular/html +export SINGULAR_EXAMPLES_DIR=/usr/share/doc/singular/examples +export SINGULAR_EXECUTABLE=/usr/lib/singular/Singular +export PATH=/usr/lib/singular:/usr/bin:$PATH +exec /usr/lib/singular/Singular "$@" --- singular-3-0-4-3.dfsg.orig/debian/singular-bin/TSingular +++ singular-3-0-4-3.dfsg/debian/singular-bin/TSingular @@ -0,0 +1,11 @@ +#!/bin/bash +export SINGULARPATH=/usr/lib/singular +export SINGULAR_BIN_DIR=/usr/lib/singular +export SINGULAR_ROOT_DIR=/usr/share/singular +export SINGULAR_INFO_FILE=/usr/share/doc/singular/info/singular.hlp +export SINGULAR_IDX_FILE=/usr/share/doc/singular/doc/singular.idx +export SINGULAR_HTML_DIR=/usr/share/doc/singular/html +export SINGULAR_EXAMPLES_DIR=/usr/share/doc/singular/examples +export SINGULAR_EXECUTABLE=/usr/lib/singular/Singular +export PATH=/usr/lib/singular:/usr/bin:$PATH +exec /usr/lib/singular/TSingular "$@" --- singular-3-0-4-3.dfsg.orig/debian/singular-bin/ESingular +++ singular-3-0-4-3.dfsg/debian/singular-bin/ESingular @@ -0,0 +1,11 @@ +#!/bin/bash +export SINGULARPATH=/usr/lib/singular +export SINGULAR_BIN_DIR=/usr/lib/singular +export SINGULAR_ROOT_DIR=/usr/share/singular +export SINGULAR_INFO_FILE=/usr/share/doc/singular/info/singular.hlp +export SINGULAR_IDX_FILE=/usr/share/doc/singular/doc/singular.idx +export SINGULAR_HTML_DIR=/usr/share/doc/singular/html +export SINGULAR_EXAMPLES_DIR=/usr/share/doc/singular/examples +export SINGULAR_EXECUTABLE=/usr/lib/singular/Singular +export PATH=/usr/lib/singular:/usr/bin:$PATH +exec /usr/lib/singular/ESingular "$@" --- singular-3-0-4-3.dfsg.orig/debian/patches/change-library-search-path.patch +++ singular-3-0-4-3.dfsg/debian/patches/change-library-search-path.patch @@ -0,0 +1,13 @@ +Index: singular-20071209/kernel/feResource.cc +=================================================================== +--- singular-20071209.orig/kernel/feResource.cc 2008-02-07 05:12:57.000000000 -0500 ++++ singular-20071209/kernel/feResource.cc 2008-02-07 05:13:14.000000000 -0500 +@@ -73,7 +73,7 @@ + { + {"SearchPath", 's', feResPath, NULL, + "$SINGULARPATH;" +- "%b/LIB;" ++ "/usr/lib/singular/LIB/;" + "%b/MOD;" + "%r/LIB;" + "%r/../LIB;" --- singular-3-0-4-3.dfsg.orig/debian/patches/architecture.patch +++ singular-3-0-4-3.dfsg/debian/patches/architecture.patch @@ -0,0 +1,34 @@ +Index: singular-3-0-4-3.dfsg/singuname.sh +=================================================================== +--- singular-3-0-4-3.dfsg.orig/singuname.sh 2008-08-02 21:41:30.000000000 -0400 ++++ singular-3-0-4-3.dfsg/singuname.sh 2008-08-02 21:45:17.000000000 -0400 +@@ -233,6 +233,12 @@ + fi + + else # Unknown ######################################################## +- echo Unknown +- exit 2 ++ if (echo $uname_a | $egrep "Linux" > $devnull) ++ then ++ echo Unknown-Linux ++ exit 0 ++ else ++ echo Unknown ++ exit 2 ++ fi + fi +Index: singular-3-0-4-3.dfsg/kernel/mod_raw.cc +=================================================================== +--- singular-3-0-4-3.dfsg.orig/kernel/mod_raw.cc 2008-08-02 21:42:19.000000000 -0400 ++++ singular-3-0-4-3.dfsg/kernel/mod_raw.cc 2008-08-02 21:45:35.000000000 -0400 +@@ -208,6 +208,10 @@ + #define HAVE_ELF_SYSTEM + #endif + ++#ifdef Unknown_Linux ++#define HAVE_ELF_SYSTEM ++#endif ++ + #if defined(HAVE_ELF_SYSTEM) + #include + --- singular-3-0-4-3.dfsg.orig/debian/patches/fix-invalid-conversion.patch +++ singular-3-0-4-3.dfsg/debian/patches/fix-invalid-conversion.patch @@ -0,0 +1,26 @@ +Index: singular-3-0-4-3.dfsg/kernel/febase.cc +=================================================================== +--- singular-3-0-4-3.dfsg.orig/kernel/febase.cc 2010-01-02 03:07:17.000000000 -0500 ++++ singular-3-0-4-3.dfsg/kernel/febase.cc 2010-01-02 03:16:06.000000000 -0500 +@@ -749,7 +749,7 @@ + if (pw_entry != NULL) + { + strcpy(longpath, pw_entry->pw_dir); +- dir_sep = strchr(path, DIR_SEP); ++ dir_sep = strchr((char *)path, DIR_SEP); + strcat(longpath, dir_sep); + path = longpath; + } +Index: singular-3-0-4-3.dfsg/kernel/mpr_complex.cc +=================================================================== +--- singular-3-0-4-3.dfsg.orig/kernel/mpr_complex.cc 2010-01-02 03:16:21.000000000 -0500 ++++ singular-3-0-4-3.dfsg/kernel/mpr_complex.cc 2010-01-02 03:18:37.000000000 -0500 +@@ -82,7 +82,7 @@ + BOOLEAN neg=false; + if (*in == '-') { in++; neg=TRUE; } + char *s; +- if ((s=strchr(in,'E')) !=NULL) ++ if ((s=strchr((char *)in,'E')) !=NULL) + { + *s='e'; + } --- singular-3-0-4-3.dfsg.orig/debian/patches/sage-bugfixes.patch +++ singular-3-0-4-3.dfsg/debian/patches/sage-bugfixes.patch @@ -0,0 +1,15 @@ +Index: singular-3-0-4-3.dfsg/kernel/Makefile.in +=================================================================== +--- singular-3-0-4-3.dfsg.orig/kernel/Makefile.in 2010-01-02 02:21:07.000000000 -0500 ++++ singular-3-0-4-3.dfsg/kernel/Makefile.in 2010-01-02 02:21:10.000000000 -0500 +@@ -292,7 +292,9 @@ + + install-libsingular: + ${MKINSTALLDIRS} ${includedir}/singular +- cp *.h ${includedir}/singular ++ -for file in *.h; do \ ++ ${INSTALL} $$file ${includedir}/singular; \ ++ done + + install: all installbin + --- singular-3-0-4-3.dfsg.orig/debian/patches/series +++ singular-3-0-4-3.dfsg/debian/patches/series @@ -0,0 +1,5 @@ +sage-bugfixes.patch +change-library-search-path.patch +soname.patch +architecture.patch +fix-invalid-conversion.patch --- singular-3-0-4-3.dfsg.orig/debian/patches/soname.patch +++ singular-3-0-4-3.dfsg/debian/patches/soname.patch @@ -0,0 +1,118 @@ +Index: singular-3-0-4-3.dfsg/Singular/Makefile.in +=================================================================== +--- singular-3-0-4-3.dfsg.orig/Singular/Makefile.in 2010-01-02 02:21:06.000000000 -0500 ++++ singular-3-0-4-3.dfsg/Singular/Makefile.in 2010-01-02 02:22:01.000000000 -0500 +@@ -104,25 +104,29 @@ + LIBSINGULAR_LIBS =-lsingfac -lsingcf -lntl -lreadline -lgmp -lomalloc_ndebug + + SO_SUFFIX = so +-#LIBSINGULAR_FLAGS = -export-dynamic ++LIBSINGULAR_NAME = libsingular-`cat ../VERSION`.so ++LIBSINGULAR_FLAGS = -shared -Wl,-soname,$(LIBSINGULAR_NAME) -fPIC + LIBSINGULAR_LD = $(CXX) + + # correct suffix for dynamic linking + ifeq ($(SINGUNAME),ix86Mac-darwin) +-SO_SUFFIX = dylib ++SO_SUFFIX = dylib ++LIBSINGULAR_NAME = libsingular.dylib + LIBSINGULAR_FLAGS = -single_module + LIBSINGULAR_LD = $(LD) + endif + + ifeq ($(SINGUNAME),ppcMac-darwin) + MACOSX_DEPLOYMENT_TARGET=10.4 +-SO_SUFFIX = dylib ++SO_SUFFIX = dylib ++LIBSINGULAR_NAME = libsingular.dylib + LIBSINGULAR_FLAGS = -single_module + LIBSINGULAR_LD = $(LD) + endif + + ifeq ($(SINGUNAME),ix86-Win) + SO_SUFFIX = dll ++LIBSINGULAR_NAME = libsingular.dll + LIBSINGULAR_FLAGS = --shared + LIBSINGULAR_LIBS = -lsingfac -lsingcf -lntl -lreadline -lgmp -lomalloc_ndebug -lhtmlhelp + endif +@@ -318,9 +322,9 @@ + fi + + .cc.o: +- ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< ++ ${CXX} -fPIC ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< + .c.o: +- ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< ++ ${CC} -fPIC ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< + + %.dl_o : %.cc + ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} ${SFLAGS} -c $< -o $@ +@@ -343,9 +347,13 @@ + + libsingular: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc ${OBJS} \ + iparith.o libsingular-tesths.o libparse.cc claptmpl.o mpsr_Tok.o $(DL_LIBS) +- $(LIBSINGULAR_LD) ${SLDFLAGS} ${LIBSINGULAR_FLAGS} -o libsingular.${SO_SUFFIX} \ ++ $(LIBSINGULAR_LD) ${SLDFLAGS} ${LIBSINGULAR_FLAGS} -o ${LIBSINGULAR_NAME} \ + libsingular-tesths.o iparith.o mpsr_Tok.o claptmpl.o \ + ${OBJS} -lkernel -L../kernel -L../factory -L../libfac -L${libdir} ${LIBSINGULAR_LIBS} ++ if [ $(LIBSINGULAR_NAME) != libsingular.$(SO_SUFFIX) ]; then \ ++ ln -s $(LIBSINGULAR_NAME) libsingular.$(SO_SUFFIX); \ ++ fi ++ touch $@ + + libsingular.a: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc ${OBJS} \ + iparith.o libsingular-tesths.o libparse.cc claptmpl.o mpsr_Tok.o +@@ -543,7 +551,7 @@ + + install-libsingular: libsingular + for file in *.$(SO_SUFFIX); do \ +- ${INSTALL_PROGRAM} $$file ${libdir}; \ ++ cp -a $$file ${libdir}; \ + done + ${INSTALL_PROGRAM} libsingular.h ${includedir} + +@@ -562,7 +570,7 @@ + mostlyclean: + -rm -f Singular Singular-static Singulara Singularg Singularp Singularb libparse feOpt*.inc + -rm -f *.o *.og core *.op *.ot Singulart *.od *.so* *.dl_o* +- -rm -f ESingular* TSingular* ++ -rm -f ESingular* TSingular* libsingular + + clean: mostlyclean + -rm -f *.bak *.d *.dd depend +Index: singular-3-0-4-3.dfsg/VERSION +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ singular-3-0-4-3.dfsg/VERSION 2010-01-02 02:22:01.000000000 -0500 +@@ -0,0 +1 @@ ++3-0-4-3 +Index: singular-3-0-4-3.dfsg/IntegerProgramming/Makefile.in +=================================================================== +--- singular-3-0-4-3.dfsg.orig/IntegerProgramming/Makefile.in 2010-01-02 02:21:06.000000000 -0500 ++++ singular-3-0-4-3.dfsg/IntegerProgramming/Makefile.in 2010-01-02 02:22:01.000000000 -0500 +@@ -83,6 +83,7 @@ + -rm -f ${bindir}/$(MAIN3) + -rm -f ${bindir}/$(MAIN4) + -rm -f ${bindir}/$(LLL) ++ -rm -f Makefile + + $(MAIN1): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \ + ideal.o \ +Index: singular-3-0-4-3.dfsg/emacs/Makefile.in +=================================================================== +--- singular-3-0-4-3.dfsg.orig/emacs/Makefile.in 2010-01-02 02:21:06.000000000 -0500 ++++ singular-3-0-4-3.dfsg/emacs/Makefile.in 2010-01-02 02:22:01.000000000 -0500 +@@ -40,9 +40,12 @@ + ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp + ${PERL} lib.pl -s ${singulardir} `cat lib-temp` > lib-cmpl.el + +-clean mostlyclean distclean: ++clean mostlyclean: + rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el + ++distclean: mostlyclean ++ rm -f Makefile ++ + install-sharedist: all + ${MKINSTALLDIRS} ${emacsdir} + ${INSTALL_DATA} cmd-cmpl.el ${emacsdir}