File: gcc-15.patch

package info (click to toggle)
libpdl-netcdf-perl 4.25-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 360 kB
  • sloc: perl: 1,009; makefile: 19
file content (31 lines) | stat: -rw-r--r-- 1,085 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
Description: Don't set -Dbool=int to fix FTFBS with GCC 15.
Author: Bas Couwenberg <sebastic@debian.org>
Bug: https://github.com/PDLPorters/PDL-NetCDF/issues/10
Bug-Debian: https://bugs.debian.org/1097249
Forwarded: https://github.com/PDLPorters/PDL-NetCDF/pull/11
Applied-Upstream: https://github.com/PDLPorters/PDL-NetCDF/commit/d0b4594930ff4ccc47704c6742ec78779d871806

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -4,13 +4,6 @@ use PDL::Core::Dev;            # Pick up
 use ExtUtils::MakeMaker;
 use Devel::CheckLib qw(check_lib);
 
-# Check if compiled under gcc/Linux.  In which case, define bool for the compiler
-my $define_bool = '';
-if ($^O =~ /linux/) {
-  $define_bool = '-Dbool=int';
-  print "Defining bool=int (linux seems to need this)\n";
-}
-
 my $package = [qw(netcdf.pd NetCDF PDL::NetCDF)];
 my %hash = pdlpp_stdargs($package);
 my %more_items = (
@@ -43,7 +36,6 @@ my %more_items = (
   },
 );
 %hash = (%hash, %more_items);
-$hash{INC} .= " $define_bool" if $define_bool;
 
 if (check_lib( header => 'netcdf.h', lib => 'netcdf',)) {
   $hash{LIBS}[0] .= " -lnetcdf";