Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843455 - dev-libs/tre warns about agrep conflict even with USE=-agrep
Summary: dev-libs/tre warns about agrep conflict even with USE=-agrep
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Shell Tools project
Keywords: PullRequest
Depends on:
Reported: 2022-05-09 19:43 UTC by Jaak Ristioja
Modified: 2023-01-15 14:57 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 Jaak Ristioja 2022-05-09 19:43:02 UTC
pkg_postinst() prints a warning about potential agrep incompatibilites with app-misc/glimpse or app-text/agrep, even when USE=-agrep is given. Instead, this warning should only be output when emerging with USE=agrep.
Comment 1 Zdravko Spoljar 2022-05-10 15:49:25 UTC
# USE="-agrep" emerge -pv dev-libs/tre agrep

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/tre-0.8.0_p20210321::gentoo  USE="alloca approx nls -agrep* -debug -profile -python" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
[ebuild  N     ] app-text/agrep-2.04-r2::gentoo  0 KiB
[blocks B      ] dev-libs/tre ("dev-libs/tre" is soft blocking app-text/agrep-2.04-r2)

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-libs/tre-0.8.0_p20210321:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-libs/tre-0.8.0_p20210321[approx] required by (dev-lang/R-4.1.2-r1:0/0::gentoo, installed) USE="X cairo jpeg nls openmp perl png readline tiff -doc -icu -java -lapack -lto -minimal (-prefix) -profile -test -tk"
Comment 2 Jaak Ristioja 2022-05-10 18:56:22 UTC
(In reply to Zdravko Spoljar from comment #1)
> [blocks B      ] dev-libs/tre ("dev-libs/tre" is soft blocking
> app-text/agrep-2.04-r2)

This issue is not directly related, but it seems to be caused by app-text/agrep-2.04-r2 blocking dev-libs/tre instead of dev-libs/tre[agrep], i.e. it blocks tre regardless of the agrep USE-flag.
Comment 3 Jaak Ristioja 2022-05-10 19:08:12 UTC
Actually, a better solution might be to just drop the warning altogether and just fix the RDEPENDS of all packages providing agrep. On one hand the warning serves no purpose when the user does not install conflicting packages. On the other hand, the blockers in RDEPEND should prevent the user from installing the conflicting packages and cause portage to output an error to the user.
Comment 4 Larry the Git Cow gentoo-dev 2023-01-15 14:57:07 UTC
The bug has been closed via the following commit(s):

commit 40c99622a7abcc5a68dfba84cfd6586c42238ff1
Author:     Joe Kappus <>
AuthorDate: 2023-01-12 02:19:43 +0000
Commit:     Sam James <>
CommitDate: 2023-01-15 14:56:59 +0000

    dev-libs/tre: enable py3.11, cleanups
    Cleaned up, enabled py3.11, PEP517.
    Signed-off-by: Joe Kappus <>
    Signed-off-by: Sam James <>

 dev-libs/tre/tre-0.8.0_p20210321-r2.ebuild | 106 +++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)