Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630416 - [Future EAPI] Ban dolib and libopts
Summary: [Future EAPI] Ban dolib and libopts
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
Whiteboard: in-eapi-7
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2017-09-08 19:12 UTC by Ulrich Müller
Modified: 2018-04-30 22:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2017-09-08 19:12:27 UTC
As posted to gentoo-dev:

I suggest that we ban the dolib and libopts commands in EAPI 7.

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 for correct mode).
2. libopts affects only dolib, while the more special commands dolib.a
   and 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.

Use dolib.a or instead.
Comment 1 Larry the Git Cow gentoo-dev 2018-03-04 21:04:53 UTC
The bug has been referenced in the following commit(s):

commit 04a8eba03539b6e401022aee3aacf1fde3a8eeca
Author:     Michał Górny <>
AuthorDate: 2017-09-21 14:43:29 +0000
Commit:     Michał Górny <>
CommitDate: 2018-03-04 21:03:53 +0000

    Ban dolib/libopts for EAPI 7

 bin/                 | 4 ++++
 bin/ebuild-helpers/dolib    | 7 ++++++-
 bin/ebuild-helpers/dolib.a  | 4 ++--
 bin/ebuild-helpers/ | 4 ++--
 bin/        | 6 +++++-
 5 files changed, 19 insertions(+), 6 deletions(-)}
Comment 2 Larry the Git Cow gentoo-dev 2018-04-30 22:14:17 UTC
The bug has been referenced in the following commit(s):

commit a2634ccb6f5dfb323f1bbddcb8c9296b7a4d28f3
Author:     Michał Górny <>
AuthorDate: 2017-09-29 14:02:49 +0000
Commit:     Ulrich Müller <>
CommitDate: 2018-03-31 15:30:43 +0000

    EAPI 7 bans dolib and libopts.

 eapi-differences.tex |  7 +++++++
 pkg-mgr-commands.tex | 22 ++++++++++++++--------
 2 files changed, 21 insertions(+), 8 deletions(-)}