From a3d3a016f3fa1f1e8cfdfad017874e971a3e14ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Tue, 15 Nov 2016 17:45:28 +0100 Subject: Respect default compiler flags
--- Text-VCardFast-0.09-Respect-default-CCFLAGS.patch | 41 +++++++++++++++++++++++ perl-Text-VCardFast.spec | 8 ++++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Text-VCardFast-0.09-Respect-default-CCFLAGS.patch diff --git a/Text-VCardFast-0.09-Respect-default-CCFLAGS.patch b/Text-VCardFast-0.09-Respect-default-CCFLAGS.patch new file mode 100644 index 0000000..779394d --- /dev/null +++ b/Text-VCardFast-0.09-Respect-default-CCFLAGS.patch @@ -0,0 +1,41 @@ +From 4d51e834cae14457020184e165ce0541e043abc0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> +Date: Tue, 15 Nov 2016 17:39:27 +0100 +Subject: [PATCH] Respect default CCFLAGS +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +EU::MM's CCFLAGS variable is initialized from Perl's default +$Config{ccflags}. Ignoring the default value can make the resulting +binary module incomaptible with the perl. + +This patch adds the local flags to the default flags instead of +replacing them. + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + Makefile.PL | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index d38bc85..e5a67b7 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,5 +1,6 @@ + use 5.014002; + use ExtUtils::MakeMaker; ++use Config; + # See lib/ExtUtils/MakeMaker.pm for details of how to influence + # the contents of the Makefile that is written. + WriteMakefile( +@@ -19,5 +20,5 @@ WriteMakefile( + INC => '-I.', # e.g., '-I. -I/usr/include/other' + # Un-comment this if you add C files to link with later: + OBJECT => '$(O_FILES)', # link all the C files too +- CCFLAGS => '-Wall', ++ CCFLAGS => '-Wall ' . $Config{ccflags}, + ); +-- +2.7.4 + diff --git a/perl-Text-VCardFast.spec b/perl-Text-VCardFast.spec index ef6d626..618ffb3 100644 --- a/perl-Text-VCardFast.spec +++ b/perl-Text-VCardFast.spec @@ -1,6 +1,6 @@ Name: perl-Text-VCardFast Version: 0.09 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Perl extension for very fast parsing of VCards License: GPL+ or Artistic Group: Development/Libraries @@ -8,6 +8,8 @@ URL: http://search.cpan.org/dist/Text-VCardFast/ Source0: http://www.cpan.org/authors/id/B/BR/BRONG/Text-VCardFast-%{version}.tar.gz # Do not install bechnmark script, CPAN RT#118712 Patch0: Text-VCardFast-0.08-Do-not-install-bench.pl.patch +# Respect default compiler flags, CPAN RT#118784 +Patch1: Text-VCardFast-0.09-Respect-default-CCFLAGS.patch BuildRequires: findutils BuildRequires: gcc BuildRequires: make @@ -38,6 +40,7 @@ as vcard2hash_pp and vcard2hash_c, with the XS version being preferred. %prep %setup -q -n Text-VCardFast-%{version} %patch0 -p1 +%patch1 -p1 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -59,6 +62,9 @@ make test %{_mandir}/man3/* %changelog +* Tue Nov 15 2016 Petr Pisar <ppi...@redhat.com> - 0.09-2 +- Respect default compiler flags (CPAN RT#118784) + * Tue Nov 15 2016 Petr Pisar <ppi...@redhat.com> - 0.09-1 - 0.09 bump -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Text-VCardFast.git/commit/?h=f24&id=a3d3a016f3fa1f1e8cfdfad017874e971a3e14ff _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org