Bug#871811: FTBFS with CGAL 4.11

Joachim Reichel reichel at debian.org
Sat Sep 23 09:09:19 UTC 2017


Source: rheolef
Followup-For: Bug #871811

Hi,

I would like to update CGAL to 4.11 (currently in experimental), but your
package FTBFS. The access to CGAL::IO::Mode has been changed again. Attached is
a patch that fixes the problem for <= 4.9, 4.10 and >= 4.11. With that patch,
it builds again, but I don't know how to test it.

  Joachim

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (800, 'stable'), (700, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (200, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
--- cgal_kernel.h.old	2017-09-23 10:42:03.890354799 +0200
+++ cgal_kernel.h	2017-09-23 11:05:42.471661556 +0200
@@ -247,7 +247,13 @@
 std::ostream &
 operator<<(std::ostream &os, const MySegmentC2<R> &s)
 {
+#if CGAL_VERSION_NR >= 1041101000
+    switch(CGAL::get_mode(os))) {
+#elif CGAL_VERSION_NR >= 1041001000
+    switch(os.iword(CGAL::IO::get_static_mode())) {
+#else
     switch(os.iword(CGAL::IO::mode)) {
+#endif
     case CGAL::IO::ASCII :
         return os << s.source() << ' ' << s.target();
     case CGAL::IO::BINARY :


More information about the debian-science-maintainers mailing list