Page MenuHomeFreeBSD

Update superiotool to latest version
ClosedPublic

Authored by jo_bruelltuete.com on Jan 30 2022, 1:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 8:21 AM
Unknown Object (File)
Sun, Nov 24, 9:50 PM
Unknown Object (File)
Fri, Nov 22, 6:26 AM
Unknown Object (File)
Fri, Nov 22, 6:26 AM
Unknown Object (File)
Wed, Nov 20, 12:18 AM
Unknown Object (File)
Tue, Nov 19, 10:57 AM
Unknown Object (File)
Nov 16 2024, 4:41 PM
Unknown Object (File)
Oct 23 2024, 12:20 PM
Subscribers

Details

Summary

Update to 4.17

Test Plan

compiles and runs fine on my 13-stable box.

Diff Detail

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

Event Timeline

jo_bruelltuete.com created this revision.
sysutils/superiotool/Makefile
3

i'm not sure about any of the port makefile magic here

6

downloading straight from coreboot's gitiles may be impolite? don't know. we could put the tarball somewhere else.

sysutils/superiotool/files/patch-Makefile
8

the only thing that needs patching in the vendor makefile is this VERSION macro (which we set in our port makefile).
and the manpage path further below.

sysutils/superiotool/Makefile
3

Since 4.15 is less than 20121019, then a PORTEPOCH is needed.
At the same time PORTREVISION can be removed or reset to zero.
See 5.2.3 of https://docs.freebsd.org/en/books/porters-handbook/makefiles/

6

Downloading straight from the source is actually the preferred way.
It's that previously they didn't use to have superiotool tarballs / releases.

sysutils/superiotool/Makefile
6

At the same time, I am not sure how stable this review.coreboot.org URL is.
I think I misunderstood what it was.
I thought that it was a pre-packaged source archive, but it seems to be dynamically generated from a code repository tag...

Maybe it would be better to use https://coreboot.org/releases/coreboot-4.15.tar.xz and WRKSRC_SUBDIR.
See https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-wrkdir

thanks for your suggestions!
i was away for a few days but will update this patch soon.

Have you tried running portlint -AC in the port directory ?

It gives a lot of suggestions for the port Makefile.

pi requested changes to this revision.Jul 31 2022, 2:48 PM

please update according to portlint -AC or, as a similar tool, portclippy or portfmt.

This revision now requires changes to proceed.Jul 31 2022, 2:48 PM

coreboot 4.17 is the latest version, are there any changes to superiotool since 4.15 ?

There is some additional blob added to util/superiotool/ite.c with 4.17 for IT8625E

ran portlint

$ portlint -C
WARN: Makefile: use of DISTFILES with single file discouraged. distribution filename should be set by DISTNAME and EXTRACT_SUFX.
WARN: Makefile: DISTFILES/DISTNAME affects WRKSRC. take caution when changing them.
WARN: /usr/ports/sysutils/superiotool/files/patch-Makefile: patch was not generated using ``make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
0 fatal errors and 3 warnings found.

i dont know what to do about these. makepatch doesn't do anything? distfiles/name is tricky because the distfile is coreboot but the port superiotool, so the auto-magic (as i've understood in the porters handbook) would get the names wrong here.

LGTM. Thank you very much!

Don't know if @pi wants to take another look... otherwise feel free to commit (i dont have commit permissions).

ping @avg -- please click the merge button if good to go.

Will use this to also update to 4.18. Tested on some Supermicro board. Looks fine.

This revision is now accepted and ready to land.Jan 10 2023, 7:07 PM
This revision was automatically updated to reflect the committed changes.