2022-05-30 01:10:53 |
Lin Manfu |
bug |
|
|
added bug |
2022-05-30 01:13:48 |
Lin Manfu |
description |
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 [has listed those packages][5] as dependencies for building SDL2 itself on Focal Fossa [since February 2021][6].
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. |
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. |
|
2022-05-30 08:17:06 |
Sebastien Bacher |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012088 |
|
2022-05-30 08:17:06 |
Sebastien Bacher |
libsdl2 (Ubuntu): importance |
Undecided |
High |
|
2022-05-30 08:17:06 |
Sebastien Bacher |
libsdl2 (Ubuntu): status |
New |
Confirmed |
|
2022-05-30 08:17:16 |
Sebastien Bacher |
bug task added |
|
libsdl2 (Debian) |
|
2022-05-30 10:39:41 |
Bug Watch Updater |
libsdl2 (Debian): status |
Unknown |
New |
|
2022-05-30 19:27:46 |
Gianfranco Costamagna |
nominated for series |
|
Ubuntu Jammy |
|
2022-05-30 19:27:46 |
Gianfranco Costamagna |
bug task added |
|
libsdl2 (Ubuntu Jammy) |
|
2022-05-30 19:30:12 |
Gianfranco Costamagna |
libsdl2 (Ubuntu Jammy): status |
New |
In Progress |
|
2022-05-30 19:35:13 |
Gianfranco Costamagna |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-05-30 19:36:59 |
Gianfranco Costamagna |
description |
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. |
[Impact]
* People using the library to build custom applications
[Test Plan]
* try to build Simutrans-Extended app from github code
[Where problems could occur]
* Without some dependencies being installed (libdecor-0-dev libdrm-dev libgbm-dev libxfixes-dev), the build will fail
[ other info ]
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. |
|
2022-05-31 07:05:08 |
Sebastien Bacher |
libsdl2 (Ubuntu): status |
Confirmed |
Fix Committed |
|
2022-05-31 10:48:43 |
Gianfranco Costamagna |
summary |
Possible missing dependencies of libsdl2-dev in Jammy |
[SRU] Possible missing dependencies of libsdl2-dev in Jammy |
|
2022-05-31 13:40:29 |
Bug Watch Updater |
libsdl2 (Debian): status |
New |
Fix Released |
|
2022-06-01 12:03:20 |
Robie Basak |
tags |
jammy sdl2 |
block-proposed-jammy jammy sdl2 |
|
2022-06-01 12:04:43 |
Robie Basak |
libsdl2 (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2022-06-01 12:04:45 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2022-06-01 12:04:47 |
Robie Basak |
tags |
block-proposed-jammy jammy sdl2 |
block-proposed-jammy jammy sdl2 verification-needed verification-needed-jammy |
|
2022-06-01 12:35:26 |
Gianfranco Costamagna |
tags |
block-proposed-jammy jammy sdl2 verification-needed verification-needed-jammy |
block-proposed-jammy jammy sdl2 verification-done verification-done-jammy |
|
2022-06-01 15:09:06 |
Launchpad Janitor |
libsdl2 (Ubuntu): status |
Fix Committed |
Fix Released |
|
2022-07-02 21:54:10 |
Gianfranco Costamagna |
tags |
block-proposed-jammy jammy sdl2 verification-done verification-done-jammy |
jammy sdl2 verification-done verification-done-jammy |
|
2022-07-04 08:43:10 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2022-07-04 08:45:17 |
Launchpad Janitor |
libsdl2 (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|