From c2271086d271c049fd789d90f7825d427add27a4 Mon Sep 17 00:00:00 2001 From: chenyanpanX Date: Fri, 15 Dec 2023 01:52:49 +0000 Subject: [PATCH] Add BuildRequires perl-devel, for fixing build failed https://build.openeuler.openatom.cn/package/live_build_log/openEuler:Factory/perl-JSON-MaybeXS/standard_x86_64/x86_64 ``` [ 39s] HASCOMPILERAScS/TESTIjen.c:2:10: fatal error: EXTERN.h: No such file or directory [ 39s] 2 | #include "EXTERN.h" [ 39s] | ^~~~~~~~~~ [ 39s] compilation terminated. [ 39s] Couldn't execute gcc -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g "-I/usr/lib64/perl5/CORE" -fPIC -c HASCOMPILERAScS/TESTIjen.c -o HASCOMPILERAScS/TESTIjen.o: Inappropriate ioctl for device at Makefile.PL line 71. [ 39s] Checking if your kit is complete... ``` Signed-off-by: chenyanpanX --- perl-JSON-MaybeXS.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-JSON-MaybeXS.spec b/perl-JSON-MaybeXS.spec index 9c90d69..53c9b80 100644 --- a/perl-JSON-MaybeXS.spec +++ b/perl-JSON-MaybeXS.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: perl-JSON-MaybeXS Version: 1.004003 -Release: 1 +Release: 2 Summary: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP License: Perl License or Artistic-1.0 Group: Development/Libraries @@ -17,6 +17,8 @@ BuildRequires: perl(JSON::PP) >= 2.27300 BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Needs) >= 0.002005 +BuildRequires: perl-devel + Requires: perl(Carp) Requires: perl(Cpanel::JSON::XS) >= 2.3310 Requires: perl(JSON::PP) >= 2.27300 @@ -83,5 +85,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/* %changelog +* Fri Dec 15 2023 ChenYanpan - 1.004003-2 +- Add BuildRequires perl-devel, for fixing build failed + * Mon Mar 08 2021 Perl_Bot 1.004003-1 - Specfile autogenerated by Perl_Bot -- Gitee