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

Use test map for checking --version-script, instead of full map #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DimitryAndric
Copy link

Various problems can occur when using the full xkbcommon.map file when checking whether the --version-script linker option works in meson.build. See https://lists.freebsd.org/archives/freebsd-current/2025-January/006888.html for an example.

For instance, newer linkers typically complain about non-existing symbols, so in commit ebe4157 --undefined-version was added to work around that. But then in commit 1d8a25d another workaround needed to be added for older linkers.

It is better to use a minimalistic linker script for testing instead. The other workarounds can then be removed.

@DimitryAndric
Copy link
Author

Btw, if anybody knows a way to have meson.build write the test.map file by itself, that would probably be slightly neater.

@wismill
Copy link
Member

wismill commented Jan 10, 2025

@DimitryAndric Please rebase on master to make the Linux test pass (fixed by #586).

This test looks much simpler indeed. @whot @bluetech I wonder if we need to test the real file here anyway, to detect extra features?

Btw, if anybody knows a way to have meson.build write the test.map file by itself, that would probably be slightly neater.

CC to our Meson wizard @whot.

Various problems can occur when using the full `xkbcommon.map` file when
checking whether the `--version-script` linker option works in
`meson.build`.

For instance, newer linkers typically complain about non-existing
symbols, so in commit ebe4157 `--undefined-version` was added to work
around that. But then in commit 1d8a25d another workaround needed to be
added for older linkers.

It is better to use a minimalistic linker script for testing instead.
The other workarounds can then be removed.
@DimitryAndric DimitryAndric force-pushed the fix-version-script-check-1 branch from 2171f76 to c9e822b Compare January 10, 2025 13:44
@wismill wismill added this to the 1.8.0 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants