Public bug reported: UBUNTU RELEASE
Ubuntu 22.04 LTS (Kubuntu but I think that's irrelevant) PACKAGES AND VERSIONS libsdl2-dev 2.0.20+dfsg-2build1 libsdl2-2.0-0 2.0.20+dfsg-2build1 STEPS TO REPRODUCE (This is how I discovered the issue, but there is probably a much more minimal reproduction case) 1. Download the Simutrans-Extended repo: https://github.com/jamespetts/simutrans-extended 2. Download the dependencies, at a minimum libsdl2-dev 3. Following the instructions there for building with autotools EXPECTED RESULTS Simutrans-Extended compiles correctly, as it did on Focal Fossa. ACTUAL RESULTS When I tried to build it on Jammy Jellyfish, the build failed with the following errors from the linker: /usr/bin/ld: cannot find -ldrm: No such file or directory /usr/bin/ld: cannot find -lgbm: No such file or directory /usr/bin/ld: cannot find -ldecor-0: No such file or directory Installing the libdrm-dev, libgbm-dev, and libdecor-0-dev packages solved that problem. But I wonder whether it might be a packaging bug. I follow Simutrans-Extended development quite closely and we have not intentionally introduced dependencies on those packages; I think they have been brought in by SDL2. If a program using sdl2-dev used to be able to compile without those packages, but now requires them, it seems to me that they are now dependencies of sdl2-dev. Or at least be 'suggests'. But I am not an expert on this. COMMENTS Those libraries are not direct dependencies of Simutrans. However, Ubuntu's sdl2-0-0 package has added dependencies on libgbm1, libdrm2, and libdecor-0-0. Compare the Focal dependencies.... https://packages.ubuntu.com/focal/libsdl2-2.0-0 ......with the Jammy dependencies: https://packages.ubuntu.com/jammy/libsdl2-2.0-0 The Jammy libsdl2-dev package does **not** list dependencies on the appropriate development packages: https://packages.ubuntu.com/jammy/libsdl2-dev I notice that SDL's own build guide lists those packages as dependencies for building SDL2 itself on Focal Fossa: https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md But that change was made in February 2021 so it affects Ubuntu's version of SDL2 in Jammy, not Focal: https://github.com/libsdl-org/SDL/commit/2f4e9294aa260635d876b5699846adc458f555db I initially asked about this on AskUbuntu and a comment there confirmed that the required .so files are in (for example) libgbm-dev, not lib- gbm1: https://askubuntu.com/questions/1410876/is-ubuntus-libsdl2-dev- package-missing-dependencies-or-have-i-made-a- mistake?noredirect=1#comment2451919_1410876 I might file a bug report upstream with Debian if I can figure out their bugtracking system. ** Affects: libsdl2 (Ubuntu) Importance: Undecided Status: New ** Tags: jammy sdl2 ** Description changed: UBUNTU RELEASE Ubuntu 22.04 LTS (Kubuntu but I think that's irrelevant) PACKAGES AND VERSIONS libsdl2-dev 2.0.20+dfsg-2build1 libsdl2-2.0-0 2.0.20+dfsg-2build1 STEPS TO REPRODUCE (This is how I discovered the issue, but there is probably a much more minimal reproduction case) 1. Download the Simutrans-Extended repo: https://github.com/jamespetts/simutrans-extended 2. Download the dependencies, at a minimum libsdl2-dev 3. Following the instructions there for building with autotools EXPECTED RESULTS Simutrans-Extended compiles correctly, as it did on Focal Fossa. ACTUAL RESULTS When I tried to build it on Jammy Jellyfish, the build failed with the following errors from the linker: - /usr/bin/ld: cannot find -ldrm: No such file or directory - /usr/bin/ld: cannot find -lgbm: No such file or directory - /usr/bin/ld: cannot find -ldecor-0: No such file or directory + /usr/bin/ld: cannot find -ldrm: No such file or directory + /usr/bin/ld: cannot find -lgbm: No such file or directory + /usr/bin/ld: cannot find -ldecor-0: No such file or directory Installing the libdrm-dev, libgbm-dev, and libdecor-0-dev packages solved that problem. But I wonder whether it might be a packaging bug. I follow Simutrans-Extended development quite closely and we have not intentionally introduced dependencies on those packages; I think they have been brought in by SDL2. If a program using sdl2-dev used to be able to compile without those packages, but now requires them, it seems to me that they are now dependencies of sdl2-dev. Or at least be 'suggests'. But I am not an expert on this. COMMENTS Those libraries are not direct dependencies of Simutrans. However, Ubuntu's sdl2-0-0 package has added dependencies on libgbm1, libdrm2, and libdecor-0-0. Compare the Focal dependencies.... https://packages.ubuntu.com/focal/libsdl2-2.0-0 ......with the Jammy dependencies: https://packages.ubuntu.com/jammy/libsdl2-2.0-0 The Jammy libsdl2-dev package does **not** list dependencies on the appropriate development packages: https://packages.ubuntu.com/jammy/libsdl2-dev - I notice that SDL's own build guide [has listed those packages][5] as - dependencies for building SDL2 itself on Focal Fossa [since February - 2021][6]. + I notice that SDL's own build guide lists those packages as dependencies for building SDL2 itself on Focal Fossa: https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md + But that change was made in February 2021 so it affects Ubuntu's version of SDL2 in Jammy, not Focal: https://github.com/libsdl-org/SDL/commit/2f4e9294aa260635d876b5699846adc458f555db I initially asked about this on AskUbuntu and a comment there confirmed that the required .so files are in (for example) libgbm-dev, not lib- gbm1: https://askubuntu.com/questions/1410876/is-ubuntus-libsdl2-dev- package-missing-dependencies-or-have-i-made-a- mistake?noredirect=1#comment2451919_1410876 I might file a bug report upstream with Debian if I can figure out their bugtracking system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1976198 Title: Possible missing dependencies of libsdl2-dev in Jammy To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libsdl2/+bug/1976198/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs