Page MenuHomeFreeBSD

crossbuild: make mkioctls script work on Linux and MacOS
ClosedPublic

Authored by arichardson on Feb 7 2018, 4:59 PM.
Tags
None
Referenced Files
F82875080: D14246.diff
Fri, May 3, 11:12 AM
Unknown Object (File)
Mar 24 2024, 10:18 AM
Unknown Object (File)
Jan 18 2024, 1:14 PM
Unknown Object (File)
Jan 5 2024, 5:38 PM
Unknown Object (File)
Jan 5 2024, 11:29 AM
Unknown Object (File)
Jan 5 2024, 11:29 AM
Unknown Object (File)
Dec 22 2023, 10:50 PM
Unknown Object (File)
Nov 12 2023, 11:35 AM
Subscribers
None

Details

Summary

Using find -s will not work with the Linux or MacOS find command. We pipe
to sort instead since the only real requirement here is that the order
stays the same. While I am touching this file I also fixed a == construct
which is not supported by POSIX sh but appears to work on FreeBSD.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14849
Build 14963: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 7 2018, 5:03 PM
lib/libsysdecode/mkioctls
22

Perhaps grep -q is portable?

22

Interesting, I wonder how this snuck in here.

jhb added inline comments.
lib/libsysdecode/mkioctls
21

Minor nit: Since the comments are sentences, capitalize the first word and add punctuation.

30

Punctuation here as well.

  • use grep -q
  • make it actually work with pipefail by excluding dangling symlinks. Those would cause egrep to return non-zero and with pipefail fail the whole subshell.
This revision now requires review to proceed.Feb 11 2018, 10:35 AM

One last nit, and then I think we're good to go.

lib/libsysdecode/mkioctls
30

'env ' can be eliminated here. It's not needed.

remove unnecessary env command

This revision was not accepted when it landed; it landed in state Needs Review.Aug 20 2018, 10:39 AM
This revision was automatically updated to reflect the committed changes.