void-packages/srcpkgs/injeqt/patches/gcc7-fix.patch
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

22 lines
586 B
Diff

From de025e0c472bdb2fcabbc9dc2fd443b91ab28e28 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bart=C5=82omiej=20Burdukiewicz?=
<bartlomiej.burdukiewicz@gmail.com>
Date: Wed, 24 May 2017 18:52:20 +0200
Subject: [PATCH] fix compilation for GCC 7.1.0
---
src/internal/containers.h | 1 +
1 file changed, 1 insertion(+)
diff --git src/internal/containers.h b/src/internal/containers.h
index 8da4298..78dd212 100644
--- a/src/internal/containers.h
+++ b/src/internal/containers.h
@@ -23,6 +23,7 @@
#include "internal.h"
#include <algorithm>
+#include <functional>
#include <vector>
/**