Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909739 - net-dns/resolvconf-symlink: installing the package breaks DNS resolving (missing dep on networkmanager[resolvconf]?)
Summary: net-dns/resolvconf-symlink: installing the package breaks DNS resolving (miss...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-05 18:45 UTC by jannis
Modified: 2023-07-13 14:06 UTC (History)
1 user (show)

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


Attachments
emerge --info (einfo,29.32 KB, text/plain)
2023-07-05 18:56 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2023-07-05 18:45:27 UTC
I installed net-dns/resolvconf-symlink which probably replaced my /etc/resolv.conf with a symlink to /var/run/resolv.conf
After a unlucky reboot (laptop battery died), the system failed to resolve hostnames via DNS. The symlink was not working since /var/run/resolv.conf did not exist.
I'm using net-misc/networkmanager-1.42.6-r1 with USE="-resolvconf". Should net-dns/resolvconf-symlink depend on +resolvconf ?

Reproducible: Always
Comment 1 jannis 2023-07-05 18:53:17 UTC
Here's the dependency tree (why did resolvconf-symlink to emerged?):

momo ~ # equery d net-dns/resolvconf-symlink
 * These packages depend on net-dns/resolvconf-symlink:
net-dns/openresolv-3.13.2 (net-dns/resolvconf-symlink)
momo ~ # equery d net-dns/openresolv
 * These packages depend on net-dns/openresolv:
virtual/resolvconf-1 (net-dns/openresolv)
momo ~ # equery d virtual/resolvconf
 * These packages depend on virtual/resolvconf:
net-misc/networkmanager-1.42.6-r1 (resolvconf ? virtual/resolvconf)
net-vpn/wireguard-tools-1.0.20210914 (virtual/resolvconf)
net-wireless/iwd-2.6 (!systemd ? virtual/resolvconf)


net-vpn/wireguard-tools is part of my @world
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-05 18:53:39 UTC
Please run emerge -pvc net-dns/resolvconf-symlink.
Comment 3 jannis 2023-07-05 18:56:06 UTC
Created attachment 865164 [details]
emerge --info
Comment 4 jannis 2023-07-05 18:56:57 UTC
(In reply to Sam James from comment #2)
> Please run emerge -pvc net-dns/resolvconf-symlink.

kripton@momo ~ $ emerge -pvc net-dns/resolvconf-symlink

Calculating dependencies... done!
  net-dns/resolvconf-symlink-0 pulled in by:
    net-dns/openresolv-3.13.2 requires net-dns/resolvconf-symlink

>>> No packages selected for removal by depclean
Packages installed:   3054
Packages in world:    417
Packages in system:   48
Required packages:    3054
Number to remove:     0
Comment 5 jannis 2023-07-05 23:43:23 UTC
kripton@momo ~ $ emerge -pvc net-dns/resolvconf-symlink net-dns/openresolv virtual/resolvconf

Calculating dependencies... done!
  net-dns/openresolv-3.13.2 pulled in by:
    virtual/resolvconf-1 requires net-dns/openresolv

  net-dns/resolvconf-symlink-0 pulled in by:
    net-dns/openresolv-3.13.2 requires net-dns/resolvconf-symlink

  virtual/resolvconf-1 pulled in by:
    net-vpn/wireguard-tools-1.0.20210914 requires =virtual/resolvconf-1, virtual/resolvconf
    net-wireless/iwd-2.6 requires virtual/resolvconf, =virtual/resolvconf-1

>>> No packages selected for removal by depclean
Packages installed:   3054
Packages in world:    417
Packages in system:   48
Required packages:    3054
Number to remove:     0
Comment 6 Ben Kohler gentoo-dev 2023-07-13 14:06:47 UTC
If I understand this right, you are saying that if resolvconf-symlink is installed, it will break NetworkManager usage unless USE=resolvconf is set on net-misc/networkmanager?

Maybe we could solve this with a blocker on one side or the other?