-
Notifications
You must be signed in to change notification settings - Fork 3.9k
treewide: fix dangling SONAME symlinks when using ABI_VERSION #29415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| include $(TOPDIR)/rules.mk | ||
|
|
||
| PKG_NAME:=tinycdb | ||
| PKG_RELEASE:=3 | ||
| PKG_RELEASE:=4 | ||
| PKG_SOURCE_URL:=https://www.corpit.ru/mjt/tinycdb/ | ||
| PKG_VERSION:=0.78 | ||
| PKG_HASH:=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c | ||
|
|
@@ -45,7 +45,7 @@ endef | |
|
|
||
| define Package/tinycdb/install | ||
| $(INSTALL_DIR) $(1)/usr/lib | ||
| $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcdb.so.$(ABI_VERSION) $(1)/usr/lib | ||
| $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcdb.so.$(ABI_VERSION)* $(1)/usr/lib | ||
| endef | ||
|
Comment on lines
46
to
49
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still CI/CD complains:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which part is bothering you?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That warning! 🤔 Nothing wrong about the CI/CD, though. :)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, the idea is that a file matching the SONAME is a link to a more specific version. So this one is not bad, but sus 👀 Here's my gold standard: root@OpenWrt:~# ls -lh /usr/lib/libsqlite3.so.*
lrwxrwxrwx 1 root root 20 May 11 17:17 /usr/lib/libsqlite3.so.0 -> libsqlite3.so.3.53.0
-rwxr-xr-x 1 root root 1004.6K May 10 12:59 /usr/lib/libsqlite3.so.3.53.0
root@OpenWrt:~# readelf -d /usr/lib/libsqlite3.so.3.53.0 | grep SONAME
0x000000000000000e (SONAME) Library soname: [libsqlite3.so.0] |
||
|
|
||
| define Build/Compile | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is from CI/CD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see from libsqlite3 example doing
cp smth.so.$(ABI_VERSION)*might not always work, since the ABI might be a link to a different version. That is, be careful.