Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] New SYMLINK_LIB=no migration tool for review
Date: Wed, 02 Aug 2017 15:59:06
1 Hi, everyone.
3 I've finally gotten around to writing a new tool for migrating amd64
4 systems to SYMLINK_LIB=no layout [1]. I've put it in symlink-lib-
5 migration [2] repository along with a README. Please review it and give
6 it more testing.
8 The tool has a few advantages over the one attached to the bug. Most
9 notably:
11 1. It runs in three-stage semi-automatic mode. This gives the user
12 an explicit opportunity to verify the action plan for any obvious
13 mistakes, and to test a temporary '' layout to confirm that
14 the migration won't break anything before it's final.
16 2. It supports a mid-migration rollback -- if '' layout breaks
17 stuff, the user runs './ --rollback' and he's back home.
19 3. It works on top-directory level whenever possible. The stuff destined
20 for /usr/lib is moved correctly along with any user-created files. When
21 a top-directory is split between lib+lib64, all files except for those
22 explicitly destined for lib64 land in lib (arbitrary decision).
24 4. It does not reinvent the wheel poorly to copy files. Instead, it
25 calls 'cp -a --reflink=auto ...' to guarantee that everything will be
26 preserved correctly.
28 5. It does not reinvent the wheel to parse vdb. Instead, it uses
29 the Portage API to get installed file list. Portage is only required
30 during the initial analysis phase, and the actual migration/rollback can
31 be done without it (or with it being broken).
33 I've limited the scope of the tool to do the filesystem manipulation.
34 Afterwards, it tells user to update the profile or adjust make.conf,
35 and to rebuild all the packages.
37 What are your thoughts?
40 [1]:
41 [2]:
43 --
44 Best regards,
45 Michał Górny


File name MIME type
signature.asc application/pgp-signature


Subject Author
[gentoo-dev] Re: New SYMLINK_LIB=no migration tool for review Martin Vaeth <martin@×××××.de>
Re: [gentoo-dev] New SYMLINK_LIB=no migration tool for review Gerogy Yakovlev <ya@×××××××.net>
Re: [gentoo-dev] New SYMLINK_LIB=no migration tool for review "Michał Górny" <mgorny@g.o>