public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/gbinder/, dev-libs/gbinder/files/
Date: Tue, 20 Dec 2022 17:23:51 +0000 (UTC)	[thread overview]
Message-ID: <1671534463.26ec25c8258ca7ab45c9421770d75fc156096d15.lanodan@gentoo> (raw)

commit:     26ec25c8258ca7ab45c9421770d75fc156096d15
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Tue Dec 20 11:07:43 2022 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue Dec 20 11:07:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=26ec25c8

dev-libs/gbinder: bug fixes for gbinder: fixed ranlib, debug and user optimisations, fixed tests

Closes: https://bugs.gentoo.org/843899
Closes: https://bugs.gentoo.org/843902
Closes: https://bugs.gentoo.org/887297
Closes: https://bugs.gentoo.org/859736
Closes: https://bugs.gentoo.org/887299
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 .../gbinder/files/gbinder-1.1.30-respect-env.patch | 49 ++++++++++++++++++++++
 ...r-1.1.30-r1.ebuild => gbinder-1.1.30-r2.ebuild} | 24 +++++++++--
 2 files changed, 70 insertions(+), 3 deletions(-)

diff --git a/dev-libs/gbinder/files/gbinder-1.1.30-respect-env.patch b/dev-libs/gbinder/files/gbinder-1.1.30-respect-env.patch
new file mode 100644
index 000000000..62358758b
--- /dev/null
+++ b/dev-libs/gbinder/files/gbinder-1.1.30-respect-env.patch
@@ -0,0 +1,49 @@
+diff --git a/Makefile b/Makefile
+index e838b7e..adb886f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -140,15 +140,15 @@ DEBUG_FLAGS = -g
+ RELEASE_FLAGS =
+ COVERAGE_FLAGS = -g
+ 
+-KEEP_SYMBOLS ?= 0
+-ifneq ($(KEEP_SYMBOLS),0)
+-RELEASE_FLAGS += -g
+-endif
++#KEEP_SYMBOLS ?= 0
++#ifneq ($(KEEP_SYMBOLS),0)
++#RELEASE_FLAGS += -g
++#endif
+ 
+ DEBUG_LDFLAGS = $(FULL_LDFLAGS) $(DEBUG_LIBS) $(DEBUG_FLAGS)
+ RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(RELEASE_LIBS) $(RELEASE_FLAGS)
+ DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS) -DDEBUG
+-RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS) -O2
++RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS)
+ COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS) --coverage
+ 
+ #
+@@ -274,17 +274,17 @@ $(DEBUG_SO): $(DEBUG_OBJS)
+ 
+ $(RELEASE_SO): $(RELEASE_OBJS)
+ 	$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
+-ifeq ($(KEEP_SYMBOLS),0)
+-	$(STRIP) $@
+-endif
++#ifeq ($(KEEP_SYMBOLS),0)
++#	$(STRIP) $@
++#endif
+ 
+ $(DEBUG_LIB): $(DEBUG_OBJS)
+ 	$(AR) rc $@ $?
+ 	ranlib $@
+ 
+-$(RELEASE_LIB): $(RELEASE_OBJS)
+-	$(AR) rc $@ $?
+-	ranlib $@
++$(RELEASE_LIB): $(RELEASE_OBJS)
++	$(AR) rc $@ $?
++	ranlib $@
+ 
+ $(DEBUG_LINK):
+ 	ln -sf $(LIB_SO) $@

diff --git a/dev-libs/gbinder/gbinder-1.1.30-r1.ebuild b/dev-libs/gbinder/gbinder-1.1.30-r2.ebuild
similarity index 64%
rename from dev-libs/gbinder/gbinder-1.1.30-r1.ebuild
rename to dev-libs/gbinder/gbinder-1.1.30-r2.ebuild
index 8caa9ed80..cd97f3663 100644
--- a/dev-libs/gbinder/gbinder-1.1.30-r1.ebuild
+++ b/dev-libs/gbinder/gbinder-1.1.30-r2.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit toolchain-funcs
+
 if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/mer-hybris/libgbinder.git"
@@ -18,15 +20,31 @@ DESCRIPTION="GLib-style interface to binder"
 HOMEPAGE="https://github.com/mer-hybris/libgbinder"
 LICENSE="BSD"
 SLOT="0"
+IUSE=""
 
 DEPEND="dev-libs/libglibutil"
 RDEPEND="${DEPEND}"
-BDEPEND="virtual/pkgconfig"
+BDEPEND="virtual/pkgconfig
+	sys-apps/sed"
+
+PATCHES=(
+	"${FILESDIR}/gbinder-1.1.30-respect-env.patch"
+)
+src_prepare() {
+	default
+	sed -i -e "s|ranlib|$(tc-getRANLIB)|" \
+	Makefile \
+	|| die
+}
 
 src_compile() {
-	emake KEEP_SYMBOLS=1 ABS_LIBDIR="/usr/$(get_libdir)" LIBDIR="/usr/$(get_libdir)"
+	emake LIBDIR="/usr/$(get_libdir)"
 }
 
 src_install() {
-	emake DESTDIR="${D}" ABS_LIBDIR="/usr/$(get_libdir)" LIBDIR="/usr/$(get_libdir)" install-dev
+	emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev
+}
+
+src_test() {
+	emake test
 }


             reply	other threads:[~2022-12-20 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20 17:23 Haelwenn Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-19 22:00 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/gbinder/, dev-libs/gbinder/files/ Julien Roy
2025-01-11 14:36 Julien Roy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1671534463.26ec25c8258ca7ab45c9421770d75fc156096d15.lanodan@gentoo \
    --to=contact@hacktivis.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox