[MacPorts] #51599: main.log is never deleted with "keeplogs yes"
MacPorts
noreply at macports.org
Tue Apr 3 02:59:16 UTC 2018
#51599: main.log is never deleted with "keeplogs yes"
-------------------------+--------------------------------
Reporter: ryandesign | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.99
Resolution: | Keywords:
Port: |
-------------------------+--------------------------------
Comment (by raimue):
Truncating is a bad idea. If you run `port configure` and then `port
build` in separate port commands, the configure output will be gone.
Let me propose the following:
Put the log file into `${workpath}/logs/main.log`, so it is automatically
cleaned with the rest of the work directory. This simplifies the log file
handling as we can always append to it until it is cleaned. If `keeplogs`
is set, before cleaning, the log file will be moved to
`${prefix}/var/macports/logs/YYYY-MM-DD_HH-mm-ss_main.log`, based on the
mtime of the `main.log`. An explicit `sudo port clean --logs` would delete
these archived log files.
--
Ticket URL: <https://trac.macports.org/ticket/51599#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list