[MacPorts] #59672: Set SOURCE_DATE_EPOCH
MacPorts
noreply at macports.org
Fri May 26 06:17:57 UTC 2023
#59672: Set SOURCE_DATE_EPOCH
--------------------------+----------------------
Reporter: ryandesign | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords: haspatch
Port: |
--------------------------+----------------------
Changes (by ryandesign):
* keywords: => haspatch
Comment:
Replying to [comment:6 tenzap]:
> do you think setting this variable can be managed directly in the tool
that calls the various phases of the portfile. This would make
SOURCE_DATE_EPOCH available for every port ?
What "tool" do you mean? The phases are run by MacPorts base. I am
proposing that MacPorts base should set `SOURCE_DATE_EPOCH` in all phases
of all ports.
Haren has provided a PR implementing this:
https://github.com/macports/macports-base/pull/274
> May I suggest to add the revision number of the port (the value in the
Portfile) to the timestamp in SOURCE_DATE_EPOCH? This would be like adding
a few seconds to it and permit to represent in SOURCE_DATE_EPOCH that the
Portfile changed. This is sort of analogous to the way debian does it
(Debian uses the timestamp of the debian/changelog file).
I don't know if that's a good idea. I don't see anything recommending
doing that in the documentation link I posted at the top. I am not
familiar with what Debian does or why it does it.
--
Ticket URL: <https://trac.macports.org/ticket/59672#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list