1 |
commit: 509d54b8b3f926ed718bd97920b4bcc7e2238f41 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 03:14:21 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 03:14:21 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=509d54b8 |
7 |
|
8 |
sys-apps/portage: backport QA notice improvement |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
...ge-3.0.45.1-qa-notice-configure-func-decl.patch | 29 ++++++++++++++++++++++ |
13 |
...0.45.1-r1.ebuild => portage-3.0.45.1-r2.ebuild} | 1 + |
14 |
2 files changed, 30 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/portage/files/portage-3.0.45.1-qa-notice-configure-func-decl.patch b/sys-apps/portage/files/portage-3.0.45.1-qa-notice-configure-func-decl.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..a621ab65d719 |
19 |
--- /dev/null |
20 |
+++ b/sys-apps/portage/files/portage-3.0.45.1-qa-notice-configure-func-decl.patch |
21 |
@@ -0,0 +1,29 @@ |
22 |
+From eca90b6049a9ce42ec6868f64abcab403c9f4190 Mon Sep 17 00:00:00 2001 |
23 |
+From: Sam James <sam@g.o> |
24 |
+Date: Tue, 28 Feb 2023 03:10:26 +0000 |
25 |
+Subject: [PATCH] install-qa-check.d/90config-impl-decl: prefix warning with |
26 |
+ 'QA Notice' |
27 |
+ |
28 |
+... so tinderboxes can pick it up more easily. |
29 |
+ |
30 |
+Signed-off-by: Sam James <sam@g.o> |
31 |
+--- a/bin/install-qa-check.d/90config-impl-decl |
32 |
++++ b/bin/install-qa-check.d/90config-impl-decl |
33 |
+@@ -92,12 +92,13 @@ config_impl_decl_check() { |
34 |
+ # Drop out early if no impl decls found (all the arrays are the same size) |
35 |
+ [[ ${#files[@]} -eq 0 ]] && return |
36 |
+ |
37 |
+- eqawarn 'Found the following implicit function declarations in configure logs:' |
38 |
++ eqawarn 'QA Notice: Found the following implicit function declarations in configure logs:' |
39 |
+ for l in "${!files[@]}"; do |
40 |
+ eqawarn " ${files[l]}:${lines[l]} - ${funcs[l]}" |
41 |
+ eqatag 'config.log-impl-decl' "line=${lines[l]}" "func=${funcs[l]}" "${files[l]}" |
42 |
+ done |
43 |
+ eqawarn 'Check that no features were accidentally disabled.' |
44 |
++ eqawarn 'See https://wiki.gentoo.org/wiki/Modern_C_porting.' |
45 |
+ } |
46 |
+ |
47 |
+ config_impl_decl_check |
48 |
+-- |
49 |
+2.39.2 |
50 |
+ |
51 |
|
52 |
diff --git a/sys-apps/portage/portage-3.0.45.1-r1.ebuild b/sys-apps/portage/portage-3.0.45.1-r2.ebuild |
53 |
similarity index 99% |
54 |
rename from sys-apps/portage/portage-3.0.45.1-r1.ebuild |
55 |
rename to sys-apps/portage/portage-3.0.45.1-r2.ebuild |
56 |
index c226bd813658..b345f442048e 100644 |
57 |
--- a/sys-apps/portage/portage-3.0.45.1-r1.ebuild |
58 |
+++ b/sys-apps/portage/portage-3.0.45.1-r2.ebuild |
59 |
@@ -90,6 +90,7 @@ pkg_pretend() { |
60 |
|
61 |
python_prepare_all() { |
62 |
local PATCHES=( |
63 |
+ "${FILESDIR}"/${P}-qa-notice-configure-func-decl.patch |
64 |
) |
65 |
|
66 |
distutils-r1_python_prepare_all |