Page MenuHomeFreeBSD

sysutils/msktutil: Update to 1.2.2
ClosedPublic

Authored by michaelo on Sep 11 2024, 1:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 16 2024, 9:54 AM
Unknown Object (File)
Nov 16 2024, 9:53 AM
Unknown Object (File)
Nov 15 2024, 6:31 AM
Unknown Object (File)
Oct 21 2024, 3:42 PM
Unknown Object (File)
Oct 14 2024, 8:43 AM
Unknown Object (File)
Oct 12 2024, 3:02 PM
Unknown Object (File)
Oct 12 2024, 3:01 PM
Unknown Object (File)
Oct 12 2024, 3:01 PM
Subscribers

Details

Reviewers
jrm
otis
zi
emaste
Summary

Approved by: jrm (mentor), otis (mentor)

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59495
Build 56382: arc lint + arc unit

Event Timeline

michaelo created this revision.
jrm added a subscriber: pi.

lgtm assuming all the necessary poudriere runs pass and @pi has no objections.

This revision is now accepted and ready to land.Sep 11 2024, 1:49 PM
In D46643#1063059, @jrm wrote:

lgtm assuming all the necessary poudriere runs pass and @pi has no objections.

Builds for me just fine with Heimdal and MIT Kerberos.

Will wait for the maintainer timeout.

Any reason as to why we're not using upstream release archive?
https://github.com/msktutil/msktutil/releases/download/1.2.2/msktutil-1.2.2.tar.bz2
That will also likely get rid of USES= autoreconf

Other notes:
Remove GNU_CONFIGURE_MANPREFIX

sysutils/msktutil/Makefile
2

PORTVERSION --> DISTVERSION :-)

Any reason as to why we're not using upstream release archive?
https://github.com/msktutil/msktutil/releases/download/1.2.2/msktutil-1.2.2.tar.bz2
That will also likely get rid of USES= autoreconf

Other notes:
Remove GNU_CONFIGURE_MANPREFIX

Well, although I am the upstream maintainer, I am not the port maintainer. I wanted to change as little as possible. GNU_CONFIGURE_MANPREFIX was actually added explicitly.
I can provide these changes in a separate PR.

Incorporate @diizzy's comments

Note: I will handle the autoconf stuff separately, I guess it is there for historic reasons.

This revision now requires review to proceed.Sep 15 2024, 11:06 AM

Any reason as to why we're not using upstream release archive?
https://github.com/msktutil/msktutil/releases/download/1.2.2/msktutil-1.2.2.tar.bz2

There is a good reason to prefer auto-generated archives. As the xz fiasco demonstrated, manually generated archives may not precisely match the code. For instance, as you note, authors of projects that use autotools may generate the configure script so users don't need autotools installed. While this simplifies installation, it also creates an opportunity for bad actors to insert malicious code that is less straightforward to audit. GitHub's automatic tarballs, generated with git archive, should be an accurate reflection of the code. Given the risk, we should reconsider this warning in the Porter's Handbook.

Autogenerated archives changes over time which will break any kind of checksum verification and aren't necessarily reproducable so that doesn't add much if any value. Not to forget that there were also source commits in the repo which neither tarball generation solution would've convered. We already spend "excessive amounts" of cpu cycles on running Autotools as it is and adding autoreconf etc (which may also barf) doesn't help the cause if it can be avoided. Additionally we don't have the manpower to keep up with thousounds of packages that breaks randomly.

Autogenerated archives changes over time which will break any kind of checksum verification and aren't necessarily reproducable so that doesn't add much if any value.

They do, but GitHub has now guaranteed they won't randomly change for no good reason for at least a year, so the situation is better than it used to be.

Not to forget that there were also source commits in the repo which neither tarball generation solution would've convered. We already spend "excessive amounts" of cpu cycles on running Autotools as it is and adding autoreconf etc (which may also barf) doesn't help the cause if it can be avoided. Additionally we don't have the manpower to keep up with thousounds of packages that breaks randomly.

You asked if there were *any* reasons to use the manually generated archive. I guess it comes down to picking your poison. Do we want to deal with changing hashes over time and the "excessive amounts" of CPU cycles required to generate configure scripts, or do we want to (in an ideal world) unpack all the manually generated archives to confirm nothing malicious has snuck in that's not observable in the repository? There are reasonable points for both approaches.

Guys, can we focus on the actual change. I agree with @jrm, that is makes little sense to waste cycles for ./configure. I will provide this change with a separate PR.
There is only one way to make sure that an artifact ist authentic either X.509 or GPG.

This revision is now accepted and ready to land.Sep 18 2024, 1:23 AM

Friendly reminder that you need a PR in bugzilla for maintainer timeout to apply.

Friendly reminder that you need a PR in bugzilla for maintainer timeout to apply.

Thanks for the pointer. Completely forgot about it. Will do.

Weird, the maintainer picked up PR, but totally ignored this review....closing.