public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/gbinder/, dev-libs/gbinder/files/
@ 2022-12-20 11:07 Denis Reva
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Reva @ 2022-12-20 11:07 UTC (permalink / raw
  To: gentoo-commits

commit:     26ec25c8258ca7ab45c9421770d75fc156096d15
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Tue Dec 20 11:07:43 2022 +0000
Commit:     Denis Reva <denis7774 <AT> gmail <DOT> com>
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
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/gbinder/, dev-libs/gbinder/files/
@ 2024-02-19 13:44 Denis Reva
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Reva @ 2024-02-19 13:44 UTC (permalink / raw
  To: gentoo-commits

commit:     e509d3d4c37d7e83db42ad2a99e2894b3748706f
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Mon Feb 19 13:44:03 2024 +0000
Commit:     Denis Reva <denis7774 <AT> gmail <DOT> com>
CommitDate: Mon Feb 19 13:44:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e509d3d4

dev-libs/gbinder: add 1.1.36, updated 9999

Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 dev-libs/gbinder/Manifest                          |  1 +
 .../gbinder/files/gbinder-1.1.36-respect-env.patch | 40 ++++++++++++++++++++++
 .../{gbinder-9999.ebuild => gbinder-1.1.36.ebuild} |  2 +-
 dev-libs/gbinder/gbinder-9999.ebuild               |  2 +-
 4 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/dev-libs/gbinder/Manifest b/dev-libs/gbinder/Manifest
index dc65cca8b7..54ba7b09ab 100644
--- a/dev-libs/gbinder/Manifest
+++ b/dev-libs/gbinder/Manifest
@@ -1,2 +1,3 @@
 DIST gbinder-1.1.30.tar.gz 205795 BLAKE2B a61b720a3d2b9fe79a4754c2e58569d05d8a16bd5dd35ac4e7616401b804604245e2b13a6ef12043737a00ce2f983bc01b408c5b2b68fe0db1b9c9e15b68ca84 SHA512 24e4e5156ab3f90dc2255b40ed6e74d0f14bce61879891179ae7291622b4179dd769749635f2811bc8a9f868257224385cf90ab43bd36a52e2f30e92ecb7ffd4
 DIST gbinder-1.1.32.tar.gz 204284 BLAKE2B 8a4f62c0d4988a02b32b659ea0f959e465ead1ea962504f7ae1aa36687235e522deeba3dc7206e32bb1d7c292de760266d8bb18a85da29df06affe49cd59c95f SHA512 3e4fbfbda627b189faf3eee183548cd4cda8a8b1b94b9f8d03572f1d3bc6fe13907f19104f28e5609f266d4c05c4bdb54c1c5ffbc6c537c9774d1def1d4cb09b
+DIST gbinder-1.1.36.tar.gz 204122 BLAKE2B f48fff65f2cf9dd8674110edb77116a6ef5cd621e81d32aae8b3cbf3cb96e8bc825087dd834853c509c6e89c73cf5a24b21c0e5443dfe13747ce1125523d7d30 SHA512 5727b25299286e8238a9b526fec9f72d631f584cabb21021d9f12e550059fe746e1165d5bb47ba79db52e2ccb5a3ce96dbd97761df78f13cf7e9a1554d1c3876

diff --git a/dev-libs/gbinder/files/gbinder-1.1.36-respect-env.patch b/dev-libs/gbinder/files/gbinder-1.1.36-respect-env.patch
new file mode 100644
index 0000000000..747683164b
--- /dev/null
+++ b/dev-libs/gbinder/files/gbinder-1.1.36-respect-env.patch
@@ -0,0 +1,40 @@
+diff --git a/Makefile b/Makefile
+index 0e25e90..862d5df 100644
+--- a/Makefile
++++ b/Makefile
+@@ -139,20 +139,20 @@ FULL_CFLAGS = $(BASE_FLAGS) $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
+   -MMD -MP $(shell $(PKG_CONFIG) --cflags $(PKGS))
+ FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) \
+   $(shell $(PKG_CONFIG) --libs $(PKGS)) -lpthread
+-DEBUG_FLAGS = -g
++DEBUG_FLAGS =
+ RELEASE_FLAGS =
+-COVERAGE_FLAGS = -g
++COVERAGE_FLAGS =
+ 
+ KEEP_SYMBOLS ?= 0
+ ifneq ($(KEEP_SYMBOLS),0)
+-RELEASE_FLAGS += -g
++RELEASE_FLAGS +=
+ 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
+-COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS) --coverage
++DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS)
++RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS)
++COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS)
+ 
+ #
+ # Files
+@@ -278,7 +278,7 @@ $(DEBUG_SO): $(DEBUG_OBJS)
+ $(RELEASE_SO): $(RELEASE_OBJS)
+ 	$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
+ ifeq ($(KEEP_SYMBOLS),0)
+-	$(STRIP) $@
++#	$(STRIP) $@
+ endif
+ 
+ $(DEBUG_LIB): $(DEBUG_OBJS)

diff --git a/dev-libs/gbinder/gbinder-9999.ebuild b/dev-libs/gbinder/gbinder-1.1.36.ebuild
similarity index 94%
copy from dev-libs/gbinder/gbinder-9999.ebuild
copy to dev-libs/gbinder/gbinder-1.1.36.ebuild
index c900ed13fc..66491f86d0 100644
--- a/dev-libs/gbinder/gbinder-9999.ebuild
+++ b/dev-libs/gbinder/gbinder-1.1.36.ebuild
@@ -28,7 +28,7 @@ BDEPEND="virtual/pkgconfig
 	sys-apps/sed"
 
 PATCHES=(
-	"${FILESDIR}/gbinder-1.1.30-r3-respect-env.patch"
+	"${FILESDIR}/gbinder-1.1.36-respect-env.patch"
 )
 src_prepare() {
 	default

diff --git a/dev-libs/gbinder/gbinder-9999.ebuild b/dev-libs/gbinder/gbinder-9999.ebuild
index c900ed13fc..66491f86d0 100644
--- a/dev-libs/gbinder/gbinder-9999.ebuild
+++ b/dev-libs/gbinder/gbinder-9999.ebuild
@@ -28,7 +28,7 @@ BDEPEND="virtual/pkgconfig
 	sys-apps/sed"
 
 PATCHES=(
-	"${FILESDIR}/gbinder-1.1.30-r3-respect-env.patch"
+	"${FILESDIR}/gbinder-1.1.36-respect-env.patch"
 )
 src_prepare() {
 	default


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-19 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 13:44 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/gbinder/, dev-libs/gbinder/files/ Denis Reva
  -- strict thread matches above, loose matches on Subject: below --
2022-12-20 11:07 Denis Reva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox