1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
Hey all -- so with Zac's help I've got a script now that will |
5 |
significantly speed up testing of EAPI=4-slot-abi from my ('axs') overlay. |
6 |
|
7 |
The script upgrades your system's portage db (/var/db/pkg) so that any |
8 |
EAPI=4 atoms currently installed will be upgraded to their |
9 |
EAPI=4-slot-abi equivalents in the overlay (if they exist). This is |
10 |
relatively safe as 4-slot-abi is a direct superset of EAPI=4 and so |
11 |
pkg_{pre,post}rm should not be negatively affected. |
12 |
|
13 |
The script is bash, using grep, sed and awk heavily; it's not pretty, |
14 |
but it works. The tricky bit is re-working *DEPEND entries, as they |
15 |
first need to reflect the updated ebuild (the vast majority of these |
16 |
changes is the addition of slots and/or slot-operators; i'm trying to |
17 |
keep all other deps the same as what's in the tree's version of the |
18 |
ebuild), and then determine each dependency's new SLOT (and sub-slot) |
19 |
so that it can be substituted into the slot-operator part of the |
20 |
*DEPEND atom. If I knew python well enough, I could've written |
21 |
something that uses portage-9999's own internals for this, but i don't |
22 |
so i didn't. If anyone's bored and wants to re-write/make a new vdb |
23 |
update script in python, i'd be more than happy to put it on the overlay! |
24 |
|
25 |
I've opened bug 424429 to help track 4-slot-abi issues as well as |
26 |
issues with my overlay in general. Please do not file separate bugs. |
27 |
|
28 |
Ian |
29 |
-----BEGIN PGP SIGNATURE----- |
30 |
Version: GnuPG v2.0.19 (GNU/Linux) |
31 |
|
32 |
iF4EAREIAAYFAk/wkGgACgkQ2ugaI38ACPBxGwD8C6oNk8CdQeLsfGJe2bK48UH/ |
33 |
A5aCVbDeBFFxrCjqBqABAJXsf/4sdLKnAj56j3CUukvu5RR5TRXw6U8V0h+a16We |
34 |
=yIP+ |
35 |
-----END PGP SIGNATURE----- |