* [gentoo-commits] repo/gentoo:master commit in: dev-libs/bemenu/, dev-libs/bemenu/files/
@ 2020-03-15 19:12 Matthew Thode
0 siblings, 0 replies; only message in thread
From: Matthew Thode @ 2020-03-15 19:12 UTC (permalink / raw
To: gentoo-commits
commit: 04f9bda51d8d1c860704dfa16164783963bdddf9
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 15 19:11:03 2020 +0000
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 19:12:48 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04f9bda5
dev-libs/bemenu: fix 9999 build
Closes: https://bugs.gentoo.org/712398
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
| 18 +++++++-----------
| 26 ++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 11 deletions(-)
--git a/dev-libs/bemenu/bemenu-9999.ebuild b/dev-libs/bemenu/bemenu-9999.ebuild
index cc3b01f2040..8b4263622de 100644
--- a/dev-libs/bemenu/bemenu-9999.ebuild
+++ b/dev-libs/bemenu/bemenu-9999.ebuild
@@ -3,8 +3,6 @@
EAPI=7
-inherit cmake-utils
-
DESCRIPTION="dmenu clone for wayland"
HOMEPAGE="https://github.com/Cloudef/bemenu"
if [[ ${PV} == 9999 ]]; then
@@ -36,21 +34,19 @@ DEPEND="
x11-libs/libX11
x11-libs/cairo[X]
x11-libs/pango[X]
+ x11-libs/libXinerama
)
"
RDEPEND="${DEPEND}"
BDEPEND="doc? ( app-doc/doxygen )"
-src_configure() {
- local mycmakeargs=(
- -DCURSES_LIBRARY=/usr/$(get_libdir)/libncursesw.so
- -DBEMENU_CURSES_RENDERER=$(usex ncurses ON OFF)
- -DBEMENU_WAYLAND_RENDERER=$(usex wayland ON OFF)
- -DBEMENU_X11_RENDERER=$(usex X ON OFF)
- )
- cmake-utils_src_configure
+PATCHES=( "${FILESDIR}/soname-fix.patch" )
+
+src_compile() {
+ emake clients $(usex ncurses curses) $(usex X x11) $(usex wayland wayland)
+ use doc && emake doxygen
}
src_install() {
- cmake-utils_src_install
+ emake install PREFIX="${D}"/usr libdir=/$(get_libdir)
}
--git a/dev-libs/bemenu/files/soname-fix.patch b/dev-libs/bemenu/files/soname-fix.patch
new file mode 100644
index 00000000000..7fe33380ca8
--- /dev/null
+++ b/dev-libs/bemenu/files/soname-fix.patch
@@ -0,0 +1,26 @@
+commit 92929f9777b9c39a2829a9db1c19ef37859dc7fc
+Author: Matthew Thode <mthode@mthode.org>
+Date: Sun Mar 15 14:00:14 2020 -0500
+
+ add soname to shared libraries
+
+ Found in Gentoo QA
+
+ * QA Notice: The following shared libraries lack a SONAME
+ * /usr/lib/libbemenu.so.0.4.0
+
+ Signed-off-by: Matthew Thode <mthode@mthode.org>
+
+diff --git a/GNUmakefile b/GNUmakefile
+index c82bfd3..5b7b081 100644
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -36,7 +36,7 @@ wayland: bemenu-renderer-wayland.so
+ $(LINK.c) -c $(filter %.c,$^) $(LDLIBS) -o $@
+
+ $(libs): %: VERSION .git/index
+- $(LINK.c) -shared -fPIC $(filter %.c %.a,$^) $(LDLIBS) -o $(addsuffix .$(VERSION), $@)
++ $(LINK.c) -shared -fPIC $(filter %.c %.a,$^) $(LDLIBS) -o $(addsuffix .$(VERSION), $@) -Wl,-soname
+ ln -fs $(addsuffix .$(VERSION), $@) $(addsuffix .$(firstword $(subst ., ,$(VERSION))), $@)
+ ln -fs $(addsuffix .$(VERSION), $@) $@
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-15 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 19:12 [gentoo-commits] repo/gentoo:master commit in: dev-libs/bemenu/, dev-libs/bemenu/files/ Matthew Thode
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox