Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom build tag "nostatfs" disables statfs #553

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

mhutchinson
Copy link
Contributor

This allows users to specify the "nostatfs" build tag to disable this feature if needed.

In our case, we are using Tamago (https://github.com/usbarmory/tamago), which does not support syscall.Statfs. Without this change attempting to build returns 'undefined: syscall.Statfs' and 'undefined: syscall.Statfs_t'. With this change, we can build successfully build our tamago executables provided that "nostatfs" is added to the build tags.

This option seems preferable to adding "tamago" as a build tag here, and will scale to other use cases too.

This allows users to specify the "nostatfs" build tag to disable this feature if needed.

In our case, we are using Tamago (https://github.com/usbarmory/tamago), which does not support syscall.Statfs. Without this change attempting to build returns 'undefined: syscall.Statfs' and 'undefined: syscall.Statfs_t'. With this change, we can build successfully build our tamago executables provided that "nostatfs" is added to the build tags.

This option seems preferable to adding "tamago" as a build tag here, and will scale to other use cases too.

Signed-off-by: Martin Hutchinson <mhutchinson@gmail.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

mhutchinson added a commit to mhutchinson/armored-witness-applet that referenced this pull request Jul 26, 2023
This is blocked on prometheus/procfs#553 being merged and released.
@mhutchinson
Copy link
Contributor Author

Thanks for the quick review @SuperQ! So I can manage expectations, when is this likely to be merged and a release available?

mhutchinson added a commit to mhutchinson/armored-witness-applet that referenced this pull request Jul 26, 2023
This is blocked on prometheus/procfs#553 being merged and released.
@SuperQ SuperQ merged commit 113c501 into prometheus:master Jul 26, 2023
2 checks passed
@SuperQ
Copy link
Member

SuperQ commented Jul 26, 2023

Release v0.11.1 tagged.

@mhutchinson mhutchinson deleted the tamagoNoStatfs branch July 26, 2023 15:33
jritter pushed a commit to jritter/procfs that referenced this pull request Jul 15, 2024
This allows users to specify the "nostatfs" build tag to disable this feature if needed.

In our case, we are using Tamago (https://github.com/usbarmory/tamago), which does not support syscall.Statfs. Without this change attempting to build returns 'undefined: syscall.Statfs' and 'undefined: syscall.Statfs_t'. With this change, we can build successfully build our tamago executables provided that "nostatfs" is added to the build tags.

This option seems preferable to adding "tamago" as a build tag here, and will scale to other use cases too.

Signed-off-by: Martin Hutchinson <mhutchinson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants