Summary: | dev-libs/protobuf: the SLOT check does not consider macOS-style ".dylib" suffix | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | ZongyuZ <zzy2529420793> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arfrever.fta, cjk, zzy2529420793 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | OS X | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=891469 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 930174 | ||
Attachments: |
the proposed patch
the build.log the emerge --info output |
Created attachment 891016 [details]
the build.log
Created attachment 891017 [details]
the emerge --info output
it could use libprotobuf$(get_libname(${SLOT})) which is made for this purpose The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=467e4946e9d54c58f5c20455181181eb04759762 commit 467e4946e9d54c58f5c20455181181eb04759762 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-08-25 15:17:43 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-08-25 15:21:19 +0000 dev-libs/protobuf-27.2: fix SLOT check for non-.so platforms use get_libname to check for appropriate output, may help with bug #891469 Bug: https://bugs.gentoo.org/891469 Closes: https://bugs.gentoo.org/930170 Signed-off-by: Fabian Groffen <grobian@gentoo.org> dev-libs/protobuf/protobuf-27.2.ebuild | 8 ++++---- dev-libs/protobuf/protobuf-9999.ebuild | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) |
Created attachment 891015 [details, diff] the proposed patch `deb-libs/protobuf` checks whether the filename of lib matches the `libprotobuf.so.${SLOT#*/}` pattern. However, in a prefix of an `arm64-macos` system, the corresponding filename would be `libprotobuf.${SLOT#*/}.dylib`, which will cause a failure. The package itself compiles well. I propose a patch here to check the `CHOST` variable, and set the corresponding filename accordingly. It will help emerge this file. This bug report may also serve as a keywording request for `protobuf` :)