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

commit:     3f0c826036916bbaac16753d9f76e5a843d4049c
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Tue Dec 20 11:21:32 2022 +0000
Commit:     Denis Reva <denis7774 <AT> gmail <DOT> com>
CommitDate: Tue Dec 20 11:21:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3f0c8260

Bugfixes: fixed -Ox and -g flags, fixed tests

Closes: https://bugs.gentoo.org/887303
Closes: https://bugs.gentoo.org/887301
Closes: https://bugs.gentoo.org/859742
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 .../files/libglibutil-1.0.67-respect-env.patch     | 38 ++++++++++++++++++++++
 ...0.67-r1.ebuild => libglibutil-1.0.67-r2.ebuild} | 11 +++++--
 2 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libglibutil/files/libglibutil-1.0.67-respect-env.patch b/dev-libs/libglibutil/files/libglibutil-1.0.67-respect-env.patch
new file mode 100644
index 000000000..a68dbdb1a
--- /dev/null
+++ b/dev-libs/libglibutil/files/libglibutil-1.0.67-respect-env.patch
@@ -0,0 +1,38 @@
+diff --git a/Makefile b/Makefile
+index 3e9aa23..252bf2c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -84,15 +84,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_FLAGS)
+ RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(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
+ 
+ #
+@@ -190,9 +190,9 @@ $(DEBUG_LIB): $(DEBUG_OBJS)
+ 
+ $(RELEASE_LIB): $(RELEASE_OBJS)
+ 	$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
+-ifeq ($(KEEP_SYMBOLS),0)
+-	$(STRIP) $@
+-endif
++#ifeq ($(KEEP_SYMBOLS),0)
++#	$(STRIP) $@
++#endif
+ 
+ $(DEBUG_LINK): $(DEBUG_LIB)
+ 	ln -sf $(LIB) $@

diff --git a/dev-libs/libglibutil/libglibutil-1.0.67-r1.ebuild b/dev-libs/libglibutil/libglibutil-1.0.67-r2.ebuild
similarity index 75%
rename from dev-libs/libglibutil/libglibutil-1.0.67-r1.ebuild
rename to dev-libs/libglibutil/libglibutil-1.0.67-r2.ebuild
index 68582392a..543c4438a 100644
--- a/dev-libs/libglibutil/libglibutil-1.0.67-r1.ebuild
+++ b/dev-libs/libglibutil/libglibutil-1.0.67-r2.ebuild
@@ -11,7 +11,7 @@ else
 	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 fi
 
-DESCRIPTION="Library of glib utilities"
+DESCRIPTION="Library of glib utilities from sailfishos project"
 HOMEPAGE="https://github.com/sailfishos/libglibutil"
 LICENSE="BSD"
 SLOT="0"
@@ -19,11 +19,18 @@ SLOT="0"
 DEPEND="dev-libs/glib"
 RDEPEND="${DEPEND}"
 BDEPEND="virtual/pkgconfig"
+PATCHES=(
+	"${FILESDIR}/libglibutil-1.0.67-respect-env.patch"
+)
 
 src_compile() {
-	emake KEEP_SYMBOLS=1 LIBDIR="/usr/$(get_libdir)"
+	emake LIBDIR="/usr/$(get_libdir)"
 }
 
 src_install() {
 	emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev
 }
+
+src_test() {
+	emake test
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-20 11:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 11:21 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/libglibutil/, dev-libs/libglibutil/files/ Denis Reva

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