1 |
commit: 853c1a39806ea5c0d66032f2b56976c39a2e9be2 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 6 13:48:46 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 6 13:49:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=853c1a39 |
7 |
|
8 |
app-portage/portage-utils: drop orphan patches |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
.../files/portage-utils-0.61-solaris.patch | 27 ------------ |
13 |
.../files/portage-utils-0.64-fix-quiet.patch | 51 ---------------------- |
14 |
2 files changed, 78 deletions(-) |
15 |
|
16 |
diff --git a/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch b/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch |
17 |
deleted file mode 100644 |
18 |
index 8bcc9c1b0ba..00000000000 |
19 |
--- a/app-portage/portage-utils/files/portage-utils-0.61-solaris.patch |
20 |
+++ /dev/null |
21 |
@@ -1,27 +0,0 @@ |
22 |
-qcache: work around missing d_type/DT_DIR |
23 |
- |
24 |
---- qcache.c |
25 |
-+++ qcache.c |
26 |
-@@ -750,13 +750,21 @@ |
27 |
- |
28 |
- xasprintf(&catpath, "%s/dep/%s", portedb, data->overlay); |
29 |
- dir = opendir(catpath); |
30 |
-- while ((de = readdir(dir))) |
31 |
-+ while ((de = readdir(dir))) { |
32 |
-+#ifndef DT_DIR |
33 |
-+ struct stat s; |
34 |
-+ if (stat(de->d_name, &s)) |
35 |
-+ continue; |
36 |
-+ if (S_ISDIR(s.st_mode) && de->d_name[0] != '.') { |
37 |
-+#else |
38 |
- if (de->d_type == DT_DIR && de->d_name[0] != '.') { |
39 |
-+#endif |
40 |
- bool ok; |
41 |
- allcats = add_set_unique(de->d_name, allcats, &ok); |
42 |
- if (ok) |
43 |
- ++numcat; |
44 |
- } |
45 |
-+ } |
46 |
- closedir(dir); |
47 |
- free(catpath); |
48 |
- |
49 |
|
50 |
diff --git a/app-portage/portage-utils/files/portage-utils-0.64-fix-quiet.patch b/app-portage/portage-utils/files/portage-utils-0.64-fix-quiet.patch |
51 |
deleted file mode 100644 |
52 |
index 447fe3aa413..00000000000 |
53 |
--- a/app-portage/portage-utils/files/portage-utils-0.64-fix-quiet.patch |
54 |
+++ /dev/null |
55 |
@@ -1,51 +0,0 @@ |
56 |
-commit 237d1b34166fea2e4cb0eb28098a5b2759548b86 |
57 |
-Author: Robin H. Johnson <robbat2@g.o> |
58 |
-Date: Sun Nov 26 23:50:58 2017 -0800 |
59 |
- |
60 |
- Fix PORTAGE_QUIET quiet result. |
61 |
- |
62 |
- Having PORTAGE_QUIET set caused the quiet variable to be incremented, |
63 |
- but it did not also setup the warnout variable. |
64 |
- |
65 |
- Add a common setup function for warnout quiet, and use consistently. |
66 |
- |
67 |
- Signed-off-by: Robin H. Johnson <robbat2@g.o> |
68 |
- |
69 |
-diff --git a/main.c b/main.c |
70 |
-index d124695..dea03a8 100644 |
71 |
---- a/main.c |
72 |
-+++ b/main.c |
73 |
-@@ -78,6 +78,15 @@ no_colors(void) |
74 |
- setenv("NOCOLOR", "true", 1); |
75 |
- } |
76 |
- |
77 |
-+static void |
78 |
-+setup_quiet(void) |
79 |
-+{ |
80 |
-+ /* "e" for FD_CLOEXEC */ |
81 |
-+ if (quiet == 0) |
82 |
-+ warnout = fopen("/dev/null", "we"); |
83 |
-+ ++quiet; |
84 |
-+} |
85 |
-+ |
86 |
- /* include common applet defs */ |
87 |
- #include "applets.h" |
88 |
- |
89 |
-@@ -102,7 +111,7 @@ no_colors(void) |
90 |
- #define COMMON_GETOPTS_CASES(applet) \ |
91 |
- case 0x1: portroot = optarg; break; \ |
92 |
- case 'v': ++verbose; break; \ |
93 |
-- case 'q': if (quiet == 0) { warnout = fopen("/dev/null", "we"); } ++quiet; break; \ |
94 |
-+ case 'q': setup_quiet(); break; \ |
95 |
- case 'V': version_barf(); break; \ |
96 |
- case 'h': applet ## _usage(EXIT_SUCCESS); break; \ |
97 |
- case 'C': no_colors(); break; \ |
98 |
-@@ -952,7 +961,7 @@ initialize_portage_env(void) |
99 |
- xarraypush_str(overlays, main_overlay); |
100 |
- |
101 |
- if (getenv("PORTAGE_QUIET") != NULL) |
102 |
-- quiet = 1; |
103 |
-+ setup_quiet(); |
104 |
- |
105 |
- if (nocolor) |
106 |
- no_colors(); |