Package: gap-float / 0.9.1+ds-6

debianization.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: debianization
 Meant to maintain a minimal debian/rules, to fix warnings,
 to address Debian specific stuff in general.
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2017-11-11

--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,8 @@
 	foreign \
 	std-options
 
-#AM_DISTCHECK_CONFIGURE_FLAGS =
+AM_DISTCHECK_CONFIGURE_FLAGS ?= \
+	--with-cxsc=no
 
 SUBDIRS = src lib tst
 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,14 +6,14 @@
 ##
 #############################################################################
 
-libdir = $(GAPROOT)/pkg/$(PACKAGE)/bin/$(GAPARCH)
+gaplibdir = $(libdir)/gap/pkg/$(PACKAGE)/bin
 
-lib_LTLIBRARIES = float.la
+gaplib_LTLIBRARIES = float.la
 
 float_la_SOURCES = floatconfig.h floattypes.h float.c
 float_la_CPPFLAGS = $(GAP_CPPFLAGS)
 float_la_CFLAGS = $(GAP_CFLAGS)
-float_la_LDFLAGS = $(GAP_LDFLAGS) -avoid-version -module
+float_la_LDFLAGS = $(GAP_LDFLAGS) -avoid-version -module -Wl,--version-script,$(top_srcdir)/debian/float.map
 float_la_LIBADD =
 
 if WITH_MPFR_IS_YES
--- a/tst/testall.g
+++ b/tst/testall.g
@@ -35,16 +35,16 @@
     Print("#I  WARNING: skipping tests for MPC\n");
 fi;
 
-if IsBound(CXSC_INT) then
-    Print("#I  testing CXSC...\n");
-    SetFloats(CXSC);
-    success := success and Test(Filename(dirs,"arithmetic.tst"));
-
-    field := CXSC_PSEUDOFIELD;
-    success := success and Test(Filename(dirs,"polynomials.tst"));
-else
-    Print("#I  WARNING: skipping tests for CXSC\n");
-fi;
+##if IsBound(CXSC_INT) then
+##    Print("#I  testing CXSC...\n");
+##    SetFloats(CXSC);
+##    success := success and Test(Filename(dirs,"arithmetic.tst"));
+##
+##    field := CXSC_PSEUDOFIELD;
+##    success := success and Test(Filename(dirs,"polynomials.tst"));
+##else
+##    Print("#I  WARNING: skipping tests for CXSC\n");
+##fi;
 
 if IsBound(@FPLLL) then
     Print("#I  testing FPLLL...\n");