* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
34 lines
975 B
Diff
34 lines
975 B
Diff
From 6d8f0056bcf9dfdd34a6cb5e4ccac44bebbc3edd Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Smirnov <civil@gentoo.org>
|
|
Date: Mon, 15 Jun 2015 22:15:59 +0200
|
|
Subject: [PATCH] [PATCH] Do not set custom CFLAGS in cpan/Digest-SHA
|
|
|
|
Bug-Gentoo: https://bugs.gentoo.org/506818
|
|
|
|
Patch-Name: gentoo/D-SHA-CFLAGS.diff
|
|
|
|
Original-By: Matthias Maier <tamiko@gentoo.org>
|
|
---
|
|
cpan/Digest-SHA/Makefile.PL | 6 ------
|
|
1 file changed, 6 deletions(-)
|
|
|
|
diff --git a/cpan/Digest-SHA/Makefile.PL b/cpan/Digest-SHA/Makefile.PL
|
|
index af2c0c3..65f4771 100644
|
|
--- a/cpan/Digest-SHA/Makefile.PL
|
|
+++ b/cpan/Digest-SHA/Makefile.PL
|
|
@@ -64,12 +64,6 @@ if ($^O eq 'VMS') {
|
|
}
|
|
}
|
|
|
|
- # Enhance performance on Intel when using gcc
|
|
-
|
|
-if ($Config{archname} =~ /^i[3456]86/ && $Config{ccname} eq 'gcc') {
|
|
- push(@extra, OPTIMIZE => '-O1 -fomit-frame-pointer');
|
|
-}
|
|
-
|
|
my $fussy = '-Wall -Wextra -Wconversion -Wcast-align -Wpointer-arith ';
|
|
push(@extra, CCFLAGS => $fussy . $Config{ccflags}) if $opt_w;
|
|
|
|
--
|
|
2.4.3
|
|
|