Page MenuHomeFreeBSD

Record TIMESTAMP in `make makesum`
ClosedPublic

Authored by emaste on Apr 20 2016, 7:05 PM.
Tags
None
Referenced Files
F81972930: D6031.diff
Tue, Apr 23, 11:04 PM
Unknown Object (File)
Feb 20 2024, 3:23 AM
Unknown Object (File)
Feb 20 2024, 3:22 AM
Unknown Object (File)
Feb 20 2024, 3:20 AM
Unknown Object (File)
Feb 19 2024, 10:39 PM
Unknown Object (File)
Feb 19 2024, 11:03 AM
Unknown Object (File)
Feb 17 2024, 11:44 PM
Unknown Object (File)
Jan 23 2024, 11:42 AM
Subscribers

Details

Summary

For future reproducible builds support record the timestamp when 'make makesum' updates the distinfo.

This change is extracted from D4385 so that we can start recording this as ports are otherwise updated.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to Record TIMESTAMP in `make makesum`.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added reviewers: bapt, bdrewery.

That should be "extracted from D4385 and modified slightly"

bapt edited edge metadata.
This revision is now accepted and ready to land.Apr 20 2016, 7:59 PM

The code seems fine but this line will be problematic unless explained very well. For example in security/openssh-portable every time I update its major version I run 'make makesum' and it removes all of the optional patches. I then re-add the optional patches and one-by-one manually update the distinfo for them and test since they are conflicting and cannot all build together. Often I have to mark an option broken for days/weeks while I fix it or wait for the patch upstream to release an updated version. I'm sure other people have similar experiences. In this case I would likely forget to touch the TIMESTAMP or consider it out-of-scope.

I think a $FreeBSD$ keyword comment at the top would be more accurate as it will capture all changes. If someone runs 'make makesum' and the file doesn't change then the comment also will not change and keep the existing timestamp. In this case we would just use the revision in the comment and not the date.

The code seems fine but this line will be problematic unless explained very well. For example in security/openssh-portable every time I update its major version I run 'make makesum' and it removes all of the optional patches. I then re-add the optional patches and one-by-one manually update the distinfo for them and test since they are conflicting and cannot all build together. Often I have to mark an option broken for days/weeks while I fix it or wait for the patch upstream to release an updated version. I'm sure other people have similar experiences. In this case I would likely forget to touch the TIMESTAMP or consider it out-of-scope.

The intended use of the timestamp here is to control the metadata for files in the package, and I think it's not a problem if it updates only when the main source files change.

I think a $FreeBSD$ keyword comment at the top would be more accurate as it will capture all changes. If someone runs 'make makesum' and the file doesn't change then the comment also will not change and keep the existing timestamp. In this case we would just use the revision in the comment and not the date.

The date from $FreeBSD$ seems like a good idea, except it's not expanded in ports git mirrors and so might introduce subtle breakage in some cases.

The code seems fine but this line will be problematic unless explained very well. For example in security/openssh-portable every time I update its major version I run 'make makesum' and it removes all of the optional patches. I then re-add the optional patches and one-by-one manually update the distinfo for them and test since they are conflicting and cannot all build together. Often I have to mark an option broken for days/weeks while I fix it or wait for the patch upstream to release an updated version. I'm sure other people have similar experiences. In this case I would likely forget to touch the TIMESTAMP or consider it out-of-scope.

The intended use of the timestamp here is to control the metadata for files in the package, and I think it's not a problem if it updates only when the main source files change.

I think a $FreeBSD$ keyword comment at the top would be more accurate as it will capture all changes. If someone runs 'make makesum' and the file doesn't change then the comment also will not change and keep the existing timestamp. In this case we would just use the revision in the comment and not the date.

The date from $FreeBSD$ seems like a good idea, except it's not expanded in ports git mirrors and so might introduce subtle breakage in some cases.

The goal of this date is to not be updated to often but still often enough so that it is at least as old as the main sources

bdrewery edited edge metadata.

I think this will be error-prone to keeping it consistent but I don't really object to trying.

This revision was automatically updated to reflect the committed changes.