Page MenuHomeFreeBSD

Record TIMESTAMP in `make makesum`
ClosedPublic

Authored by emaste on Apr 20 2016, 7:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 11:47 PM
Unknown Object (File)
Fri, Oct 25, 3:24 PM
Unknown Object (File)
Oct 6 2024, 10:00 PM
Unknown Object (File)
Oct 6 2024, 12:42 AM
Unknown Object (File)
Oct 4 2024, 7:08 AM
Unknown Object (File)
Oct 2 2024, 12:44 AM
Unknown Object (File)
Oct 1 2024, 4:01 PM
Unknown Object (File)
Oct 1 2024, 11:33 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.