1 |
commit: 3f0f9750f9dbe8a2e5680926de445f1ae417775f |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 30 08:53:22 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 30 08:55:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3f0f9750 |
7 |
|
8 |
tests/qfile: lift non-Gentoo system restriction |
9 |
|
10 |
Use a local (dummy) VDB to provide the bash qfile query input. This |
11 |
allows Travis to run the tests, as well as to be indifferent to host |
12 |
setup of the system being tested. |
13 |
|
14 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
15 |
|
16 |
tests/qfile/dotest | 13 +- |
17 |
.../root/app-shells/bash-4.4_p23-r1/BUILD_TIME | 1 + |
18 |
.../qfile/root/app-shells/bash-4.4_p23-r1/CATEGORY | 1 + |
19 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/CBUILD | 1 + |
20 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/CFLAGS | 1 + |
21 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/CHOST | 1 + |
22 |
.../qfile/root/app-shells/bash-4.4_p23-r1/CONTENTS | 153 ++++++++++++ |
23 |
.../qfile/root/app-shells/bash-4.4_p23-r1/COUNTER | 1 + |
24 |
.../qfile/root/app-shells/bash-4.4_p23-r1/CXXFLAGS | 1 + |
25 |
.../root/app-shells/bash-4.4_p23-r1/DEFINED_PHASES | 1 + |
26 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/DEPEND | 1 + |
27 |
.../root/app-shells/bash-4.4_p23-r1/DESCRIPTION | 1 + |
28 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/EAPI | 1 + |
29 |
.../qfile/root/app-shells/bash-4.4_p23-r1/FEATURES | 1 + |
30 |
.../qfile/root/app-shells/bash-4.4_p23-r1/HOMEPAGE | 1 + |
31 |
.../root/app-shells/bash-4.4_p23-r1/INHERITED | 1 + |
32 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE | 1 + |
33 |
.../root/app-shells/bash-4.4_p23-r1/IUSE_EFFECTIVE | 1 + |
34 |
.../qfile/root/app-shells/bash-4.4_p23-r1/KEYWORDS | 1 + |
35 |
.../qfile/root/app-shells/bash-4.4_p23-r1/LDFLAGS | 1 + |
36 |
.../qfile/root/app-shells/bash-4.4_p23-r1/LICENSE | 1 + |
37 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED | 1 + |
38 |
.../root/app-shells/bash-4.4_p23-r1/NEEDED.ELF.2 | 1 + |
39 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/PF | 1 + |
40 |
.../qfile/root/app-shells/bash-4.4_p23-r1/RDEPEND | 1 + |
41 |
.../qfile/root/app-shells/bash-4.4_p23-r1/REQUIRES | 1 + |
42 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/SIZE | 1 + |
43 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/SLOT | 1 + |
44 |
tests/qfile/root/app-shells/bash-4.4_p23-r1/USE | 1 + |
45 |
.../bash-4.4_p23-r1/bash-4.4_p23-r1.ebuild | 260 +++++++++++++++++++++ |
46 |
.../root/app-shells/bash-4.4_p23-r1/repository | 1 + |
47 |
tests/qfile/root/bin/bash | 0 |
48 |
32 files changed, 446 insertions(+), 8 deletions(-) |
49 |
|
50 |
diff --git a/tests/qfile/dotest b/tests/qfile/dotest |
51 |
index a9d1c55..7769a51 100755 |
52 |
--- a/tests/qfile/dotest |
53 |
+++ b/tests/qfile/dotest |
54 |
@@ -1,13 +1,10 @@ |
55 |
#!/bin/bash |
56 |
|
57 |
-# TODO: Make these work with local vdb instead of requiring /. |
58 |
-if [[ -n ${TRAVIS_OS_NAME} ]] ; then |
59 |
- echo "TODO: Make it work on non-Gentoo system" |
60 |
- exit 0 |
61 |
-fi |
62 |
- |
63 |
. ../init.sh || exit 1 |
64 |
|
65 |
+export ROOT=${as}/root |
66 |
+export Q_VDB=/ |
67 |
+ |
68 |
tests=( |
69 |
"q file -Cq /bin/bash /bin/XXXXX" |
70 |
"app-shells/bash" |
71 |
@@ -27,10 +24,10 @@ tests=( |
72 |
"q file -Co -x app-shells/bash:0 /bin/bash" |
73 |
"/bin/bash" |
74 |
|
75 |
- "(cd /bin; q file -Cq bash)" |
76 |
+ "(cd ${ROOT}/bin; q file -RCq bash)" |
77 |
"app-shells/bash" |
78 |
|
79 |
- "(cd /; q file -Co whatever)" |
80 |
+ "(cd ${ROOT}/; q file -Co whatever)" |
81 |
"whatever" |
82 |
) |
83 |
|
84 |
|
85 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/BUILD_TIME b/tests/qfile/root/app-shells/bash-4.4_p23-r1/BUILD_TIME |
86 |
new file mode 100644 |
87 |
index 0000000..9b6c3b8 |
88 |
--- /dev/null |
89 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/BUILD_TIME |
90 |
@@ -0,0 +1 @@ |
91 |
+1547713708 |
92 |
|
93 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CATEGORY b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CATEGORY |
94 |
new file mode 100644 |
95 |
index 0000000..23665dc |
96 |
--- /dev/null |
97 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CATEGORY |
98 |
@@ -0,0 +1 @@ |
99 |
+app-shells |
100 |
|
101 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CBUILD b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CBUILD |
102 |
new file mode 100644 |
103 |
index 0000000..f733b5f |
104 |
--- /dev/null |
105 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CBUILD |
106 |
@@ -0,0 +1 @@ |
107 |
+x86_64-pc-linux-gnu |
108 |
|
109 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CFLAGS b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CFLAGS |
110 |
new file mode 100644 |
111 |
index 0000000..38b744e |
112 |
--- /dev/null |
113 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CFLAGS |
114 |
@@ -0,0 +1 @@ |
115 |
+-O3 -march=native -pipe |
116 |
|
117 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CHOST b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CHOST |
118 |
new file mode 100644 |
119 |
index 0000000..f733b5f |
120 |
--- /dev/null |
121 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CHOST |
122 |
@@ -0,0 +1 @@ |
123 |
+x86_64-pc-linux-gnu |
124 |
|
125 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CONTENTS b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CONTENTS |
126 |
new file mode 100644 |
127 |
index 0000000..76fe036 |
128 |
--- /dev/null |
129 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CONTENTS |
130 |
@@ -0,0 +1,153 @@ |
131 |
+dir /usr |
132 |
+dir /usr/bin |
133 |
+obj /usr/bin/bashbug 9b20c085e9d7f3646f3b4b45e74f70ca 1547713704 |
134 |
+dir /usr/share |
135 |
+dir /usr/share/info |
136 |
+obj /usr/share/info/bash.info.bz2 e96f21c53fd71a8b9f392eae611c8393 1547713705 |
137 |
+sym /usr/share/info/bashref.info.bz2 -> bash.info.bz2 1547713709 |
138 |
+dir /usr/share/man |
139 |
+dir /usr/share/man/man1 |
140 |
+obj /usr/share/man/man1/rbash.1.bz2 c8370af7d2cba6984a624f80a9f75bb1 1547713707 |
141 |
+obj /usr/share/man/man1/builtins.1.bz2 5a135e368c236f17d1d98f8b3f170898 1547713707 |
142 |
+obj /usr/share/man/man1/bashbug.1.bz2 214100b4439c2b3fddc8afcdd176afc4 1547713707 |
143 |
+obj /usr/share/man/man1/bash.1.bz2 167fbcd505b4ab3517c1f902e4e7b0fd 1547713707 |
144 |
+dir /usr/share/locale |
145 |
+dir /usr/share/locale/nl |
146 |
+dir /usr/share/locale/nl/LC_MESSAGES |
147 |
+obj /usr/share/locale/nl/LC_MESSAGES/bash.mo 9e46ff47323e90ae06a3d6bca048272e 1547713705 |
148 |
+dir /usr/share/locale/af |
149 |
+dir /usr/share/locale/af/LC_MESSAGES |
150 |
+obj /usr/share/locale/af/LC_MESSAGES/bash.mo 41c37d8a87fef0c492736c69719e6c6d 1547713705 |
151 |
+dir /usr/share/locale/sv |
152 |
+dir /usr/share/locale/sv/LC_MESSAGES |
153 |
+obj /usr/share/locale/sv/LC_MESSAGES/bash.mo b66c7adfda290a08b3e72ac6f9cd8945 1547713705 |
154 |
+dir /usr/share/locale/uk |
155 |
+dir /usr/share/locale/uk/LC_MESSAGES |
156 |
+obj /usr/share/locale/uk/LC_MESSAGES/bash.mo bedd282c9d1c91979a0ca61b556283ce 1547713706 |
157 |
+dir /usr/share/locale/ja |
158 |
+dir /usr/share/locale/ja/LC_MESSAGES |
159 |
+obj /usr/share/locale/ja/LC_MESSAGES/bash.mo dd347d2692940ec86da0997939c92456 1547713705 |
160 |
+dir /usr/share/locale/ca |
161 |
+dir /usr/share/locale/ca/LC_MESSAGES |
162 |
+obj /usr/share/locale/ca/LC_MESSAGES/bash.mo f8f6318563af78500bdcd343da9fb5bd 1547713705 |
163 |
+dir /usr/share/locale/da |
164 |
+dir /usr/share/locale/da/LC_MESSAGES |
165 |
+obj /usr/share/locale/da/LC_MESSAGES/bash.mo 17911605b0dfce2cbcec904385562bc5 1547713705 |
166 |
+dir /usr/share/locale/zh_TW |
167 |
+dir /usr/share/locale/zh_TW/LC_MESSAGES |
168 |
+obj /usr/share/locale/zh_TW/LC_MESSAGES/bash.mo 3be163bd6ff115f158152008b38ac969 1547713706 |
169 |
+dir /usr/share/locale/ru |
170 |
+dir /usr/share/locale/ru/LC_MESSAGES |
171 |
+obj /usr/share/locale/ru/LC_MESSAGES/bash.mo 41500366236f08a546b04089e15eb7ac 1547713705 |
172 |
+dir /usr/share/locale/et |
173 |
+dir /usr/share/locale/et/LC_MESSAGES |
174 |
+obj /usr/share/locale/et/LC_MESSAGES/bash.mo 9021bbbc713985bdf7a083e29e0bf895 1547713705 |
175 |
+dir /usr/share/locale/hr |
176 |
+dir /usr/share/locale/hr/LC_MESSAGES |
177 |
+obj /usr/share/locale/hr/LC_MESSAGES/bash.mo 37b44cc4f316c9caa93d528481d33101 1547713705 |
178 |
+dir /usr/share/locale/el |
179 |
+dir /usr/share/locale/el/LC_MESSAGES |
180 |
+obj /usr/share/locale/el/LC_MESSAGES/bash.mo bdf88cf8bf58ac0e68e06d875f8e9f9f 1547713705 |
181 |
+dir /usr/share/locale/sl |
182 |
+dir /usr/share/locale/sl/LC_MESSAGES |
183 |
+obj /usr/share/locale/sl/LC_MESSAGES/bash.mo 70863c54e2afd14279ef56533839a348 1547713705 |
184 |
+dir /usr/share/locale/es |
185 |
+dir /usr/share/locale/es/LC_MESSAGES |
186 |
+obj /usr/share/locale/es/LC_MESSAGES/bash.mo 904fe5b6516f8f826221189a2fe441c9 1547713705 |
187 |
+dir /usr/share/locale/en@boldquot |
188 |
+dir /usr/share/locale/en@boldquot/LC_MESSAGES |
189 |
+obj /usr/share/locale/en@boldquot/LC_MESSAGES/bash.mo 5d38e79cce3b7ba4b528cda0cbd45c5f 1547713705 |
190 |
+dir /usr/share/locale/ro |
191 |
+dir /usr/share/locale/ro/LC_MESSAGES |
192 |
+obj /usr/share/locale/ro/LC_MESSAGES/bash.mo 081cb1677de385da8f8f6a33530a1e27 1547713705 |
193 |
+dir /usr/share/locale/fi |
194 |
+dir /usr/share/locale/fi/LC_MESSAGES |
195 |
+obj /usr/share/locale/fi/LC_MESSAGES/bash.mo 93ecb14eb6818e7ec4d0e71ce8dfb46b 1547713705 |
196 |
+dir /usr/share/locale/hu |
197 |
+dir /usr/share/locale/hu/LC_MESSAGES |
198 |
+obj /usr/share/locale/hu/LC_MESSAGES/bash.mo d894f16d5c3d1df6ee890acd1fb68bdd 1547713705 |
199 |
+dir /usr/share/locale/gl |
200 |
+dir /usr/share/locale/gl/LC_MESSAGES |
201 |
+obj /usr/share/locale/gl/LC_MESSAGES/bash.mo 09bf9ea4c06650fec7297d652d452072 1547713705 |
202 |
+dir /usr/share/locale/zh_CN |
203 |
+dir /usr/share/locale/zh_CN/LC_MESSAGES |
204 |
+obj /usr/share/locale/zh_CN/LC_MESSAGES/bash.mo 982f68ff89ba75cb1a26ee4b1576a77e 1547713706 |
205 |
+dir /usr/share/locale/sk |
206 |
+dir /usr/share/locale/sk/LC_MESSAGES |
207 |
+obj /usr/share/locale/sk/LC_MESSAGES/bash.mo da1a183b7424ed2763e4b57cca9f81c5 1547713705 |
208 |
+dir /usr/share/locale/sr |
209 |
+dir /usr/share/locale/sr/LC_MESSAGES |
210 |
+obj /usr/share/locale/sr/LC_MESSAGES/bash.mo 123101974934c1739603380ff64c34fb 1547713705 |
211 |
+dir /usr/share/locale/nb |
212 |
+dir /usr/share/locale/nb/LC_MESSAGES |
213 |
+obj /usr/share/locale/nb/LC_MESSAGES/bash.mo 63bb59bf3116e89f6a0de715b13bee2d 1547713705 |
214 |
+dir /usr/share/locale/it |
215 |
+dir /usr/share/locale/it/LC_MESSAGES |
216 |
+obj /usr/share/locale/it/LC_MESSAGES/bash.mo e4cd256316092bc484fc7c1643b0642b 1547713705 |
217 |
+dir /usr/share/locale/lt |
218 |
+dir /usr/share/locale/lt/LC_MESSAGES |
219 |
+obj /usr/share/locale/lt/LC_MESSAGES/bash.mo d7f88bb2d27036603108ca63a1242877 1547713705 |
220 |
+dir /usr/share/locale/pl |
221 |
+dir /usr/share/locale/pl/LC_MESSAGES |
222 |
+obj /usr/share/locale/pl/LC_MESSAGES/bash.mo f29f6495aa95493baa76c3db6c44a46b 1547713705 |
223 |
+dir /usr/share/locale/id |
224 |
+dir /usr/share/locale/id/LC_MESSAGES |
225 |
+obj /usr/share/locale/id/LC_MESSAGES/bash.mo 2e3a6b6569e3d63dbee7ccb27369d919 1547713705 |
226 |
+dir /usr/share/locale/ga |
227 |
+dir /usr/share/locale/ga/LC_MESSAGES |
228 |
+obj /usr/share/locale/ga/LC_MESSAGES/bash.mo cba1736115ba3cfca171bd107a5e15c8 1547713705 |
229 |
+dir /usr/share/locale/bg |
230 |
+dir /usr/share/locale/bg/LC_MESSAGES |
231 |
+obj /usr/share/locale/bg/LC_MESSAGES/bash.mo 5fa98a9e7839eaffb678029b63d29ac2 1547713705 |
232 |
+dir /usr/share/locale/en@quot |
233 |
+dir /usr/share/locale/en@quot/LC_MESSAGES |
234 |
+obj /usr/share/locale/en@quot/LC_MESSAGES/bash.mo c52f08684d8c0028e8b85f5e7e68c17d 1547713705 |
235 |
+dir /usr/share/locale/fr |
236 |
+dir /usr/share/locale/fr/LC_MESSAGES |
237 |
+obj /usr/share/locale/fr/LC_MESSAGES/bash.mo c83ca2e7b7f1e26e0ed099f2954d81ca 1547713705 |
238 |
+dir /usr/share/locale/tr |
239 |
+dir /usr/share/locale/tr/LC_MESSAGES |
240 |
+obj /usr/share/locale/tr/LC_MESSAGES/bash.mo 9263814b39d2c82190f73dc8e53873b5 1547713706 |
241 |
+dir /usr/share/locale/eo |
242 |
+dir /usr/share/locale/eo/LC_MESSAGES |
243 |
+obj /usr/share/locale/eo/LC_MESSAGES/bash.mo f73eab965f06f39bebeebea9823dbd65 1547713705 |
244 |
+dir /usr/share/locale/cs |
245 |
+dir /usr/share/locale/cs/LC_MESSAGES |
246 |
+obj /usr/share/locale/cs/LC_MESSAGES/bash.mo 0d37f682297cf2058d299c9a609b1776 1547713705 |
247 |
+dir /usr/share/locale/de |
248 |
+dir /usr/share/locale/de/LC_MESSAGES |
249 |
+obj /usr/share/locale/de/LC_MESSAGES/bash.mo 99ac10426e2a7f53f466132a416c3c74 1547713705 |
250 |
+dir /usr/share/locale/vi |
251 |
+dir /usr/share/locale/vi/LC_MESSAGES |
252 |
+obj /usr/share/locale/vi/LC_MESSAGES/bash.mo f5358a7d46ab199cd60a1092e50ed51a 1547713706 |
253 |
+dir /usr/share/locale/pt_BR |
254 |
+dir /usr/share/locale/pt_BR/LC_MESSAGES |
255 |
+obj /usr/share/locale/pt_BR/LC_MESSAGES/bash.mo e4b8c7f219da7133b54651397ae9492e 1547713705 |
256 |
+dir /usr/share/doc |
257 |
+dir /usr/share/doc/bash-4.4_p23-r1 |
258 |
+obj /usr/share/doc/bash-4.4_p23-r1/CHANGES.bz2 90497d0564cd628e219e573c7e1f91a2 1547713706 |
259 |
+obj /usr/share/doc/bash-4.4_p23-r1/RBASH.bz2 186ce9e929bbdae0610329d2ed8b0866 1547713704 |
260 |
+obj /usr/share/doc/bash-4.4_p23-r1/FAQ.bz2 9e5ccebbf4184a087962fdb7916e0070 1547713705 |
261 |
+obj /usr/share/doc/bash-4.4_p23-r1/POSIX.bz2 b0775619c07d1c1e1499b5e81adf89af 1547713704 |
262 |
+obj /usr/share/doc/bash-4.4_p23-r1/NEWS.bz2 91265b542f03a160da810ceaadea9ba0 1547713706 |
263 |
+dir /usr/share/doc/bash-4.4_p23-r1/html |
264 |
+obj /usr/share/doc/bash-4.4_p23-r1/html/bashref.html f0b4a5de246defd76b7e70e7c0ed1b27 1547713705 |
265 |
+obj /usr/share/doc/bash-4.4_p23-r1/html/bash.html 0f0ac8b9fe84d2b4eea5b70cc22cb1e2 1547713705 |
266 |
+obj /usr/share/doc/bash-4.4_p23-r1/INTRO.bz2 0adb1e98d3ad2a3a012d696ea17e5547 1547713705 |
267 |
+obj /usr/share/doc/bash-4.4_p23-r1/ChangeLog.bz2 18be01005cfbe3a8ec3ade7f826510dc 1547713707 |
268 |
+obj /usr/share/doc/bash-4.4_p23-r1/COMPAT.bz2 98fe32b626a3d32e568f33d6c2cf02c9 1547713704 |
269 |
+obj /usr/share/doc/bash-4.4_p23-r1/AUTHORS.bz2 65f88febe33195919919139655121a7f 1547713706 |
270 |
+obj /usr/share/doc/bash-4.4_p23-r1/README.bz2 c0ca2da4709cedc22e6cd2de6b1e0202 1547713706 |
271 |
+dir /bin |
272 |
+sym /bin/rbash -> bash 1547713706 |
273 |
+obj /bin/bash 2bb7a207ac3295d9c722132e7987969a 1547713709 |
274 |
+dir /etc |
275 |
+dir /etc/skel |
276 |
+obj /etc/skel/.bash_profile d3322040528c46743ea8e4b0b9a186bc 1547713707 |
277 |
+obj /etc/skel/.bashrc d210b9cd7fc07420736480f2062d7d7f 1547713707 |
278 |
+obj /etc/skel/.bash_logout 7d8a8ef90c1818a0cd66808ac2740638 1547713707 |
279 |
+dir /etc/bash |
280 |
+obj /etc/bash/bash_logout 229ccc2980a94877f2e87f957e9da7bf 1547713707 |
281 |
+dir /etc/bash/bashrc.d |
282 |
+obj /etc/bash/bashrc.d/.keep_app-shells_bash-0 d41d8cd98f00b204e9800998ecf8427e 1547713707 |
283 |
+obj /etc/bash/bashrc de46ed8f069d75d6982c5ea2fc8458f4 1547713707 |
284 |
|
285 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/COUNTER b/tests/qfile/root/app-shells/bash-4.4_p23-r1/COUNTER |
286 |
new file mode 100644 |
287 |
index 0000000..69eca71 |
288 |
--- /dev/null |
289 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/COUNTER |
290 |
@@ -0,0 +1 @@ |
291 |
+4119 |
292 |
\ No newline at end of file |
293 |
|
294 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/CXXFLAGS b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CXXFLAGS |
295 |
new file mode 100644 |
296 |
index 0000000..38b744e |
297 |
--- /dev/null |
298 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/CXXFLAGS |
299 |
@@ -0,0 +1 @@ |
300 |
+-O3 -march=native -pipe |
301 |
|
302 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEFINED_PHASES b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEFINED_PHASES |
303 |
new file mode 100644 |
304 |
index 0000000..9b18a45 |
305 |
--- /dev/null |
306 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEFINED_PHASES |
307 |
@@ -0,0 +1 @@ |
308 |
+compile configure install postinst preinst prepare setup unpack |
309 |
|
310 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEPEND b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEPEND |
311 |
new file mode 100644 |
312 |
index 0000000..db51768 |
313 |
--- /dev/null |
314 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DEPEND |
315 |
@@ -0,0 +1 @@ |
316 |
+>=sys-libs/ncurses-5.2-r2:0/6= >=sys-libs/readline-7.0:0/7= virtual/libintl |
317 |
|
318 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/DESCRIPTION b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DESCRIPTION |
319 |
new file mode 100644 |
320 |
index 0000000..570b430 |
321 |
--- /dev/null |
322 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/DESCRIPTION |
323 |
@@ -0,0 +1 @@ |
324 |
+The standard GNU Bourne again shell |
325 |
|
326 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/EAPI b/tests/qfile/root/app-shells/bash-4.4_p23-r1/EAPI |
327 |
new file mode 100644 |
328 |
index 0000000..1e8b314 |
329 |
--- /dev/null |
330 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/EAPI |
331 |
@@ -0,0 +1 @@ |
332 |
+6 |
333 |
|
334 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/FEATURES b/tests/qfile/root/app-shells/bash-4.4_p23-r1/FEATURES |
335 |
new file mode 100644 |
336 |
index 0000000..9095fd6 |
337 |
--- /dev/null |
338 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/FEATURES |
339 |
@@ -0,0 +1 @@ |
340 |
+assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr |
341 |
|
342 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/HOMEPAGE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/HOMEPAGE |
343 |
new file mode 100644 |
344 |
index 0000000..49e53c1 |
345 |
--- /dev/null |
346 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/HOMEPAGE |
347 |
@@ -0,0 +1 @@ |
348 |
+http://tiswww.case.edu/php/chet/bash/bashtop.html |
349 |
|
350 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/INHERITED b/tests/qfile/root/app-shells/bash-4.4_p23-r1/INHERITED |
351 |
new file mode 100644 |
352 |
index 0000000..1d2a251 |
353 |
--- /dev/null |
354 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/INHERITED |
355 |
@@ -0,0 +1 @@ |
356 |
+desktop epatch estack toolchain-funcs multilib ltprune preserve-libs vcs-clean eutils flag-o-matic prefix |
357 |
|
358 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE |
359 |
new file mode 100644 |
360 |
index 0000000..d68e221 |
361 |
--- /dev/null |
362 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE |
363 |
@@ -0,0 +1 @@ |
364 |
+afs bashlogger examples mem-scramble +net nls plugins +readline |
365 |
|
366 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE_EFFECTIVE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE_EFFECTIVE |
367 |
new file mode 100644 |
368 |
index 0000000..5369217 |
369 |
--- /dev/null |
370 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/IUSE_EFFECTIVE |
371 |
@@ -0,0 +1 @@ |
372 |
+abi_x86_64 afs alpha amd64 amd64-fbsd amd64-linux arm arm64 bashlogger elibc_AIX elibc_Cygwin elibc_Darwin elibc_DragonFly elibc_FreeBSD elibc_HPUX elibc_Interix elibc_NetBSD elibc_OpenBSD elibc_SunOS elibc_Winnt elibc_bionic elibc_glibc elibc_mingw elibc_mintlib elibc_musl elibc_uclibc examples hppa ia64 kernel_AIX kernel_Darwin kernel_FreeBSD kernel_HPUX kernel_NetBSD kernel_OpenBSD kernel_SunOS kernel_Winnt kernel_freemint kernel_linux m68k m68k-mint mem-scramble mips net nls plugins ppc ppc-aix ppc-macos ppc64 ppc64-linux prefix prefix-chain prefix-guest readline s390 sh sparc sparc-solaris sparc64-solaris userland_BSD userland_GNU x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt |
373 |
|
374 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/KEYWORDS b/tests/qfile/root/app-shells/bash-4.4_p23-r1/KEYWORDS |
375 |
new file mode 100644 |
376 |
index 0000000..20630e7 |
377 |
--- /dev/null |
378 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/KEYWORDS |
379 |
@@ -0,0 +1 @@ |
380 |
+~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris |
381 |
|
382 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/LDFLAGS b/tests/qfile/root/app-shells/bash-4.4_p23-r1/LDFLAGS |
383 |
new file mode 100644 |
384 |
index 0000000..8c39288 |
385 |
--- /dev/null |
386 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/LDFLAGS |
387 |
@@ -0,0 +1 @@ |
388 |
+-Wl,-O1 -Wl,--as-needed |
389 |
|
390 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/LICENSE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/LICENSE |
391 |
new file mode 100644 |
392 |
index 0000000..c5a7b08 |
393 |
--- /dev/null |
394 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/LICENSE |
395 |
@@ -0,0 +1 @@ |
396 |
+GPL-3 |
397 |
|
398 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED b/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED |
399 |
new file mode 100644 |
400 |
index 0000000..635595a |
401 |
--- /dev/null |
402 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED |
403 |
@@ -0,0 +1 @@ |
404 |
+/bin/bash libreadline.so.7,libc.so.6 |
405 |
|
406 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED.ELF.2 b/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED.ELF.2 |
407 |
new file mode 100644 |
408 |
index 0000000..de3b9b0 |
409 |
--- /dev/null |
410 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/NEEDED.ELF.2 |
411 |
@@ -0,0 +1 @@ |
412 |
+X86_64;/bin/bash;;;libreadline.so.7,libc.so.6;x86_64 |
413 |
|
414 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/PF b/tests/qfile/root/app-shells/bash-4.4_p23-r1/PF |
415 |
new file mode 100644 |
416 |
index 0000000..3fa1e20 |
417 |
--- /dev/null |
418 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/PF |
419 |
@@ -0,0 +1 @@ |
420 |
+bash-4.4_p23-r1 |
421 |
|
422 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/RDEPEND b/tests/qfile/root/app-shells/bash-4.4_p23-r1/RDEPEND |
423 |
new file mode 100644 |
424 |
index 0000000..21dfdf5 |
425 |
--- /dev/null |
426 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/RDEPEND |
427 |
@@ -0,0 +1 @@ |
428 |
+>=sys-libs/ncurses-5.2-r2:0/6= >=sys-libs/readline-7.0:0/7= virtual/libintl !<sys-apps/portage-2.1.6.7_p1 |
429 |
|
430 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/REQUIRES b/tests/qfile/root/app-shells/bash-4.4_p23-r1/REQUIRES |
431 |
new file mode 100644 |
432 |
index 0000000..bb95ab7 |
433 |
--- /dev/null |
434 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/REQUIRES |
435 |
@@ -0,0 +1 @@ |
436 |
+x86_64: libc.so.6 libreadline.so.7 |
437 |
|
438 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/SIZE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/SIZE |
439 |
new file mode 100644 |
440 |
index 0000000..e47062f |
441 |
--- /dev/null |
442 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/SIZE |
443 |
@@ -0,0 +1 @@ |
444 |
+8259979 |
445 |
|
446 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/SLOT b/tests/qfile/root/app-shells/bash-4.4_p23-r1/SLOT |
447 |
new file mode 100644 |
448 |
index 0000000..573541a |
449 |
--- /dev/null |
450 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/SLOT |
451 |
@@ -0,0 +1 @@ |
452 |
+0 |
453 |
|
454 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/USE b/tests/qfile/root/app-shells/bash-4.4_p23-r1/USE |
455 |
new file mode 100644 |
456 |
index 0000000..7a17694 |
457 |
--- /dev/null |
458 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/USE |
459 |
@@ -0,0 +1 @@ |
460 |
+abi_x86_64 amd64 elibc_glibc kernel_linux net nls readline userland_GNU |
461 |
|
462 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/bash-4.4_p23-r1.ebuild b/tests/qfile/root/app-shells/bash-4.4_p23-r1/bash-4.4_p23-r1.ebuild |
463 |
new file mode 100644 |
464 |
index 0000000..2eef8d0 |
465 |
--- /dev/null |
466 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/bash-4.4_p23-r1.ebuild |
467 |
@@ -0,0 +1,260 @@ |
468 |
+# Copyright 1999-2019 Gentoo Authors |
469 |
+# Distributed under the terms of the GNU General Public License v2 |
470 |
+ |
471 |
+EAPI=6 |
472 |
+ |
473 |
+inherit flag-o-matic toolchain-funcs multilib prefix |
474 |
+ |
475 |
+# Official patchlevel |
476 |
+# See ftp://ftp.cwru.edu/pub/bash/bash-4.4-patches/ |
477 |
+PLEVEL=${PV##*_p} |
478 |
+MY_PV=${PV/_p*} |
479 |
+MY_PV=${MY_PV/_/-} |
480 |
+MY_P=${PN}-${MY_PV} |
481 |
+is_release() { |
482 |
+ case ${PV} in |
483 |
+ *_alpha*|*_beta*|*_rc*) return 1 ;; |
484 |
+ *) return 0 ;; |
485 |
+ esac |
486 |
+} |
487 |
+[[ ${PV} != *_p* ]] && PLEVEL=0 |
488 |
+patches() { |
489 |
+ local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}} |
490 |
+ [[ ${plevel} -eq 0 ]] && return 1 |
491 |
+ eval set -- {1..${plevel}} |
492 |
+ set -- $(printf "${pn}${pv/\.}-%03d " "$@") |
493 |
+ if [[ ${opt} == -s ]] ; then |
494 |
+ echo "${@/#/${DISTDIR}/}" |
495 |
+ else |
496 |
+ local u |
497 |
+ for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do |
498 |
+ printf "${u}/${pn}-${pv}-patches/%s " "$@" |
499 |
+ done |
500 |
+ fi |
501 |
+} |
502 |
+ |
503 |
+# The version of readline this bash normally ships with. |
504 |
+READLINE_VER="7.0" |
505 |
+ |
506 |
+DESCRIPTION="The standard GNU Bourne again shell" |
507 |
+HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html" |
508 |
+if is_release ; then |
509 |
+ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" |
510 |
+else |
511 |
+ SRC_URI="ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" |
512 |
+fi |
513 |
+ |
514 |
+LICENSE="GPL-3" |
515 |
+SLOT="0" |
516 |
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
517 |
+IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline" |
518 |
+ |
519 |
+DEPEND=" |
520 |
+ >=sys-libs/ncurses-5.2-r2:0= |
521 |
+ readline? ( >=sys-libs/readline-${READLINE_VER}:0= ) |
522 |
+ nls? ( virtual/libintl ) |
523 |
+" |
524 |
+RDEPEND=" |
525 |
+ ${DEPEND} |
526 |
+ !<sys-apps/portage-2.1.6.7_p1 |
527 |
+" |
528 |
+# we only need yacc when the .y files get patched (bash42-005) |
529 |
+#DEPEND+=" virtual/yacc" |
530 |
+ |
531 |
+S="${WORKDIR}/${MY_P}" |
532 |
+ |
533 |
+pkg_setup() { |
534 |
+ if is-flag -malign-double ; then #7332 |
535 |
+ eerror "Detected bad CFLAGS '-malign-double'. Do not use this" |
536 |
+ eerror "as it breaks LFS (struct stat64) on x86." |
537 |
+ die "remove -malign-double from your CFLAGS mr ricer" |
538 |
+ fi |
539 |
+ if use bashlogger ; then |
540 |
+ ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs." |
541 |
+ ewarn "This will log ALL output you enter into the shell, you have been warned." |
542 |
+ fi |
543 |
+} |
544 |
+ |
545 |
+src_unpack() { |
546 |
+ unpack ${MY_P}.tar.gz |
547 |
+} |
548 |
+ |
549 |
+src_prepare() { |
550 |
+ # Include official patches |
551 |
+ [[ ${PLEVEL} -gt 0 ]] && eapply -p0 $(patches -s) |
552 |
+ |
553 |
+ eapply "${FILESDIR}/${PN}-4.4-jobs_overflow.patch" #644720 |
554 |
+ eapply "${FILESDIR}/${PN}-4.4-set-SHOBJ_STATUS.patch" #644720 |
555 |
+ |
556 |
+ # Clean out local libs so we know we use system ones w/releases. |
557 |
+ if is_release ; then |
558 |
+ rm -rf lib/{readline,termcap}/* |
559 |
+ touch lib/{readline,termcap}/Makefile.in # for config.status |
560 |
+ sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die |
561 |
+ fi |
562 |
+ |
563 |
+ # Prefixify hardcoded path names. No-op for non-prefix. |
564 |
+ hprefixify pathnames.h.in |
565 |
+ |
566 |
+ # Avoid regenerating docs after patches #407985 |
567 |
+ sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die |
568 |
+ touch -r . doc/* |
569 |
+ |
570 |
+ eapply_user |
571 |
+} |
572 |
+ |
573 |
+src_configure() { |
574 |
+ local myconf=( |
575 |
+ --disable-profiling |
576 |
+ --docdir='$(datarootdir)'/doc/${PF} |
577 |
+ --htmldir='$(docdir)/html' |
578 |
+ --with-curses |
579 |
+ $(use_enable mem-scramble) |
580 |
+ $(use_enable net net-redirections) |
581 |
+ $(use_enable readline) |
582 |
+ $(use_enable readline bang-history) |
583 |
+ $(use_enable readline history) |
584 |
+ $(use_with afs) |
585 |
+ $(use_with mem-scramble bash-malloc) |
586 |
+ ) |
587 |
+ |
588 |
+ # For descriptions of these, see config-top.h |
589 |
+ # bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426 |
590 |
+ append-cppflags \ |
591 |
+ -DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \ |
592 |
+ -DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \ |
593 |
+ -DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \ |
594 |
+ -DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \ |
595 |
+ -DNON_INTERACTIVE_LOGIN_SHELLS \ |
596 |
+ -DSSH_SOURCE_BASHRC \ |
597 |
+ $(use bashlogger && echo -DSYSLOG_HISTORY) |
598 |
+ |
599 |
+ # Don't even think about building this statically without |
600 |
+ # reading Bug 7714 first. If you still build it statically, |
601 |
+ # don't come crying to us with bugs ;). |
602 |
+ #use static && export LDFLAGS="${LDFLAGS} -static" |
603 |
+ use nls || myconf+=( --disable-nls ) |
604 |
+ |
605 |
+ # Historically, we always used the builtin readline, but since |
606 |
+ # our handling of SONAME upgrades has gotten much more stable |
607 |
+ # in the PM (and the readline ebuild itself preserves the old |
608 |
+ # libs during upgrades), linking against the system copy should |
609 |
+ # be safe. |
610 |
+ # Exact cached version here doesn't really matter as long as it |
611 |
+ # is at least what's in the DEPEND up above. |
612 |
+ export ac_cv_rl_version=${READLINE_VER%%_*} |
613 |
+ |
614 |
+ # Force linking with system curses ... the bundled termcap lib |
615 |
+ # sucks bad compared to ncurses. For the most part, ncurses |
616 |
+ # is here because readline needs it. But bash itself calls |
617 |
+ # ncurses in one or two small places :(. |
618 |
+ |
619 |
+ if is_release ; then |
620 |
+ # Use system readline only with released versions. |
621 |
+ myconf+=( --with-installed-readline=. ) |
622 |
+ fi |
623 |
+ |
624 |
+ if use plugins; then |
625 |
+ append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash |
626 |
+ else |
627 |
+ # Disable the plugins logic by hand since bash doesn't |
628 |
+ # provide a way of doing it. |
629 |
+ export ac_cv_func_dl{close,open,sym}=no \ |
630 |
+ ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no |
631 |
+ sed -i \ |
632 |
+ -e '/LOCAL_LDFLAGS=/s:-rdynamic::' \ |
633 |
+ configure || die |
634 |
+ fi |
635 |
+ tc-export AR #444070 |
636 |
+ econf "${myconf[@]}" |
637 |
+} |
638 |
+ |
639 |
+src_compile() { |
640 |
+ emake |
641 |
+ |
642 |
+ if use plugins ; then |
643 |
+ emake -C examples/loadables all others |
644 |
+ fi |
645 |
+} |
646 |
+ |
647 |
+src_install() { |
648 |
+ local d f |
649 |
+ |
650 |
+ default |
651 |
+ |
652 |
+ dodir /bin |
653 |
+ mv "${ED%/}"/usr/bin/bash "${ED%/}"/bin/ || die |
654 |
+ dosym bash /bin/rbash |
655 |
+ |
656 |
+ insinto /etc/bash |
657 |
+ doins "${FILESDIR}"/bash_logout |
658 |
+ doins "$(prefixify_ro "${FILESDIR}"/bashrc)" |
659 |
+ keepdir /etc/bash/bashrc.d |
660 |
+ insinto /etc/skel |
661 |
+ for f in bash{_logout,_profile,rc} ; do |
662 |
+ newins "${FILESDIR}"/dot-${f} .${f} |
663 |
+ done |
664 |
+ |
665 |
+ local sed_args=( |
666 |
+ -e "s:#${USERLAND}#@::" |
667 |
+ -e '/#@/d' |
668 |
+ ) |
669 |
+ if ! use readline ; then |
670 |
+ sed_args+=( #432338 |
671 |
+ -e '/^shopt -s histappend/s:^:#:' |
672 |
+ -e 's:use_color=true:use_color=false:' |
673 |
+ ) |
674 |
+ fi |
675 |
+ sed -i \ |
676 |
+ "${sed_args[@]}" \ |
677 |
+ "${ED%/}"/etc/skel/.bashrc \ |
678 |
+ "${ED%/}"/etc/bash/bashrc || die |
679 |
+ |
680 |
+ if use plugins ; then |
681 |
+ exeinto /usr/$(get_libdir)/bash |
682 |
+ doexe $(echo examples/loadables/*.o | sed 's:\.o::g') |
683 |
+ insinto /usr/include/bash-plugins |
684 |
+ doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h} |
685 |
+ fi |
686 |
+ |
687 |
+ if use examples ; then |
688 |
+ for d in examples/{functions,misc,scripts,startup-files} ; do |
689 |
+ exeinto /usr/share/doc/${PF}/${d} |
690 |
+ insinto /usr/share/doc/${PF}/${d} |
691 |
+ for f in ${d}/* ; do |
692 |
+ if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then |
693 |
+ doexe ${f} |
694 |
+ else |
695 |
+ doins ${f} |
696 |
+ fi |
697 |
+ done |
698 |
+ done |
699 |
+ fi |
700 |
+ |
701 |
+ doman doc/*.1 |
702 |
+ newdoc CWRU/changelog ChangeLog |
703 |
+ dosym bash.info /usr/share/info/bashref.info |
704 |
+} |
705 |
+ |
706 |
+pkg_preinst() { |
707 |
+ if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then |
708 |
+ mkdir -p "${EROOT}"/etc/bash |
709 |
+ mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/ |
710 |
+ fi |
711 |
+ |
712 |
+ if [[ -L ${EROOT}/bin/sh ]] ; then |
713 |
+ # rewrite the symlink to ensure that its mtime changes. having /bin/sh |
714 |
+ # missing even temporarily causes a fatal error with paludis. |
715 |
+ local target=$(readlink "${EROOT}"/bin/sh) |
716 |
+ local tmp=$(emktemp "${EROOT}"/bin) |
717 |
+ ln -sf "${target}" "${tmp}" |
718 |
+ mv -f "${tmp}" "${EROOT}"/bin/sh |
719 |
+ fi |
720 |
+} |
721 |
+ |
722 |
+pkg_postinst() { |
723 |
+ # If /bin/sh does not exist, provide it |
724 |
+ if [[ ! -e ${EROOT}/bin/sh ]] ; then |
725 |
+ ln -sf bash "${EROOT}"/bin/sh |
726 |
+ fi |
727 |
+} |
728 |
|
729 |
diff --git a/tests/qfile/root/app-shells/bash-4.4_p23-r1/repository b/tests/qfile/root/app-shells/bash-4.4_p23-r1/repository |
730 |
new file mode 100644 |
731 |
index 0000000..23574f3 |
732 |
--- /dev/null |
733 |
+++ b/tests/qfile/root/app-shells/bash-4.4_p23-r1/repository |
734 |
@@ -0,0 +1 @@ |
735 |
+gentoo |
736 |
|
737 |
diff --git a/tests/qfile/root/bin/bash b/tests/qfile/root/bin/bash |
738 |
new file mode 100644 |
739 |
index 0000000..e69de29 |