Skip to content

Package tsdl-ttf.0.7#29648

Open
sanette wants to merge 1 commit intoocaml:masterfrom
sanette:opam-publish-tsdl-ttf.0.7
Open

Package tsdl-ttf.0.7#29648
sanette wants to merge 1 commit intoocaml:masterfrom
sanette:opam-publish-tsdl-ttf.0.7

Conversation

@sanette
Copy link
Copy Markdown
Contributor

@sanette sanette commented Apr 4, 2026

tsdl-ttf.0.7

SDL2_Ttf bindings to go with Tsdl
Tsdl_ttf provides bindings to SDL2_ttf intended to be used with Tsdl.



🐫 Pull-request generated by opam-publish v3.0.0

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 4, 2026

I don't understand why freebsd fails but for Ubuntu 22, it's the usual tsdl issue

Copy link
Copy Markdown
Member

@jmid jmid left a comment

Choose a reason for hiding this comment

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

This is failing on

The former two are clearly distribution-related, and thus not issues with tsdl-ttf.

For x86_32 I'm not sure what is going on. The f500.ttf is clearly a file in the repo. Furthermore the arm32 workflows are passing, so it doesn't seem to be a 32-bit issue... 🤔

For FreeBSD I'm wondering whether it could be PATH-related to where FreeBSD stores its shared objects -- see pkg-plist: as obtained via: make generate-plist and press Expand this list (17 items) here: https://www.freshports.org/graphics/sdl2_ttf/.
I've also checked and TTF_Init should be available since 2.0.12 https://wiki.libsdl.org/SDL2_ttf/TTF_Init which 2.24.0 on FreeBSD is plenty above.

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 5, 2026

TTF_init is not found because the SDL2_ttf library cannot be loaded.

I have made some tests with freebsd: pkg-config --variable=libdir SDL2_ttf returns /usr/local/lib/, but still,
/usr/local/lib/libSDL2_ttf.so is not found...
(and I also tried with libSDL2_ttf-2.0.so.0 but same..)
That's very strange, I don't understand. Is the freebsd CI correctly configured?

@jmid
Copy link
Copy Markdown
Member

jmid commented Apr 5, 2026

I don't know, but I also don't understand enough of the situation yet 🤷

https://github.com/ocaml/opam-repository/wiki/How-to-deal-with-CI#annex suggests adding flags: verbose to the relevant packages to help figure out what's going on.

Searching a bit, also turned up sdl-config and sdl2-config (rather than pkg-config) for looking up build parameters:
https://wiki.libsdl.org/SDL2/Installation
https://wiki.libsdl.org/SDL2/FAQLinux

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 5, 2026

to me that's a CI bug, not a reallife one

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 5, 2026

ok so some more tests:

https://ocaml.ci.dev/github/sanette/tsdl-ttf/commit/28a3b27aeea8619d9ab6bf254b376bade89bf30d/variant/freebsd-14.3-5.4_opam-2.5

we see that the Dl.open error is in fact:

"/usr/local/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/local/lib/libglib-2.0.so.0 not defined"

so clearly the Freebsd CI is not correctly configured

@jmid
Copy link
Copy Markdown
Member

jmid commented Apr 5, 2026

OK, thanks for sharing these details - I agree something seems off! 🙏

Polite ping to BSD expert @hannesm and infra-structure maintainer @mtelvers

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.

3 participants