Skip to content

include LWJGL's manifest in the shaded uber jar#41

Open
chirontt wants to merge 1 commit intoLWJGL:mainfrom
chirontt:include_lwjgl_build_number
Open

include LWJGL's manifest in the shaded uber jar#41
chirontt wants to merge 1 commit intoLWJGL:mainfrom
chirontt:include_lwjgl_build_number

Conversation

@chirontt
Copy link
Contributor

so that the LWJGL's build number is shown properly in debug output
of the shaded uber jar.

This would fix the following debug output which displays the LWJGL's build number like:

[LWJGL] Version: 3.3.0 SNAPSHOT

which is wrong, to the correct build number string as specified in the LWJGL's manifest file:

[LWJGL] Version: 3.3.0 build 18

The build number is quite important to LWJGL, as this string is used in the path to the temporary directory where LWJGL caches its native files such as .dll, .so, etc., for re-use. If the build number string is always SNAPSHOT, due to the relevant info missing in the uber jar's manifest file for this project, then the LWJGL library would run the risk of re-using older natives (and potentially incorrect natives) from the cache at runtime, causing mysterious crashes.

so that the LWJGL's build number is shown properly in debug output
of the shaded uber jar.
@httpdigest httpdigest force-pushed the main branch 3 times, most recently from 6127460 to 6717e49 Compare October 19, 2022 09:52
@httpdigest httpdigest force-pushed the main branch 10 times, most recently from eafcf00 to 492ad16 Compare April 29, 2023 17:48
@httpdigest httpdigest force-pushed the main branch 2 times, most recently from 86d8b54 to bdb5675 Compare January 7, 2024 20:20
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.

1 participant