also check for .so without version extension #93
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Debian bookworm and later do not ship the freeglut3 library any more that provided the versioned symlink libglut.so.3 for the libglut.so.3.12.0 library, but there is libglut.so , still, and libglut.so.3.12.
$ ls -l /usr/lib/x86_64-linux-gnu/glut
-rw-r--r-- 1 root root 654216 5. Nov 21:59 /usr/lib/x86_64-linux-gnu/libglut.a
lrwxrwxrwx 1 root root 15 5. Nov 21:59 /usr/lib/x86_64-linux-gnu/libglut.so -> libglut.so.3.12
lrwxrwxrwx 1 root root 17 5. Nov 21:59 /usr/lib/x86_64-linux-gnu/libglut.so.3.12 -> libglut.so.3.12.0
-rw-r--r-- 1 root root 356016 5. Nov 21:59 /usr/lib/x86_64-linux-gnu/libglut.so.3.12.0
Several LinuxCNC issues/PRs are affected by this little omission, see LinuxCNC/linuxcnc#2259 and LinuxCNC/linuxcnc#1599. I tested this change locally and it worked for me. To test this run,
on Debian bookworm or later. Please also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029936 and likely also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512225.