Package: ddclient
Version: 3.10.0-2
Severity: normal

Dear Maintainer,

I would like to report a packaging issue affecting ddclient 3.10.0-2 in Debian Bookworm.

When enabling the curl backend, ddclient fails with:

    FATAL: curl not found

This happens even when curl is installed and available at `/usr/bin/curl`.

**Investigation**

I reproduced the issue on a Raspberry Pi running Raspbian Bookworm and subsequently downloaded and inspected the official Debian Bookworm package:

https://deb.debian.org/debian/pool/main/d/ddclient/ddclient_3.10.0-2_all.deb

The installed `/usr/bin/ddclient` contains the following expression (line 2589):

    my $system_curl = quotemeta(subst_var('', 'curl'));

However, the original upstream source at tag `v3.10.0` contains:

    my $system_curl = quotemeta(subst_var('@CURL@', 'curl'));

The `subst_var()` function only falls back to its second argument when the first argument matches an unsubstituted placeholder of the form `@NAME@`.

Consequently, an empty first argument remains empty, and ddclient terminates with `FATAL: curl not found`.

**Likely root cause**

The upstream `configure.ac` for v3.10.0 contains:

    AC_PATH_PROG([CURL], [curl])

However, the Debian packaging at tag `debian/3.10.0-2` does not declare curl in either `Build-Depends` or `Build-Depends-Indep`.

It therefore appears that curl was unavailable during the package build, causing `@CURL@` to be substituted with an empty string.

This explanation is consistent with the resulting binary package, although I have not inspected the original build logs.

**Workaround tested successfully**

Replacing the expression with:

    my $system_curl = quotemeta(subst_var('@CURL@', 'curl'));

restores the fallback to `curl`.

After applying this change, ddclient successfully invokes curl and retrieves the public IPv4 address from the configured IP detection service.

The same failure was reproduced in the unmodified package, so this is not merely a configuration or PATH issue.

**Existing fix in newer Debian releases**

I also examined the Debian packaging history.

Commit `7c9048fa850b29a0c37c192dc786f5d20984ca59`, introducing ddclient 3.11.2, adds curl to both the build and runtime dependencies:

https://salsa.debian.org/debian/ddclient/-/commit/7c9048fa850b29a0c37c192dc786f5d20984ca59

The earlier package sponsorship discussion also explicitly mentions adding the curl build dependency to enable the `-curl` argument:

https://bugs.debian.org/1066079

Therefore, this issue appears to have been addressed in newer Debian releases, but the Bookworm package remains affected.

**Suggested resolution**

Would it be possible to provide a targeted fix for Debian Bookworm?

A minimal packaging fix would be to add curl to `Build-Depends-Indep` and rebuild the package, ensuring that `@CURL@` is substituted with a valid executable path.

Adding curl as a runtime dependency, or otherwise ensuring that it is available when the curl backend is selected, would also be appropriate.

Thank you for maintaining ddclient.

Best regards

Reply via email to