1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA512 |
3 |
|
4 |
Mart Raudsepp: |
5 |
> Ühel kenal päeval, K, 18.05.2016 kell 22:25, kirjutas |
6 |
> aidecoe@g.o: |
7 |
>> From: Amadeusz Żołnowski <aidecoe@g.o> |
8 |
>> |
9 |
>> awk doesn't have the -i option like sed and if editing file in |
10 |
>> place is desired, additional steps are required. eawk uses tmp |
11 |
>> file to make it look to the caller editing happens in place. --- |
12 |
>> eclass/eutils.eclass | 13 +++++++++++++ 1 file changed, 13 |
13 |
>> insertions(+) |
14 |
>> |
15 |
>> diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index |
16 |
>> dbedffe..e331f1b 100644 --- a/eclass/eutils.eclass +++ |
17 |
>> b/eclass/eutils.eclass @@ -20,6 +20,19 @@ _EUTILS_ECLASS=1 |
18 |
>> |
19 |
>> inherit multilib toolchain-funcs |
20 |
>> |
21 |
>> +# @FUNCTION: eawk +# @USAGE: <file> <args> +# @DESCRIPTION: +# |
22 |
>> Edit file <file> in place with awk. Pass all arguments following |
23 |
>> <file> to +# awk. |
24 |
>> |
25 |
> |
26 |
> I would like if such a function would explicitly document that |
27 |
> calling this function means the caller should DEPEND on an awk |
28 |
> provider. Similarly, I would like that all ebuild that call 'sed' |
29 |
> actually DEPEND on sed, not just half of them. |
30 |
|
31 |
According to PMS, sed is guaranteed to be present[0]. |
32 |
|
33 |
> I would also like that no ebuild would assume packages in @system |
34 |
> to be present, beyond those dictated by PMS (unpackers and such). |
35 |
> |
36 |
Quoting PMS [1]: |
37 |
|
38 |
"[...] in most cases this means that the only packages that can be |
39 |
assumed to be present are those listed in the base profile or |
40 |
equivalent [...]" |
41 |
|
42 |
Implicit system dependencies are documented in devmanual as well. May |
43 |
I ask why you are against it? |
44 |
|
45 |
> Mart |
46 |
> |
47 |
|
48 |
[0] https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-12700011.3.1.1 |
49 |
[1] https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-12600011.3.1 |
50 |
-----BEGIN PGP SIGNATURE----- |
51 |
|
52 |
iQEcBAEBCgAGBQJXPkxQAAoJEIT4AuXAiM4zH/gH/2KJIdAbL1x8TfvWIeOnjQ4E |
53 |
IatAXY9DentQgGVFHU+bwOj+bdgMfaU3QACjDAD/GOPYTwrOSlHD2dK7spkou7RS |
54 |
VY3voejyvK1tHASooMvEaaH8VQ9HMe82JDS64YTfxMLFb8FcwJOYde3plVSFPArA |
55 |
UGhNCzEpgMJBkd89lS/BsmtHqS0czuAO+VJdVttMo1EyW8CR1s6ou+FVzymgJM/+ |
56 |
P8Zg6eVIcyJOQqQcnpRbDPvSw2lGNP7BofZjFng578DNz3F1LAtdBFBujNNT3kUW |
57 |
FgbifW7Y53hnx3nYjjBigBp8ERm3HuhDXQiQMNEOsFlfIWKarp4017NC8BmH9i4= |
58 |
=jHCS |
59 |
-----END PGP SIGNATURE----- |