Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/ufed/files/
Date: Thu, 14 Jul 2016 16:08:37
Message-Id: 1468512478.cbd0b343881578bad36b887c2e1ca3960be6beca.monsieurp@gentoo
1 commit: cbd0b343881578bad36b887c2e1ca3960be6beca
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 13 18:45:53 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 16:07:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbd0b343
7
8 app-portage/ufed: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/1883
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 .../ufed/files/ufed-0.40.2-manpage-URL.patch | 25 ---
15 app-portage/ufed/files/ufed-0.40.2-prefix.patch | 203 ---------------------
16 .../ufed-0.90_rc2-get_portdir_from_portageq.patch | 99 ----------
17 3 files changed, 327 deletions(-)
18
19 diff --git a/app-portage/ufed/files/ufed-0.40.2-manpage-URL.patch b/app-portage/ufed/files/ufed-0.40.2-manpage-URL.patch
20 deleted file mode 100644
21 index dd8b734..0000000
22 --- a/app-portage/ufed/files/ufed-0.40.2-manpage-URL.patch
23 +++ /dev/null
24 @@ -1,25 +0,0 @@
25 -From 0f67e677776c6a5b6a095c3c2486a2184a5427a0 Mon Sep 17 00:00:00 2001
26 -From: Paul Varner <fuzzyray@g.o>
27 -Date: Tue, 20 Nov 2012 11:28:57 -0600
28 -Subject: [PATCH 2/2] Update handbook URL for more information on USE flags
29 -
30 ----
31 - ufed.8 | 2 +-
32 - 1 file changed, 1 insertion(+), 1 deletion(-)
33 -
34 -diff --git a/ufed.8 b/ufed.8
35 -index 4c55c29..f42fdc1 100644
36 ---- a/ufed.8
37 -+++ b/ufed.8
38 -@@ -47,7 +47,7 @@ thus USE settings will have no effect on those mandatory dependencies.
39 - A list of USE keywords used by a particular package can be found by checking
40 - the IUSE line in any ebuild file.
41 -
42 --See http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1
43 -+See http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
44 - for more information on USE flags.
45 -
46 - Please also note that if UFED describes a flag (Unknown) it generally means
47 ---
48 -1.8.0
49 -
50
51 diff --git a/app-portage/ufed/files/ufed-0.40.2-prefix.patch b/app-portage/ufed/files/ufed-0.40.2-prefix.patch
52 deleted file mode 100644
53 index 6eea85b..0000000
54 --- a/app-portage/ufed/files/ufed-0.40.2-prefix.patch
55 +++ /dev/null
56 @@ -1,203 +0,0 @@
57 -From 7d133e58b27253ebc1bcfc16fa45ef91125ccde9 Mon Sep 17 00:00:00 2001
58 -From: Paul Varner <fuzzyray@g.o>
59 -Date: Tue, 20 Nov 2012 11:22:09 -0600
60 -Subject: [PATCH 1/2] Change ufed to use EPREFIX for prefix installs.
61 -
62 ----
63 - Portage.pm | 26 ++++++++++++++++++--------
64 - ufed-curses-help.c | 7 +++----
65 - ufed.8 | 29 +++++++++++++++--------------
66 - ufed.pl.in | 6 +++---
67 - 4 files changed, 39 insertions(+), 29 deletions(-)
68 -
69 -diff --git a/Portage.pm b/Portage.pm
70 -index 0b02cab..c7e236d 100644
71 ---- a/Portage.pm
72 -+++ b/Portage.pm
73 -@@ -15,7 +15,9 @@ our %default_flags;
74 - our %make_conf_flags;
75 - our %archs;
76 - our %all_flags;
77 -+our $eprefix;
78 -
79 -+sub get_eprefix();
80 - sub have_package($);
81 - sub merge(\%%);
82 - sub merge_env(\%);
83 -@@ -30,6 +32,7 @@ sub read_profiles();
84 - sub read_sh($);
85 - sub read_use_mask();
86 -
87 -+get_eprefix;
88 - read_packages;
89 - read_profiles;
90 - read_use_mask;
91 -@@ -54,6 +57,13 @@ if($lastorder ne 'conf') {
92 - die "Sorry, USE_ORDER without make.conf overriding global USE flags are not currently supported by ufed.\n";
93 - }
94 -
95 -+
96 -+sub get_eprefix() {
97 -+ $eprefix = `portageq envvar EPREFIX 2>&1`;
98 -+ die "Couldn't determine EPREFIX from Portage" if $? != 0;
99 -+ chomp($eprefix);
100 -+}
101 -+
102 - sub have_package($) {
103 - my ($cp) = @_;
104 - return $packages{$cp};
105 -@@ -130,8 +140,8 @@ sub read_archs() {
106 - }
107 -
108 - sub read_make_conf() {
109 -- my %env = read_sh "/etc/make.conf";
110 -- merge (%env, read_sh('/etc/portage/make.conf'));
111 -+ my %env = read_sh "$eprefix/etc/make.conf";
112 -+ merge (%env, read_sh("$eprefix/etc/portage/make.conf"));
113 - merge %make_conf_flags, %{$env{USE}} if exists $env{USE};
114 - @portagedirs = $environment{PORTDIR};
115 - push @portagedirs, split ' ', $environment{PORTDIR_OVERLAY} if defined $environment{PORTDIR_OVERLAY};
116 -@@ -145,13 +155,13 @@ sub read_make_defaults() {
117 - }
118 -
119 - sub read_make_globals() {
120 -- for my $dir(@profiles, '/usr/share/portage/config') {
121 -+ for my $dir(@profiles, "$eprefix/usr/share/portage/config") {
122 - read_sh "$dir/make.globals";
123 - }
124 - }
125 -
126 - sub read_packages() {
127 -- die "Couldn't read /var/db/pkg\n" unless opendir my $pkgdir, '/var/db/pkg';
128 -+ die "Couldn't read $eprefix/var/db/pkg\n" unless opendir my $pkgdir, "$eprefix/var/db/pkg";
129 - while(my $cat = readdir $pkgdir) {
130 - next if $cat eq '.' or $cat eq '..';
131 - next unless opendir my $catdir, "/var/db/pkg/$cat";
132 -@@ -199,16 +209,16 @@ sub read_packages() {
133 - }
134 -
135 - sub read_profiles() {
136 -- $_ = readlink '/etc/make.profile';
137 -- $_ = readlink '/etc/portage/make.profile' if not defined $_;
138 -- die "/etc\{,/portage\}/make.profile is not a symlink\n" if not defined $_;
139 -+ $_ = readlink "$eprefix/etc/make.profile";
140 -+ $_ = readlink "$eprefix/etc/portage/make.profile" if not defined $_;
141 -+ die "$eprefix/etc\{,/portage\}/make.profile is not a symlink\n" if not defined $_;
142 - @profiles = norm_path '/etc', $_;
143 - for (my $i = -1; $i >= -@profiles; $i--) {
144 - for(noncomments "$profiles[$i]/parent") {
145 - splice @profiles, $i, 0, norm_path $profiles[$i], $_;
146 - }
147 - }
148 -- push @profiles, '/etc/portage/profile';
149 -+ push @profiles, "$eprefix/etc/portage/profile";
150 - }
151 -
152 - sub read_sh($) {
153 -diff --git a/ufed-curses-help.c b/ufed-curses-help.c
154 -index 19679bb..79bd35e 100644
155 ---- a/ufed-curses-help.c
156 -+++ b/ufed-curses-help.c
157 -@@ -40,11 +40,10 @@ static void init_lines(void) {
158 - "Each USE flag has a 2 character descriptor that represents the two "
159 - "ways a use flag can be set.",
160 - "",
161 --"The 1st char is the setting from the /etc/make.profile/make.defaults "
162 --"file. These are the defaults for Gentoo as a whole. These should not be "
163 --"changed.",
164 -+"The 1st char is the setting from the make.defaults file. These are "
165 -+"the defaults for Gentoo as a whole. These should not be changed.",
166 - "",
167 --"The 2nd char is the settings from the /etc/make.conf file. these are "
168 -+"The 2nd char is the settings from the make.conf file. these are "
169 - "the only ones that should be changed by the user and these are the ones "
170 - "that ufed changes.",
171 - "",
172 -diff --git a/ufed.8 b/ufed.8
173 -index 7d7fe50..4c55c29 100644
174 ---- a/ufed.8
175 -+++ b/ufed.8
176 -@@ -12,15 +12,14 @@ UFED attempts to show you where a particular use setting came from. Each USE
177 - flag has a 3 character descriptor that represents the three ways a use flag can
178 - be set.
179 -
180 --The 1st char is the setting from the /etc/make.profile/make.defaults file.
181 --These are the defaults for Gentoo as a whole. These should not be changed.
182 -+The 1st char is the setting from the make.defaults file. These are the defaults
183 -+for Gentoo as a whole. These should not be changed.
184 -
185 --The 2nd char is the setting from the /etc/make.profile/use.defaults file. These
186 --will change as packages are added and removes from the system.
187 -+The 2nd char is the setting from the use.defaults file. These will change as
188 -+packages are added and removes from the system.
189 -
190 --The 3rd char is the settings from the /etc/make.conf file. these are the only
191 --ones that should be changed by the user and these are the ones that UFED
192 --changes.
193 -+The 3rd char is the settings from the make.conf file. these are the only ones
194 -+that should be changed by the user and these are the ones that UFED changes.
195 -
196 - If the character is a + then that USE flag was set in that file, if it is a
197 - space then the flag was not mentioned in that file and if it is a - then that
198 -@@ -64,25 +63,27 @@ Please report bugs via http://bugs.gentoo.org/
199 - .BR make.conf (5)
200 - .SH "FILES"
201 - .TP
202 --\fB/etc/make.conf\fR
203 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.conf\fR
204 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf\fR
205 - Contains user specified USE flags
206 - .TP
207 --\fB/etc/make.conf.old \fR
208 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.conf.old \fR
209 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf.old \fR
210 - This is where ufed places a backup of your make.conf file.
211 - .TP
212 --\fB/etc/make.profile/make.defaults\fR
213 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/make.defaults\fR
214 - Contains system default USE flags
215 - .TP
216 --\fB/etc/make.profile/use.defaults\fR
217 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/use.defaults\fR
218 - Provides an automatic ebuild to USE flag mapping ('auto' flags)
219 - .TP
220 --\fB/etc/make.profile/use.mask\fR
221 -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/use.mask\fR
222 - Restricted USE flags
223 - .TP
224 --\fB/usr/portage/profiles/use.desc\fR
225 -+\fB@GENTOO_PORTAGE_EPREFIX@/usr/portage/profiles/use.desc\fR
226 - Description strings for global USE flags
227 - .TP
228 --\fB/usr/portage/profiles/use.local.desc\fR
229 -+\fB@GENTOO_PORTAGE_EPREFIX@/usr/portage/profiles/use.local.desc\fR
230 - Description strings for local USE flags
231 - .SH "AUTHORS"
232 - Robin Johnson <robbat2@g.o>
233 -diff --git a/ufed.pl.in b/ufed.pl.in
234 -index 7493147..3435dae 100644
235 ---- a/ufed.pl.in
236 -+++ b/ufed.pl.in
237 -@@ -29,7 +29,7 @@ for(keys %Portage::all_flags) {
238 - @{$use_descriptions{$_}} = "(Unknown)"
239 - if not exists $use_descriptions{$_};
240 - }
241 --@{$use_descriptions{'-*'}} = 'Never enable any flags other than those specified in /etc/make.conf';
242 -+@{$use_descriptions{'-*'}} = 'Never enable any flags other than those specified in make.conf';
243 -
244 - for(@Portage::archs) {
245 - delete $Portage::default_flags{$_};
246 -@@ -155,8 +155,8 @@ sub save_flags(@) {
247 - my (@flags) = @_;
248 - my $contents;
249 -
250 -- my $makeconf_name = '/etc/portage/make.conf';
251 -- $makeconf_name = '/etc/make.conf' unless(-r $makeconf_name);
252 -+ my $makeconf_name = "$Portage::eprefix/etc/portage/make.conf";
253 -+ $makeconf_name = "$Portage::eprefix/etc/make.conf" unless(-r $makeconf_name);
254 - {
255 - open my $makeconf, '<', $makeconf_name or die "Couldn't open $makeconf_name\n";
256 - open my $makeconfold, '>', $makeconf_name . '.old' or die "Couldn't open $makeconf_name.old\n";
257 ---
258 -1.8.0
259 -
260
261 diff --git a/app-portage/ufed/files/ufed-0.90_rc2-get_portdir_from_portageq.patch b/app-portage/ufed/files/ufed-0.90_rc2-get_portdir_from_portageq.patch
262 deleted file mode 100644
263 index b66398a..0000000
264 --- a/app-portage/ufed/files/ufed-0.90_rc2-get_portdir_from_portageq.patch
265 +++ /dev/null
266 @@ -1,99 +0,0 @@
267 ---- a/Portage.pm 2013-09-11 08:34:10.792161194 +0200
268 -+++ b/Portage.pm 2013-09-11 09:00:45.737142232 +0200
269 -@@ -46,11 +46,13 @@
270 - our $used_make_conf = "";
271 -
272 - # --- private members ---
273 --my %_environment = ();
274 --my $_EPREFIX = "";
275 --my @_profiles = ();
276 --my %_use_eh_safe = (); ## USE_EXPAND_HIDDEN safe hash. See _read_make_defaults()
277 --my %_use_order = ();
278 -+my %_environment = ();
279 -+my $_EPREFIX = "";
280 -+my $_PORTDIR = "";
281 -+my $_PORTDIR_OVERLAY = "";
282 -+my @_profiles = ();
283 -+my %_use_eh_safe = (); ## USE_EXPAND_HIDDEN safe hash. See _read_make_defaults()
284 -+my %_use_order = ();
285 -
286 - # $_use_temp - hashref that represents the current state of
287 - # all known flags. This is for data gathering, the public
288 -@@ -87,7 +89,7 @@
289 - # --- private methods ---
290 - sub _add_flag;
291 - sub _add_temp;
292 --sub _determine_eprefix;
293 -+sub _determine_eprefix_portdir;
294 - sub _determine_make_conf;
295 - sub _determine_profiles;
296 - sub _final_cleaning;
297 -@@ -112,7 +114,7 @@
298 - # --- Package initialization ---
299 - INIT {
300 - $_environment{$_} = {} for qw{USE USE_EXPAND USE_EXPAND_HIDDEN};
301 -- _determine_eprefix;
302 -+ _determine_eprefix_portdir;
303 - _determine_make_conf;
304 - _determine_profiles;
305 - _read_make_globals;
306 -@@ -223,14 +225,29 @@
307 - }
308 -
309 -
310 --# Determine the value for EPREFIX and save it
311 --# in $_EPREFIX. This is done using 'portageq'.
312 -+# Determine the values for EPREFIX, PORTDIR
313 -+# and PORTDIR_OVERLAY. These are saved in
314 -+# $_EPREFIX, $_PORTDIR and $_PORTDIR_OVERLAY.
315 -+# This is done using 'portageq'.
316 - # Other output from portageq is printed on
317 - # STDERR.
318 - # No parameters accepted.
319 --sub _determine_eprefix {
320 -+sub _determine_eprefix_portdir {
321 - my $tmp = "/tmp/ufed_$$.tmp";
322 -- $_EPREFIX = qx{portageq envvar EPREFIX 2>$tmp};
323 -+ my @res = map {
324 -+ my $x = $_;
325 -+ chomp $x;
326 -+ $x =~ s/'//g;
327 -+ $x
328 -+ } qx{portageq envvar -v EPREFIX PORTDIR PORTDIR_OVERLAY 2>$tmp};
329 -+
330 -+ while (my $res = shift @res) {
331 -+ if ($res =~ /^(.*)=(.*)$/) {
332 -+ "EPREFIX" eq $1 and $_EPREFIX = $2;
333 -+ "PORTDIR" eq $1 and $_PORTDIR = $2;
334 -+ "PORTDIR_OVERLAY" eq $1 and $_PORTDIR_OVERLAY = $2;
335 -+ }
336 -+ }
337 - die "Couldn't determine EPREFIX from Portage" if $? != 0;
338 -
339 - if ( -s $tmp ) {
340 -@@ -241,7 +258,6 @@
341 - }
342 - -e $tmp and unlink $tmp;
343 -
344 -- chomp($_EPREFIX);
345 - return;
346 - }
347 -
348 -@@ -631,13 +647,11 @@
349 - }
350 -
351 - # Add PORTDIR and overlays to @_profiles
352 -- defined ($_environment{PORTDIR})
353 -- and push @_profiles, "$_environment{PORTDIR}/profiles"
354 -+ length ($_PORTDIR)
355 -+ and push @_profiles, "${_PORTDIR}/profiles"
356 - or die("Unable to determine PORTDIR!\nSomething is seriously broken here!\n");
357 -- defined ($_environment{PORTDIR_OVERLAY})
358 -- and push @_profiles,
359 -- map { my $x=$_; $x =~ s/^\s*(\S+)\s*$/$1\/profiles/mg ; $x }
360 -- split('\n', $_environment{PORTDIR_OVERLAY});
361 -+ length ($_PORTDIR_OVERLAY)
362 -+ and push @_profiles, split(' ', $_PORTDIR_OVERLAY);
363 - -e "${_EPREFIX}/etc/portage/profile"
364 - and push @_profiles, "${_EPREFIX}/etc/portage/profile";
365 - return;