1 |
commit: d39b8890d1ed73efb2035a5b2689d3cb7c72fcb5 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 9 20:34:06 2018 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 9 20:34:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d39b8890 |
7 |
|
8 |
app-admin/eselect: Update Patch |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
.../files/eselect-1.4.13-alternatives.patch | 41 +++++++++++----------- |
14 |
1 file changed, 20 insertions(+), 21 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/eselect/files/eselect-1.4.13-alternatives.patch b/app-admin/eselect/files/eselect-1.4.13-alternatives.patch |
17 |
index 1d541722c..4e7455e6d 100644 |
18 |
--- a/app-admin/eselect/files/eselect-1.4.13-alternatives.patch |
19 |
+++ b/app-admin/eselect/files/eselect-1.4.13-alternatives.patch |
20 |
@@ -1,12 +1,12 @@ |
21 |
bin/Makefile.am | 1 + |
22 |
bin/eselect.in | 150 +++++++++++- |
23 |
libs/Makefile.am | 7 +- |
24 |
- libs/alternatives-common.bash.in | 510 +++++++++++++++++++++++++++++++++++++++ |
25 |
+ libs/alternatives-common.bash.in | 509 +++++++++++++++++++++++++++++++++++++++ |
26 |
libs/alternatives.bash.in | 316 ++++++++++++++++++++++++ |
27 |
modules/Makefile.am | 1 + |
28 |
modules/alternatives.eselect | 178 ++++++++++++++ |
29 |
modules/modules.eselect | 288 ++++++++++++++-------- |
30 |
- 8 files changed, 1343 insertions(+), 108 deletions(-) |
31 |
+ 8 files changed, 1342 insertions(+), 108 deletions(-) |
32 |
|
33 |
diff --git a/bin/Makefile.am b/bin/Makefile.am |
34 |
index 20902c1..ad08867 100644 |
35 |
@@ -21,7 +21,7 @@ index 20902c1..ad08867 100644 |
36 |
|
37 |
% : %.in |
38 |
diff --git a/bin/eselect.in b/bin/eselect.in |
39 |
-index 934a10a..5242ed3 100755 |
40 |
+index 432f4e8..840eb94 100755 |
41 |
--- a/bin/eselect.in |
42 |
+++ b/bin/eselect.in |
43 |
@@ -22,10 +22,18 @@ ESELECT_DATA_PATH="@DATADIR@/eselect" |
44 |
@@ -46,7 +46,7 @@ index 934a10a..5242ed3 100755 |
45 |
|
46 |
# Look in this place for libraries |
47 |
ESELECT_CORE_PATH="${ESELECT_DATA_PATH}/libs" |
48 |
-@@ -64,12 +72,27 @@ fi |
49 |
+@@ -66,12 +74,27 @@ fi |
50 |
# Load core functions |
51 |
source "${ESELECT_CORE_PATH}/core.bash" || exit 255 |
52 |
# Load necessary functions for the main script |
53 |
@@ -75,7 +75,7 @@ index 934a10a..5242ed3 100755 |
54 |
# es_do_usage |
55 |
# Display eselect usage |
56 |
es_do_usage() { |
57 |
-@@ -81,14 +104,10 @@ es_do_usage() { |
58 |
+@@ -83,14 +106,10 @@ es_do_usage() { |
59 |
es_do_help() { |
60 |
es_do_usage |
61 |
echo |
62 |
@@ -92,7 +92,7 @@ index 934a10a..5242ed3 100755 |
63 |
} |
64 |
|
65 |
# es_do_version |
66 |
-@@ -100,6 +119,114 @@ es_do_version() { |
67 |
+@@ -102,6 +121,114 @@ es_do_version() { |
68 |
echo "Distributed under the terms of the GNU GPL version 2 or later." |
69 |
} |
70 |
|
71 |
@@ -207,7 +207,7 @@ index 934a10a..5242ed3 100755 |
72 |
### main code ### |
73 |
|
74 |
# figure out what the action is. we need to know whether we're |
75 |
-@@ -141,6 +268,9 @@ while [[ ${1##--} != "$1" ]]; do |
76 |
+@@ -143,6 +270,9 @@ while [[ ${1##--} != "$1" ]]; do |
77 |
*) die -q "Invalid argument for ${1%%=*} option" ;; |
78 |
esac |
79 |
;; |
80 |
@@ -218,7 +218,7 @@ index 934a10a..5242ed3 100755 |
81 |
[[ -z ${action} ]] || die -q "Too many parameters" |
82 |
action=${1##--} |
83 |
diff --git a/libs/Makefile.am b/libs/Makefile.am |
84 |
-index 027ef73..a5fe373 100644 |
85 |
+index 6ebd08e..c19f173 100644 |
86 |
--- a/libs/Makefile.am |
87 |
+++ b/libs/Makefile.am |
88 |
@@ -1,6 +1,8 @@ |
89 |
@@ -239,22 +239,22 @@ index 027ef73..a5fe373 100644 |
90 |
config.bash.in \ |
91 |
core.bash.in \ |
92 |
default.eselect.in \ |
93 |
-@@ -30,7 +34,8 @@ dosed = @SED@ \ |
94 |
- -e 's%\@SED\@%@SED@%g' \ |
95 |
+@@ -31,7 +35,8 @@ dosed = @SED@ \ |
96 |
-e 's%\@PORTAGEQ\@%@PORTAGEQ@%g' \ |
97 |
-e 's%\@ENV_UPDATE\@%@ENV_UPDATE@%g' \ |
98 |
-- -e 's%\@CANONICALISE\@%@CANONICALISE@%g' |
99 |
-+ -e 's%\@CANONICALISE\@%@CANONICALISE@%g' \ |
100 |
+ -e 's%\@CANONICALISE\@%@CANONICALISE@%g' \ |
101 |
+- -e 's%\@libdir\@%@libdir@%g' |
102 |
++ -e 's%\@libdir\@%@libdir@%g' \ |
103 |
+ -e 's%\@sysconfdir\@%@sysconfdir@%g' |
104 |
|
105 |
%.bash : %.bash.in |
106 |
@$(dosed) $< > $@ |
107 |
diff --git a/libs/alternatives-common.bash.in b/libs/alternatives-common.bash.in |
108 |
new file mode 100644 |
109 |
-index 0000000..8753b89 |
110 |
+index 0000000..024d41e |
111 |
--- /dev/null |
112 |
+++ b/libs/alternatives-common.bash.in |
113 |
-@@ -0,0 +1,510 @@ |
114 |
+@@ -0,0 +1,509 @@ |
115 |
+# Copyright (c) 2005-2015 Gentoo Foundation |
116 |
+# Copyright (c) 2008 Mike Kelly |
117 |
+# Copyright (c) 2009-2013 David Leverton |
118 |
@@ -277,8 +277,7 @@ index 0000000..8753b89 |
119 |
+inherit config output path-manipulation tests |
120 |
+ |
121 |
+: "${ALTERNATIVESDIR_ROOTLESS:=@sysconfdir@/env.d/alternatives}" |
122 |
-+: "${ALTERNATIVESDIR_ROOT:=${ROOT%/}}" |
123 |
-+ALTERNATIVESDIR="${ALTERNATIVESDIR_ROOT}${ALTERNATIVESDIR_ROOTLESS}" |
124 |
++ALTERNATIVESDIR="${EROOT%/}${ALTERNATIVESDIR_ROOTLESS}" |
125 |
+ |
126 |
+get_current_provider() { |
127 |
+ local dieprefix="Could not determine current provider for ${ALTERNATIVE}" |
128 |
@@ -468,7 +467,7 @@ index 0000000..8753b89 |
129 |
+ old_i+=1 |
130 |
+ |
131 |
+ else |
132 |
-+ local target=${ALTERNATIVESDIR_ROOTLESS#${EPREFIX}/}/${ALTERNATIVE}/_current${newsymlinks[new_i]} dir=${newsymlinks[new_i]%/*} |
133 |
++ local target=${ALTERNATIVESDIR_ROOTLESS#/}/${ALTERNATIVE}/_current${newsymlinks[new_i]} dir=${newsymlinks[new_i]%/*} |
134 |
+ while [[ -n ${dir} ]]; do |
135 |
+ target=../${target} |
136 |
+ dir=${dir%/*} |
137 |
@@ -547,7 +546,7 @@ index 0000000..8753b89 |
138 |
+ elif [[ ! -d "${provider_dir}" ]]; then |
139 |
+ die "${provider_dir} exists but is a file" |
140 |
+ else |
141 |
-+ die "${provider_dir} already present. You need to remove it before adding it again" |
142 |
++ die "${provider_dir} already present. You need ot remove it before adding it again" |
143 |
+ fi |
144 |
+ |
145 |
+ # Make sure importance is a signed integer |
146 |
@@ -564,7 +563,7 @@ index 0000000..8753b89 |
147 |
+ if [[ ${src} != /* ]]; then |
148 |
+ die "Source path must be absolute, but got ${src}" |
149 |
+ else |
150 |
-+ local reltarget= dir=${provider_dir#${ALTERNATIVESDIR_ROOT}${EPREFIX}}${src%/*} |
151 |
++ local reltarget= dir=${provider_dir}${src%/*} |
152 |
+ while [[ -n ${dir} ]]; do |
153 |
+ reltarget+=../ |
154 |
+ dir=${dir%/*} |
155 |
@@ -1284,11 +1283,11 @@ index 0000000..840b9c5 |
156 |
+ alternatives_options_remove |
157 |
+} |
158 |
diff --git a/modules/modules.eselect b/modules/modules.eselect |
159 |
-index 038f630..78dcbab 100644 |
160 |
+index 5bc78ca..23c1e59 100644 |
161 |
--- a/modules/modules.eselect |
162 |
+++ b/modules/modules.eselect |
163 |
@@ -2,7 +2,7 @@ |
164 |
- # Copyright 2006-2015 Gentoo Foundation |
165 |
+ # Copyright 2006-2018 Gentoo Foundation |
166 |
# Distributed under the terms of the GNU GPL version 2 or later |
167 |
|
168 |
-inherit config |