Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934576 - app-misc/openrgb-0.9: fails to compile with >=dev-cpp/cpp-httplib-0.16.0: "cannot find -lhttplib: No such file or directory"
Summary: app-misc/openrgb-0.9: fails to compile with >=dev-cpp/cpp-httplib-0.16.0: "ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 20:45 UTC by Andrew Church
Modified: 2024-06-20 14:05 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2024-06-19 20:45:54 UTC
dev-cpp/cpp-httplib-0.16.0 changes the library name from "httplib" to "cpp-httplib".  This breaks app-misc/openrgb-0.9, which hardcodes the library name in the ebuild:

    eqmake5 \
        INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \
        DEFINES+="OPENRGB_EXTRA_PLUGIN_DIRECTORY=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" \
        LIBS+=-lhttplib
Comment 1 nate 2024-06-20 01:39:54 UTC
Also affects openrgb-9999.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-20 13:35:56 UTC
It should work to change to $(tc-getPKG_CONFIG) --libs XXX or perhaps $(tc-getPKG_CONFIG) --libs XXX || $(tc-getPKG_CONFIG) --libs YYY.

(I don't know if they changed the .pc name.)
Comment 3 Nowa Ammerlaan gentoo-dev 2024-06-20 13:39:20 UTC
There is unfortunately no .pc file installed by cpp-httplib, there are some cmake configure files though.
Comment 4 Larry the Git Cow gentoo-dev 2024-06-20 14:05:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ff1130ba2ce6f23d4c1565173beb0ab5fa70cd

commit 07ff1130ba2ce6f23d4c1565173beb0ab5fa70cd
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2024-06-20 13:40:13 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2024-06-20 14:05:27 +0000

    app-misc/openrgb: workaround cpp-httplib lib name change
    
    Closes: https://bugs.gentoo.org/934576
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 app-misc/openrgb/openrgb-0.9.ebuild  | 13 +++++++++++--
 app-misc/openrgb/openrgb-9999.ebuild | 13 +++++++++++--
 2 files changed, 22 insertions(+), 4 deletions(-)