As posted to gentoo-dev: I suggest that we ban the dolib and libopts commands in EAPI 7. Rationale: 1. There are about 60 instances of dolib in the tree. At least one third of them appears to be wrong (e.g., should be replaced by dolib.so for correct mode). 2. libopts affects only dolib, while the more special commands dolib.a and dolib.so install libraries with fixed modes 0644 and 0755, respectively. (The latter is also consistent with dobin installing with fixed mode 0755, i.e., there is no binopts command.) 3. There is no newlib command corresponding to dolib, whereas newlib.{a,so} commands exist. 4. libopts is not used at all in the tree, which strongly indicates that there is no need for it. Replacement: Use dolib.a or dolib.so instead.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=04a8eba03539b6e401022aee3aacf1fde3a8eeca commit 04a8eba03539b6e401022aee3aacf1fde3a8eeca Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-09-21 14:43:29 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-03-04 21:03:53 +0000 Ban dolib/libopts for EAPI 7 Bug: https://bugs.gentoo.org/630416 bin/eapi.sh | 4 ++++ bin/ebuild-helpers/dolib | 7 ++++++- bin/ebuild-helpers/dolib.a | 4 ++-- bin/ebuild-helpers/dolib.so | 4 ++-- bin/phase-helpers.sh | 6 +++++- 5 files changed, 19 insertions(+), 6 deletions(-)}
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pms.git/commit/?id=a2634ccb6f5dfb323f1bbddcb8c9296b7a4d28f3 commit a2634ccb6f5dfb323f1bbddcb8c9296b7a4d28f3 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-09-29 14:02:49 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-03-31 15:30:43 +0000 EAPI 7 bans dolib and libopts. Bug: https://bugs.gentoo.org/630416 eapi-differences.tex | 7 +++++++ pkg-mgr-commands.tex | 22 ++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-)}