diff options
author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2016-07-13 20:45:53 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-07-14 18:07:58 +0200 |
commit | cbd0b343881578bad36b887c2e1ca3960be6beca (patch) | |
tree | 716f52120c7e98d76ee6ac8091e33933df6c8a7d | |
parent | app-portage/install-mask: remove unused files (diff) | |
download | gentoo-cbd0b343881578bad36b887c2e1ca3960be6beca.tar.gz gentoo-cbd0b343881578bad36b887c2e1ca3960be6beca.tar.bz2 gentoo-cbd0b343881578bad36b887c2e1ca3960be6beca.zip |
app-portage/ufed: remove unused patches
Closes: https://github.com/gentoo/gentoo/pull/1883
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
3 files changed, 0 insertions, 327 deletions
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 deleted file mode 100644 index dd8b73446997..000000000000 --- a/app-portage/ufed/files/ufed-0.40.2-manpage-URL.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0f67e677776c6a5b6a095c3c2486a2184a5427a0 Mon Sep 17 00:00:00 2001 -From: Paul Varner <fuzzyray@gentoo.org> -Date: Tue, 20 Nov 2012 11:28:57 -0600 -Subject: [PATCH 2/2] Update handbook URL for more information on USE flags - ---- - ufed.8 | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ufed.8 b/ufed.8 -index 4c55c29..f42fdc1 100644 ---- a/ufed.8 -+++ b/ufed.8 -@@ -47,7 +47,7 @@ thus USE settings will have no effect on those mandatory dependencies. - A list of USE keywords used by a particular package can be found by checking - the IUSE line in any ebuild file. - --See http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1 -+See http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2 - for more information on USE flags. - - Please also note that if UFED describes a flag (Unknown) it generally means --- -1.8.0 - diff --git a/app-portage/ufed/files/ufed-0.40.2-prefix.patch b/app-portage/ufed/files/ufed-0.40.2-prefix.patch deleted file mode 100644 index 6eea85b991de..000000000000 --- a/app-portage/ufed/files/ufed-0.40.2-prefix.patch +++ /dev/null @@ -1,203 +0,0 @@ -From 7d133e58b27253ebc1bcfc16fa45ef91125ccde9 Mon Sep 17 00:00:00 2001 -From: Paul Varner <fuzzyray@gentoo.org> -Date: Tue, 20 Nov 2012 11:22:09 -0600 -Subject: [PATCH 1/2] Change ufed to use EPREFIX for prefix installs. - ---- - Portage.pm | 26 ++++++++++++++++++-------- - ufed-curses-help.c | 7 +++---- - ufed.8 | 29 +++++++++++++++-------------- - ufed.pl.in | 6 +++--- - 4 files changed, 39 insertions(+), 29 deletions(-) - -diff --git a/Portage.pm b/Portage.pm -index 0b02cab..c7e236d 100644 ---- a/Portage.pm -+++ b/Portage.pm -@@ -15,7 +15,9 @@ our %default_flags; - our %make_conf_flags; - our %archs; - our %all_flags; -+our $eprefix; - -+sub get_eprefix(); - sub have_package($); - sub merge(\%%); - sub merge_env(\%); -@@ -30,6 +32,7 @@ sub read_profiles(); - sub read_sh($); - sub read_use_mask(); - -+get_eprefix; - read_packages; - read_profiles; - read_use_mask; -@@ -54,6 +57,13 @@ if($lastorder ne 'conf') { - die "Sorry, USE_ORDER without make.conf overriding global USE flags are not currently supported by ufed.\n"; - } - -+ -+sub get_eprefix() { -+ $eprefix = `portageq envvar EPREFIX 2>&1`; -+ die "Couldn't determine EPREFIX from Portage" if $? != 0; -+ chomp($eprefix); -+} -+ - sub have_package($) { - my ($cp) = @_; - return $packages{$cp}; -@@ -130,8 +140,8 @@ sub read_archs() { - } - - sub read_make_conf() { -- my %env = read_sh "/etc/make.conf"; -- merge (%env, read_sh('/etc/portage/make.conf')); -+ my %env = read_sh "$eprefix/etc/make.conf"; -+ merge (%env, read_sh("$eprefix/etc/portage/make.conf")); - merge %make_conf_flags, %{$env{USE}} if exists $env{USE}; - @portagedirs = $environment{PORTDIR}; - push @portagedirs, split ' ', $environment{PORTDIR_OVERLAY} if defined $environment{PORTDIR_OVERLAY}; -@@ -145,13 +155,13 @@ sub read_make_defaults() { - } - - sub read_make_globals() { -- for my $dir(@profiles, '/usr/share/portage/config') { -+ for my $dir(@profiles, "$eprefix/usr/share/portage/config") { - read_sh "$dir/make.globals"; - } - } - - sub read_packages() { -- die "Couldn't read /var/db/pkg\n" unless opendir my $pkgdir, '/var/db/pkg'; -+ die "Couldn't read $eprefix/var/db/pkg\n" unless opendir my $pkgdir, "$eprefix/var/db/pkg"; - while(my $cat = readdir $pkgdir) { - next if $cat eq '.' or $cat eq '..'; - next unless opendir my $catdir, "/var/db/pkg/$cat"; -@@ -199,16 +209,16 @@ sub read_packages() { - } - - sub read_profiles() { -- $_ = readlink '/etc/make.profile'; -- $_ = readlink '/etc/portage/make.profile' if not defined $_; -- die "/etc\{,/portage\}/make.profile is not a symlink\n" if not defined $_; -+ $_ = readlink "$eprefix/etc/make.profile"; -+ $_ = readlink "$eprefix/etc/portage/make.profile" if not defined $_; -+ die "$eprefix/etc\{,/portage\}/make.profile is not a symlink\n" if not defined $_; - @profiles = norm_path '/etc', $_; - for (my $i = -1; $i >= -@profiles; $i--) { - for(noncomments "$profiles[$i]/parent") { - splice @profiles, $i, 0, norm_path $profiles[$i], $_; - } - } -- push @profiles, '/etc/portage/profile'; -+ push @profiles, "$eprefix/etc/portage/profile"; - } - - sub read_sh($) { -diff --git a/ufed-curses-help.c b/ufed-curses-help.c -index 19679bb..79bd35e 100644 ---- a/ufed-curses-help.c -+++ b/ufed-curses-help.c -@@ -40,11 +40,10 @@ static void init_lines(void) { - "Each USE flag has a 2 character descriptor that represents the two " - "ways a use flag can be set.", - "", --"The 1st char is the setting from the /etc/make.profile/make.defaults " --"file. These are the defaults for Gentoo as a whole. These should not be " --"changed.", -+"The 1st char is the setting from the make.defaults file. These are " -+"the defaults for Gentoo as a whole. These should not be changed.", - "", --"The 2nd char is the settings from the /etc/make.conf file. these are " -+"The 2nd char is the settings from the make.conf file. these are " - "the only ones that should be changed by the user and these are the ones " - "that ufed changes.", - "", -diff --git a/ufed.8 b/ufed.8 -index 7d7fe50..4c55c29 100644 ---- a/ufed.8 -+++ b/ufed.8 -@@ -12,15 +12,14 @@ UFED attempts to show you where a particular use setting came from. Each USE - flag has a 3 character descriptor that represents the three ways a use flag can - be set. - --The 1st char is the setting from the /etc/make.profile/make.defaults file. --These are the defaults for Gentoo as a whole. These should not be changed. -+The 1st char is the setting from the make.defaults file. These are the defaults -+for Gentoo as a whole. These should not be changed. - --The 2nd char is the setting from the /etc/make.profile/use.defaults file. These --will change as packages are added and removes from the system. -+The 2nd char is the setting from the use.defaults file. These will change as -+packages are added and removes from the system. - --The 3rd char is the settings from the /etc/make.conf file. these are the only --ones that should be changed by the user and these are the ones that UFED --changes. -+The 3rd char is the settings from the make.conf file. these are the only ones -+that should be changed by the user and these are the ones that UFED changes. - - If the character is a + then that USE flag was set in that file, if it is a - space then the flag was not mentioned in that file and if it is a - then that -@@ -64,25 +63,27 @@ Please report bugs via http://bugs.gentoo.org/ - .BR make.conf (5) - .SH "FILES" - .TP --\fB/etc/make.conf\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.conf\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf\fR - Contains user specified USE flags - .TP --\fB/etc/make.conf.old \fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.conf.old \fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf.old \fR - This is where ufed places a backup of your make.conf file. - .TP --\fB/etc/make.profile/make.defaults\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/make.defaults\fR - Contains system default USE flags - .TP --\fB/etc/make.profile/use.defaults\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/use.defaults\fR - Provides an automatic ebuild to USE flag mapping ('auto' flags) - .TP --\fB/etc/make.profile/use.mask\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/etc/make.profile/use.mask\fR - Restricted USE flags - .TP --\fB/usr/portage/profiles/use.desc\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/usr/portage/profiles/use.desc\fR - Description strings for global USE flags - .TP --\fB/usr/portage/profiles/use.local.desc\fR -+\fB@GENTOO_PORTAGE_EPREFIX@/usr/portage/profiles/use.local.desc\fR - Description strings for local USE flags - .SH "AUTHORS" - Robin Johnson <robbat2@gentoo.org> -diff --git a/ufed.pl.in b/ufed.pl.in -index 7493147..3435dae 100644 ---- a/ufed.pl.in -+++ b/ufed.pl.in -@@ -29,7 +29,7 @@ for(keys %Portage::all_flags) { - @{$use_descriptions{$_}} = "(Unknown)" - if not exists $use_descriptions{$_}; - } --@{$use_descriptions{'-*'}} = 'Never enable any flags other than those specified in /etc/make.conf'; -+@{$use_descriptions{'-*'}} = 'Never enable any flags other than those specified in make.conf'; - - for(@Portage::archs) { - delete $Portage::default_flags{$_}; -@@ -155,8 +155,8 @@ sub save_flags(@) { - my (@flags) = @_; - my $contents; - -- my $makeconf_name = '/etc/portage/make.conf'; -- $makeconf_name = '/etc/make.conf' unless(-r $makeconf_name); -+ my $makeconf_name = "$Portage::eprefix/etc/portage/make.conf"; -+ $makeconf_name = "$Portage::eprefix/etc/make.conf" unless(-r $makeconf_name); - { - open my $makeconf, '<', $makeconf_name or die "Couldn't open $makeconf_name\n"; - open my $makeconfold, '>', $makeconf_name . '.old' or die "Couldn't open $makeconf_name.old\n"; --- -1.8.0 - 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 deleted file mode 100644 index b66398a824f6..000000000000 --- a/app-portage/ufed/files/ufed-0.90_rc2-get_portdir_from_portageq.patch +++ /dev/null @@ -1,99 +0,0 @@ ---- a/Portage.pm 2013-09-11 08:34:10.792161194 +0200 -+++ b/Portage.pm 2013-09-11 09:00:45.737142232 +0200 -@@ -46,11 +46,13 @@ - our $used_make_conf = ""; - - # --- private members --- --my %_environment = (); --my $_EPREFIX = ""; --my @_profiles = (); --my %_use_eh_safe = (); ## USE_EXPAND_HIDDEN safe hash. See _read_make_defaults() --my %_use_order = (); -+my %_environment = (); -+my $_EPREFIX = ""; -+my $_PORTDIR = ""; -+my $_PORTDIR_OVERLAY = ""; -+my @_profiles = (); -+my %_use_eh_safe = (); ## USE_EXPAND_HIDDEN safe hash. See _read_make_defaults() -+my %_use_order = (); - - # $_use_temp - hashref that represents the current state of - # all known flags. This is for data gathering, the public -@@ -87,7 +89,7 @@ - # --- private methods --- - sub _add_flag; - sub _add_temp; --sub _determine_eprefix; -+sub _determine_eprefix_portdir; - sub _determine_make_conf; - sub _determine_profiles; - sub _final_cleaning; -@@ -112,7 +114,7 @@ - # --- Package initialization --- - INIT { - $_environment{$_} = {} for qw{USE USE_EXPAND USE_EXPAND_HIDDEN}; -- _determine_eprefix; -+ _determine_eprefix_portdir; - _determine_make_conf; - _determine_profiles; - _read_make_globals; -@@ -223,14 +225,29 @@ - } - - --# Determine the value for EPREFIX and save it --# in $_EPREFIX. This is done using 'portageq'. -+# Determine the values for EPREFIX, PORTDIR -+# and PORTDIR_OVERLAY. These are saved in -+# $_EPREFIX, $_PORTDIR and $_PORTDIR_OVERLAY. -+# This is done using 'portageq'. - # Other output from portageq is printed on - # STDERR. - # No parameters accepted. --sub _determine_eprefix { -+sub _determine_eprefix_portdir { - my $tmp = "/tmp/ufed_$$.tmp"; -- $_EPREFIX = qx{portageq envvar EPREFIX 2>$tmp}; -+ my @res = map { -+ my $x = $_; -+ chomp $x; -+ $x =~ s/'//g; -+ $x -+ } qx{portageq envvar -v EPREFIX PORTDIR PORTDIR_OVERLAY 2>$tmp}; -+ -+ while (my $res = shift @res) { -+ if ($res =~ /^(.*)=(.*)$/) { -+ "EPREFIX" eq $1 and $_EPREFIX = $2; -+ "PORTDIR" eq $1 and $_PORTDIR = $2; -+ "PORTDIR_OVERLAY" eq $1 and $_PORTDIR_OVERLAY = $2; -+ } -+ } - die "Couldn't determine EPREFIX from Portage" if $? != 0; - - if ( -s $tmp ) { -@@ -241,7 +258,6 @@ - } - -e $tmp and unlink $tmp; - -- chomp($_EPREFIX); - return; - } - -@@ -631,13 +647,11 @@ - } - - # Add PORTDIR and overlays to @_profiles -- defined ($_environment{PORTDIR}) -- and push @_profiles, "$_environment{PORTDIR}/profiles" -+ length ($_PORTDIR) -+ and push @_profiles, "${_PORTDIR}/profiles" - or die("Unable to determine PORTDIR!\nSomething is seriously broken here!\n"); -- defined ($_environment{PORTDIR_OVERLAY}) -- and push @_profiles, -- map { my $x=$_; $x =~ s/^\s*(\S+)\s*$/$1\/profiles/mg ; $x } -- split('\n', $_environment{PORTDIR_OVERLAY}); -+ length ($_PORTDIR_OVERLAY) -+ and push @_profiles, split(' ', $_PORTDIR_OVERLAY); - -e "${_EPREFIX}/etc/portage/profile" - and push @_profiles, "${_EPREFIX}/etc/portage/profile"; - return; |