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: | new → assigned |
comment:2 Changed 20 months ago by essandess (Steve Smith)
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??
I do not observe this issue:
I'd recommend doing a
clean --all
and trying again. If it fails agin, please post logs. This plist creation is handled bystartupitems
, so it's pretty hard to mess up.