Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#53956 closed defect (fixed)

ddclient 3.8.3: cache directory not created

Reported by: rbubley Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ddclient

Description (last modified by mf2k (Frank Schima))

port file should create the directory:

/opt/local/var/cache/ddclient/

Otherwise we will perpetually (and unnecessarily) update the dns entry.

Change History (7)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Owner: set to nerdling
Port: ddclient added
Status: newassigned

In the future, please use WikiFormatting, fill in the Port field and Cc the port maintainers (port info --maintainers ddclient), if any.

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 5 years ago by nerdling (Jeremy Lavergne)

Status: assignedaccepted

Looks like destroot.keepdirs doesn't do what was expected (creating the dir for us).

comment:4 Changed 5 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: acceptedclosed

In e9d6a27ff06b2fed91b09d01e2112cd6d8bd61f2/macports-ports (master):

ddclient: ensure cache dir exists

Fixes #53956

comment:5 in reply to:  3 ; Changed 5 years ago by jmroot (Joshua Root)

Replying to nerdling:

Looks like destroot.keepdirs doesn't do what was expected (creating the dir for us).

It prevents the dir from being deleted due to being empty.

comment:6 in reply to:  5 Changed 5 years ago by nerdling (Jeremy Lavergne)

Replying to jmroot:

It prevents the dir from being deleted due to being empty.

To me, that implies that the kept, empty destroot dir would then become part of the install—it seemingly did not.

comment:7 Changed 5 years ago by raimue (Rainer Müller)

destroot.keepdirs should create the directory if it does not exist and will add a dummy .turd_${subport} file to protect it against deletion. If the functionality is not working as expected, we should file this as a bug against base.

For reference, the current implementation of this logic is here: https://github.com/macports/macports-base/blob/v2.6.2/src/port1.0/portdestroot.tcl#L176-L189

Note: See TracTickets for help on using tickets.