Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876628 - net-dns/ddclient-3.10.0_rc2: emerge failure
Summary: net-dns/ddclient-3.10.0_rc2: emerge failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-10 21:23 UTC by Ștefan Talpalaru
Modified: 2022-10-10 22:05 UTC (History)
1 user (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 Ștefan Talpalaru 2022-10-10 21:23:20 UTC
* Messages for package net-dns/ddclient-3.10.0_rc2:

 * FAILED postinst: 1
 * ERROR: net-dns/ddclient-3.10.0_rc2::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 122:  Called pkg_postinst
 *   environment, line 1823:  Called die
 * The specific snippet of code:
 *                   cp /etc/ddclient/ddclient.conf /etc/ddclient.conf || die;
 * 
 * If you need support, post the output of `emerge --info '=net-dns/ddclient-3.10.0_rc2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-dns/ddclient-3.10.0_rc2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-dns/ddclient-3.10.0_rc2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dns/ddclient-3.10.0_rc2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-dns/ddclient-3.10.0_rc2/empty'
 * S: '/var/tmp/portage/net-dns/ddclient-3.10.0_rc2/work/ddclient-3.10.0_2'


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-10 21:32:52 UTC
We need to check if ddclient.conf exists before moving it.

But we should also avoid keywording RCs unless carefully considered.
Comment 2 Conrad Kostecki gentoo-dev 2022-10-10 21:55:48 UTC
The question is, why is /etc/ddclient/ddclient.conf not present? It's default installed by 3.9.x.

> We need to check if ddclient.conf exists before moving it.

Yeah, makes sense.

> But we should also avoid keywording RCs unless carefully considered.

I don't see any problems here. Using it now for month locally.
Comment 3 Larry the Git Cow gentoo-dev 2022-10-10 22:01:30 UTC
The bug has been closed via the following commit(s):

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

commit 50ff065438d63596d5651ac0b5c36adbdc9b5d1b
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-10-10 21:58:02 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-10-10 22:00:52 +0000

    net-dns/ddclient: add exist check for config
    
    Check, if old config exists before migrating it.
    
    Closes: https://bugs.gentoo.org/876628
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 net-dns/ddclient/ddclient-3.10.0_rc2.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Comment 4 Ștefan Talpalaru 2022-10-10 22:05:18 UTC
(In reply to Conrad Kostecki from comment #2)
> The question is, why is /etc/ddclient/ddclient.conf not present? It's
> default installed by 3.9.x.

I think the problem is with the version check: "if ver_test "${v}" -lt 3.10.0; then"

If "3.10.0_rc2" is considered lower than "3.10.0", reinstalling the latest version triggers the problem.

List of version modifier precedence: https://devmanual.gentoo.org/ebuild-writing/file-format/index.html#file-naming-rules