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 }
