[packages/perl-CDB-TinyCDB] define language explicitly for cdb-check.h

atler atler at pld-linux.org
Fri Jul 7 14:26:35 CEST 2023


commit 2b66ab758f50741d1f6de67750e12180246b8895
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jul 7 13:33:48 2023 +0200

    define language explicitly for cdb-check.h
    
    otherwise it is treated as header precompilation and fails with:
    
    cdb-check.h:6: fatal error: cannot write PCH file: required memory segment unavailable
    compilation terminated.

 not-pch.patch         | 11 +++++++++++
 perl-CDB-TinyCDB.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/perl-CDB-TinyCDB.spec b/perl-CDB-TinyCDB.spec
index 7622919..81dfcc9 100644
--- a/perl-CDB-TinyCDB.spec
+++ b/perl-CDB-TinyCDB.spec
@@ -13,6 +13,7 @@ License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-authors/id/A/AJ/AJGB/CDB-TinyCDB-%{version}.tar.gz
 # Source0-md5:	e77702b031264c6686a6f617e92b9e24
+Patch0:		not-pch.patch
 URL:		https://metacpan.org/release/CDB-TinyCDB/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -29,6 +30,7 @@ create CDB files.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/not-pch.patch b/not-pch.patch
new file mode 100644
index 0000000..9a63505
--- /dev/null
+++ b/not-pch.patch
@@ -0,0 +1,11 @@
+--- CDB-TinyCDB-0.05/Makefile.PL.orig	2010-03-15 15:59:56.000000000 +0100
++++ CDB-TinyCDB-0.05/Makefile.PL	2023-07-07 13:32:01.650730328 +0200
+@@ -51,7 +51,7 @@
+         push @cc, '-o' => $devnull;
+     }
+ 
+-    my $cmd = join " ", @cc, "cdb-check.h";
++    my $cmd = join " ", @cc, "-x", "c", "cdb-check.h";
+ 
+     warn "trying $cmd\n";
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-CDB-TinyCDB.git/commitdiff/2b66ab758f50741d1f6de67750e12180246b8895



More information about the pld-cvs-commit mailing list