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

compat/stdint.h missing from source tarball #1064

Closed
vszakats opened this issue Jun 5, 2024 · 7 comments · Fixed by #1065
Closed

compat/stdint.h missing from source tarball #1064

vszakats opened this issue Jun 5, 2024 · 7 comments · Fixed by #1065

Comments

@vszakats
Copy link
Contributor

vszakats commented Jun 5, 2024

While skimming commits I noticed that the codebase does actually
tackle the case where OpenBSD-specific __bound__ attribute is
not supported by the compiler. The logic was moved to compat/stdint.h
in 3a75727 (2023-07-05),
but this header is missing from the tarball as of v3.9.2.

Would the presence of this header fix the GCC compiler warnings in
chacha-merged.c mentioned here?:
#910 (comment)

If so, I wonder if it'd be a good idea to add it to the tarball, but could not
figure out the script responsible for this
.

@botovq
Copy link
Contributor

botovq commented Jun 5, 2024 via email

@vszakats
Copy link
Contributor Author

vszakats commented Jun 5, 2024

Perhaps this?:

diff --git a/include/Makefile.am b/include/Makefile.am
index 22819c8..feaaa60 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -17,6 +17,7 @@ noinst_HEADERS += compat/poll.h
 noinst_HEADERS += compat/pthread.h
 noinst_HEADERS += compat/readpassphrase.h
 noinst_HEADERS += compat/resolv.h
+noinst_HEADERS += compat/stdint.h
 noinst_HEADERS += compat/stdio.h
 noinst_HEADERS += compat/stdlib.h
 noinst_HEADERS += compat/string.h

@vszakats
Copy link
Contributor Author

vszakats commented Jun 5, 2024

I've neutered that with a bigger hammer: openbsd/src@65010fa

Ah, nice, thanks!

That said compat/stdint.h has some other things in it as well. If there,
it might make sense distributing?

@botovq
Copy link
Contributor

botovq commented Jun 5, 2024 via email

@vszakats
Copy link
Contributor Author

vszakats commented Jun 5, 2024

There it is: #1065

@botovq botovq closed this as completed in a279b68 Jun 5, 2024
@botovq
Copy link
Contributor

botovq commented Jun 5, 2024 via email

@busterb
Copy link
Contributor

busterb commented Jun 6, 2024

Hmm, this file has been here for 6 years and never made an appearance in the distributed tarballs. Darn, sorry about that.

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 a pull request may close this issue.

3 participants