Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641694 - net-dns/bind should set REQUIRED_USE="mysql? ( !threads )"
Summary: net-dns/bind should set REQUIRED_USE="mysql? ( !threads )"
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
: 701710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-19 10:20 UTC by dE
Modified: 2020-08-24 19:43 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2017-12-19 10:20:29 UTC
The fact that multiple instances of bind can run on a single system (on different interfaces) with different configurations and the fact that mysql+threads+dlz can be build and used, but when using mysql, bind has be configured to spawn just 1 thread created a use case of removing constrain mysql? ( !threads ).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-22 16:14:29 UTC
Instead of condensing the problem description into one tight little ball, you should expand it into multiple sentences and provide some steps to reproduce the problem.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-02 07:41:57 UTC
*** Bug 701710 has been marked as a duplicate of this bug. ***
Comment 3 Marcel Greter 2019-12-02 09:51:59 UTC
My bug report at https://bugs.gentoo.org/701710 has been marked as duplicate of this bug, but it seems the context has slightly changed during the last two years when this was originally reported. With "bind-9.14.8" (the lowest version currently in portage) I no longer see any "threads" use flag, but I can see that I indeed have USE="-threads" in my portage.use files, so it seems the removal of that flag from bind has actually triggered my problems in the first place.

For reproduction and more details please check my original bug report. IMHO a warning during `pkg_postinst` could help a lot here, since in order to try to fix it I re-emerged bind multiple times ...
Comment 4 Marcel Greter 2019-12-02 10:08:24 UTC
BTW. the bug reported here is basically solved/no longer present. It seems USE="-threads" was enforced in the past when USE="mysql" was detected. OP correctly points out that it might still be valid to build a multi-threaded bind even with mysql enabled, since it can be that you end up running multiple bind instances, where only one needs to be single-threaded (via CPU="1" or options="-n 1"). IMO the problem is now exactly the opposite, since it is no longer enforced and users might not be aware of this limitation. And for anyone who used `USE="-treads"` in the past will run into this pitfall again once they upgrade.

After digging into all this, I more and more believe that a warning during post_inst and maybe additionally a comment in conf.d/named (maybe right beside the `rc_named_use="mysql"` part) seems to be the most sane solution to this problem.