Skip to content

Package tsdl-ttf.0.7#29648

Merged
jmid merged 1 commit intoocaml:masterfrom
sanette:opam-publish-tsdl-ttf.0.7
Apr 11, 2026
Merged

Package tsdl-ttf.0.7#29648
jmid merged 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

@hannesm
Copy link
Copy Markdown
Member

hannesm commented Apr 6, 2026

@jmid sorry I don't know (never ended up in using ttf), and I don't know anything about the FreeBSD CI setup...

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 9, 2026

I don't think there is anything I can do on my side

@jmid
Copy link
Copy Markdown
Member

jmid commented Apr 9, 2026

@avsm you are a BSD expert too, as I recall. Perhaps you can help us get to the bottom of this?

I agree that the following from the above log looks fishy - furthermore it occurs already
when installing system packages:

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

@jmid
Copy link
Copy Markdown
Member

jmid commented Apr 9, 2026

@sanette What do you make of the x86_32 error?

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 9, 2026

@sanette What do you make of the x86_32 error?

well, all other systems were able to copy the file correctly for running the test, so why not this one?
So, I also think it's a CI error. IIRC I had similar (random) issues in the past where some files were not copied in time for testing.
See : the same (afaict) test on another ocamlci didn't give any error:
https://ocaml.ci.dev/github/sanette/tsdl-ttf/commit/28a3b27aeea8619d9ab6bf254b376bade89bf30d/variant/debian-13-4.14_x86_32_opam-2.5

But I'm not a specialist of CI

@sanette
Copy link
Copy Markdown
Contributor Author

sanette commented Apr 9, 2026

you could try to re-run the test

@mseri
Copy link
Copy Markdown
Member

mseri commented Apr 9, 2026

I would not worry about x86_32 since we are soon stopping supporting and testing it anyway

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.

Thanks to the excellent efforts of Mark, FreeBSD is now working and all green 🎉 🥳

Thanks for the release, for sharing the details on the problem, and for your patience.

FTR, CI is failing on openSUSE Tumbleweed and Ubuntu-22.04 (for system package reasons - see above)

@jmid jmid merged commit 0404939 into ocaml:master Apr 11, 2026
3 of 5 checks passed
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.

5 participants