Bug#871811: FTBFS with CGAL 4.11

2017-11-12 Thread Pierre Saramito
Dear Joachim,

Many thanks for your patch: I am integrating it
in the debian files of the Rheolef package in order
to support the new CGAL 4.11 version.
Sorry for my late response, I was travelling 
in new zealand for conferences... 

The path for CGAL will be integrated in the fortcoming 
Rheolef upstream versions.


Kind regards,

Pierre
--
pierre.saram...@imag.fr
Directeur de Recherche CNRS
Laboratoire Jean Kuntzmann, Grenoble, France
http://ljk.imag.fr/membres/Pierre.Saramito



Bug#871811: FTBFS with CGAL 4.11

2017-10-03 Thread Joachim Reichel
retitle 871811 FTBFS with CGAL 4.11
severity 871811 serious
thanks

Raising severity since it blocks the upload of CGAL 4.11 to sid (currently in
experimental).

(The original bug report was at severity normal because there was no intention
to upload CGAL 4.10 due to the freeze.)

  Joachim



Bug#871811: FTBFS with CGAL 4.11

2017-09-23 Thread Joachim Reichel
Package: src:rheolef
Followup-For: Bug #871811

The previous patch contained a syntax error. A fixed version is attached.

I just noticed there is one more CGAL-related build error, but I don't know how
to fix it. The excerpt from the log file is also attached.

[...]
geo_nearest.cc:476:1:   required from here
/usr/include/CGAL/Triangulation_2.h:964:50: error: no match for call to 
‘(rheolef::custom_cgal::my_cartesian2d_base::Construct_point_2 {aka 
rheolef::custom_cgal::MyConstruct_point_2 >}) (const Point&)’
   return geom_traits().construct_point_2_object()(p);

  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)
--- cgal_kernel.h.old   2017-09-23 10:42:03.890354799 +0200
+++ cgal_kernel.h   2017-09-23 11:16:50.588673451 +0200
@@ -247,7 +247,13 @@
 std::ostream &
 operator<<(std::ostream , const MySegmentC2 )
 {
+#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 :
In file included from /usr/include/CGAL/Delaunay_triangulation_2.h:24:0,
 from /usr/include/CGAL/Point_set_2.h:29,
 from geo_nearest.cc:44:
/usr/include/CGAL/Triangulation_2.h: In instantiation of 
‘CGAL::Triangulation_2::Point_2 CGAL::Triangulation_2::construct_point(const Point&) const [with Gt = 
CGAL::Filtered_kernel_adaptor; 
Tds = 
CGAL::Triangulation_data_structure_2, CGAL::Triangulation_ds_vertex_base_2 >, 
CGAL::Triangulation_ds_face_base_2 >; CGAL::Triangulation_2::Point_2 = CGAL::Point_2; 
CGAL::Triangulation_2::Point = 
CGAL::Point_2]’:
/usr/include/CGAL/Triangulation_2.h:3451:62:   required from ‘CGAL::Orientation 
CGAL::Triangulation_2::orientation(const Point&, const Point&, const 
Point&) const [with Gt = 
CGAL::Filtered_kernel_adaptor; 
Tds = 
CGAL::Triangulation_data_structure_2, CGAL::Triangulation_ds_vertex_base_2 >, 
CGAL::Triangulation_ds_face_base_2 >; CGAL::Orientation = CGAL::Sign; 
CGAL::Triangulation_2::Point = 
CGAL::Point_2]’
/usr/include/CGAL/Triangulation_2.h:1206:37:   required from 
‘CGAL::Triangulation_2::Vertex_handle CGAL::Triangulation_2::insert_outside_affine_hull(const Point&) [with Gt = 
CGAL::Filtered_kernel_adaptor; 
Tds = 
CGAL::Triangulation_data_structure_2, CGAL::Triangulation_ds_vertex_base_2 >, 
CGAL::Triangulation_ds_face_base_2 >; CGAL::Triangulation_2::Vertex_handle = 
CGAL::internal::CC_iterator, 
CGAL::Triangulation_ds_vertex_base_2, CGAL::Triangulation_ds_vertex_base_2 >, 
CGAL::Triangulation_ds_face_base_2 > > >, CGAL::Default, CGAL::Default, 
CGAL::Default>, false>; CGAL::Triangulation_2::Point = 
CGAL::Point_2]’
/usr/include/CGAL/Triangulation_2.h:1251:37:   required from 
‘CGAL::Triangulation_2::Vertex_handle CGAL::Triangulation_2::insert(const Point&, CGAL::Triangulation_2::Locate_type, 
CGAL::Triangulation_2::Face_handle, int) [with Gt = 
CGAL::Filtered_kernel_adaptor; 
Tds = 
CGAL::Triangulation_data_structure_2, CGAL::Triangulation_ds_vertex_base_2 >, 
CGAL::Triangulation_ds_face_base_2 >; CGAL::Triangulation_2::Vertex_handle = 

Bug#871811: FTBFS with CGAL 4.11

2017-09-23 Thread Joachim Reichel
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)
--- 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 , const MySegmentC2 )
 {
+#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 :