From 7ad81b93397aebd9110784371b1f786a95b6f625 Mon Sep 17 00:00:00 2001 From: chenyanpanX Date: Fri, 15 Dec 2023 02:02:08 +0000 Subject: [PATCH] Add BuildRequires perl-devel, for fixing build failed https://build.openeuler.openatom.cn/package/live_build_log/openEuler:Factory/perl-Sys-Mmap/standard_x86_64/x86_64 ``` [ 38s] gcc -c -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 -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 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC "-I/usr/lib64/perl5/CORE" Mmap.c [ 38s] Mmap.xs:4:10: fatal error: EXTERN.h: No such file or directory [ 38s] 4 | #include "EXTERN.h" [ 38s] | ^~~~~~~~~~ [ 38s] compilation terminated. [ 38s] make: *** [Makefile:333: Mmap.o] Error 1 ``` Signed-off-by: chenyanpanX --- perl-Sys-Mmap.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-Sys-Mmap.spec b/perl-Sys-Mmap.spec index ef0b9ef..90fa068 100644 --- a/perl-Sys-Mmap.spec +++ b/perl-Sys-Mmap.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: perl-Sys-Mmap Version: 0.20 -Release: 1 +Release: 2 Summary: Uses mmap to map in a file as a Perl variable License: GPL-1.0-only or Artistic-1.0-Perl Group: Development/Libraries @@ -13,6 +13,8 @@ BuildRequires: perl(Errno) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(XSLoader) +BuildRequires: perl-devel + Requires: perl(DynaLoader) Requires: perl(XSLoader) %description @@ -81,5 +83,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/* %changelog +* Fri Dec 15 2023 ChenYanpan - 0.20-2 +- Add BuildRequires perl-devel, for fixing build failed + * Sun May 23 2021 Perl_Bot 0.20-1 - Specfile autogenerated by Perl_Bot -- Gitee