From 508b842df4cdf5ec9c6dce8380a3796e6c3faa4c Mon Sep 17 00:00:00 2001 From: Denis Reva Date: Wed, 21 Dec 2022 19:20:24 +0500 Subject: [PATCH] dev-libs/gbinder: Fixed unnecessary debug flag in makefile Closes: https://bugs.gentoo.org/887615 Signed-off-by: Denis Reva --- .../files/gbinder-1.1.30-r3-respect-env.patch | 40 +++++++++++++++++++ ....30-r2.ebuild => gbinder-1.1.30-r3.ebuild} | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 dev-libs/gbinder/files/gbinder-1.1.30-r3-respect-env.patch rename dev-libs/gbinder/{gbinder-1.1.30-r2.ebuild => gbinder-1.1.30-r3.ebuild} (94%) diff --git a/dev-libs/gbinder/files/gbinder-1.1.30-r3-respect-env.patch b/dev-libs/gbinder/files/gbinder-1.1.30-r3-respect-env.patch new file mode 100644 index 0000000000..5f9d974f95 --- /dev/null +++ b/dev-libs/gbinder/files/gbinder-1.1.30-r3-respect-env.patch @@ -0,0 +1,40 @@ +diff --git a/Makefile b/Makefile +index e838b7e..4ce2039 100644 +--- a/Makefile ++++ b/Makefile +@@ -136,20 +136,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 += -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 +-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 +@@ -275,7 +275,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-1.1.30-r2.ebuild b/dev-libs/gbinder/gbinder-1.1.30-r3.ebuild similarity index 94% rename from dev-libs/gbinder/gbinder-1.1.30-r2.ebuild rename to dev-libs/gbinder/gbinder-1.1.30-r3.ebuild index cd97f3663a..c900ed13fc 100644 --- a/dev-libs/gbinder/gbinder-1.1.30-r2.ebuild +++ b/dev-libs/gbinder/gbinder-1.1.30-r3.ebuild @@ -28,7 +28,7 @@ BDEPEND="virtual/pkgconfig sys-apps/sed" PATCHES=( - "${FILESDIR}/gbinder-1.1.30-respect-env.patch" + "${FILESDIR}/gbinder-1.1.30-r3-respect-env.patch" ) src_prepare() { default