File: debianization.patch

package info (click to toggle)
gap-float 0.7.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 628 kB
  • ctags: 611
  • sloc: ansic: 2,537; cpp: 2,010; xml: 184; makefile: 103; sh: 1
file content (52 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | 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
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: 2016-10-14

--- 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
@@ -10,14 +10,14 @@
 GMP_CFLAGS=@GMP_CFLAGS@
 GMP_LDFLAGS=@GMP_LDFLAGS@
 
-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 =
-float_la_LDFLAGS = -avoid-version -module
+float_la_LDFLAGS = -avoid-version -module -Wl,--version-script,$(top_srcdir)/debian/float.map
 float_la_LIBADD =
 if WITH_MPFR_IS_YES
 float_la_SOURCES += mpfr.c
--- a/tst/testall.g
+++ b/tst/testall.g
@@ -12,7 +12,7 @@
 Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
 field := MPC_PSEUDOFIELD;
 Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));
-SetFloats(CXSC);
-Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
-field := CXSC_PSEUDOFIELD;
-Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));
+##SetFloats(CXSC);
+##Test(Filename(dirs,"arithmetic.tst"),rec(compareFunction:="uptowhitespace"));
+##field := CXSC_PSEUDOFIELD;
+##Test(Filename(dirs,"polynomials.tst"),rec(compareFunction:="uptowhitespace"));