Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 380413

Summary: net-dns/openresolv: please PDEP on net-dns/resolvconf-symlink
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Ben Kohler <bkohler>
Status: RESOLVED FIXED    
Severity: enhancement CC: alonbl, jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 831409    
Bug Blocks:    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-23 20:25:08 UTC
As we discussed earlier, it'd be a good idea for openresolv to keep the actual resolv.conf in a runtime-writable directory rather than /etc.

net-dns/resolvconf-symlink is the ebuild doing the symlinking. If you don't mind adding it as PDEP of openresolv, please ping me and I'll file a KEYWORDREQ for it.
Comment 1 Andrea Cerisara 2020-09-05 22:42:44 UTC
`net-dns/resolvconf-symlink` only supports `~amd64 ~x86`, while `openresolv` supports `~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86`, not sure what to do in this case.

Ebuild would be ready to go once we sort out the keywords mismatch.
Comment 2 Jonas Stein gentoo-dev 2020-11-15 12:14:30 UTC
please join IRC #gentoo-proxy-maint and #gentoo-dev-help we can help you there.
We can not discuss here.
Comment 3 Ben Kohler gentoo-dev 2021-03-24 16:54:53 UTC
Let's move forward with this, we can add the PDEPEND.  Are any other openresolv ebuild changes needed?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-22 04:03:03 UTC
(In reply to Ben Kohler from comment #3)
> Let's move forward with this, we can add the PDEPEND.  Are any other
> openresolv ebuild changes needed?

go for it, I think
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 07:44:33 UTC
Keywording of resolvconf-symlink done.
Comment 6 Larry the Git Cow gentoo-dev 2023-06-07 12:48:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c506369bad3e8a15f2f06596d30c400cb013f2c7

commit c506369bad3e8a15f2f06596d30c400cb013f2c7
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2023-06-06 15:12:34 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-06-07 12:48:07 +0000

    net-dns/openresolv: add PDEPEND on resolvconf-symlink
    
    Closes: https://bugs.gentoo.org/380413
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-dns/openresolv/openresolv-3.13.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 7 Anna Tikhomirova 2023-06-24 19:43:38 UTC
1) This breaks installation of openresolv. Openresolv pulls in resolvconf-symlink as a dependency, and resolvconf-symlink fails to install with the following message: "/etc/resolv.conf seems not to be autogenerated. Aborting build to avoid removing user data. If that file is supposed to be autogenerated, please remove it manually. Otherwise, please set USE=-symlink to avoid installing resolv.conf symlink."
2) Even if resolvconf-symlink is successfully installed, it actually doesn't work.
After installation: /etc/resolv.conf is a symlink to /var/run/resolv.conf
After a reboot: /etc/resolv.conf is a regular file again.