Summary: | lang/mujs: libmujs.so does not have a SONAME | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Robert Clausecker <fuz> |
Component: | Individual Port(s) | Assignee: | Yuri Victorovich <yuri> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(yuri) fuz: merge-quarterly? |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://github.com/ccxvii/mujs/issues/175 |
Description
Robert Clausecker
2023-03-04 14:05:28 UTC
(In reply to Robert Clausecker from comment #0) Hi Robert, Since the project builds the shared library - they should add a SONAME to it. This is really easy to do. In the meantime the project works fine without a SONAME too. Best, Yuri (In reply to Yuri Victorovich from comment #1) Appears to work fine. Without a SONAME, there will be problems when multiple versions of the shared object are present (e.g. during upgrades). You can patch this locally by adding -Wl,-soname=... to LDFLAGS. (In reply to Robert Clausecker from comment #2) During upgrades one lib is replaced with another lib, so no multiple versions are present. SONAME is mostly to distinguish between library versions, but MuJS is quite stable and is unlikely to cause any issues. Yuri (In reply to Yuri Victorovich from comment #3) Briefly, there will be multiple versions of the same shared object. I mean it's okay, you continue to deny the potential for problems, but the stage-qa warnings are quite clear in the shared objects must have a soname set, for precisely this reason. (In reply to Robert Clausecker from comment #4) > Briefly, there will be multiple versions of the same shared object. When? (In reply to Yuri Victorovich from comment #5) E.g. when a program having an old version of the library is still running and tries to dlopen() something that also pulls in the library. SONAME added. Thanks for your report! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9275f87e84ae04f7dac34d926dde23ce9d76d8a2 commit 9275f87e84ae04f7dac34d926dde23ce9d76d8a2 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-03-27 15:02:03 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-03-27 18:25:49 +0000 lang/mujs: Add SONAME to the shared library PR: 269960 Reported by: fuz@ lang/mujs/Makefile | 3 +++ lang/mujs/files/patch-Makefile | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) |