Opened 20 months ago

Last modified 20 months ago

#67113 assigned defect

clamav-server: missing file

Reported by: papadil Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: clamav-server

Description (last modified by jmroot (Joshua Root))

When installing clamav-server I get the following error:

--->  Patching org.macports.clamd.plist: s|^<key>ProgramArguments</key>|<key>UserName</key><string>root</string>\
<key>GroupName</key><string>_clamav</string>\
&|
Error: reinplace: couldn't read file "/opt/local/etc/LaunchDaemons/org.macports.clamd/org.macports.clamd.plist": no such file or directory
Error: Failed to activate clamav-server: reinplace sed(1) failed

The installation failed to create the org.macports.clamd directory in /opt/local/etc and copy the plist file there.

Change History (6)

comment:1 Changed 20 months ago by jmroot (Joshua Root)

Cc: s.t.smith@… removed
Description: modified (diff)
Keywords: clamav removed
Owner: set to essandess
Status: newassigned

comment:2 Changed 20 months ago by essandess (Steve Smith)

I do not observe this issue:

sudo port -s install clamav-server
port provides /opt/local/etc/LaunchDaemons/org.macports.clamd/org.macports.clamd.plist
sudo port -s destroot clamav-server
ls /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-server/work/destroot/opt/local/etc/LaunchDaemons/org.macports.clamd/org.macports.clamd.plist
sudo port clean --all clamav-server

I'd recommend doing a clean --all and trying again. If it fails agin, please post logs. This plist creation is handled by startupitems , so it's pretty hard to mess up.

comment:3 Changed 20 months ago by jmroot (Joshua Root)

The Portfile doesn't appear to handle the case where startupitem_type is set to none. But of course that isn't a very useful setting to use if you want to use this particular port.

comment:4 Changed 20 months ago by papadil

Good catch there - that was my issue. I set it to none as I do not want ports to add startup items willy-nilly. Changed it to default and startup_install to yes and it worked. Apologies for the noise.

comment:5 Changed 20 months ago by papadil

Spoke too soon, for whatever reason it did not create symlinks in /opt/local/etc. They are in subdirectories. Perhaps there is something else I should have set??

comment:6 Changed 20 months ago by papadil

Meant to say "/opt/local/etc/LaunchDaemons" above.

Note: See TracTickets for help on using tickets.