From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 64CED15814C for ; Mon, 2 Oct 2023 12:27:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B0642BC09E; Mon, 2 Oct 2023 12:27:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 398FA2BC036 for ; Mon, 2 Oct 2023 12:27:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 495E0335CB9 for ; Mon, 2 Oct 2023 12:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC2EC930 for ; Mon, 2 Oct 2023 12:27:07 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1696249299.0d65b247b839fc2574f59722d650ab04b3a5f803.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-gfx/nsxiv/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/nsxiv/nsxiv-32.ebuild media-gfx/nsxiv/nsxiv-9999.ebuild X-VCS-Directories: media-gfx/nsxiv/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 0d65b247b839fc2574f59722d650ab04b3a5f803 X-VCS-Branch: master Date: Mon, 2 Oct 2023 12:27:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cfea89ee-534e-4853-9775-834458bb364f X-Archives-Hash: 9f131c795c344a3efb862cb75947161c commit: 0d65b247b839fc2574f59722d650ab04b3a5f803 Author: NRK disroot org> AuthorDate: Mon Oct 2 12:18:32 2023 +0000 Commit: David Roman gmail com> CommitDate: Mon Oct 2 12:21:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0d65b247 media-gfx/nsxiv: add debug useflag v32 changed from having assertions enabled by default to having them disabled. explicitly passing `-DDEBUG` is now required to enable assertions. Signed-off-by: NRK disroot.org> media-gfx/nsxiv/nsxiv-32.ebuild | 9 ++++++--- media-gfx/nsxiv/nsxiv-9999.ebuild | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/media-gfx/nsxiv/nsxiv-32.ebuild b/media-gfx/nsxiv/nsxiv-32.ebuild index 21454ad79b..289eb79656 100644 --- a/media-gfx/nsxiv/nsxiv-32.ebuild +++ b/media-gfx/nsxiv/nsxiv-32.ebuild @@ -18,7 +18,7 @@ HOMEPAGE="https://codeberg.org/nsxiv/nsxiv" LICENSE="GPL-2+ public-domain" SLOT="0" -IUSE="+statusbar +inotify exif" +IUSE="+statusbar +inotify exif debug" RDEPEND=" x11-libs/libX11 @@ -43,12 +43,15 @@ src_prepare() { } src_configure() { + # avoid rebuild on `make install` sed -i -e '/^install: / s|: all|:|' Makefile || die - sed -i -e 's|^CFLAGS =|CFLAGS +=|;s|-O2 ||;' config.mk || die } src_compile() { - emake CC="$(tc-getCC)" OPT_DEP_DEFAULT=0 \ + local dbg="" + use debug && dbg="-UNDEBUG -DDEBUG" + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${dbg}" \ + OPT_DEP_DEFAULT=0 \ HAVE_INOTIFY="$(usex inotify 1 0)" \ HAVE_LIBFONTS="$(usex statusbar 1 0)" \ HAVE_LIBEXIF="$(usex exif 1 0)" diff --git a/media-gfx/nsxiv/nsxiv-9999.ebuild b/media-gfx/nsxiv/nsxiv-9999.ebuild index 21454ad79b..289eb79656 100644 --- a/media-gfx/nsxiv/nsxiv-9999.ebuild +++ b/media-gfx/nsxiv/nsxiv-9999.ebuild @@ -18,7 +18,7 @@ HOMEPAGE="https://codeberg.org/nsxiv/nsxiv" LICENSE="GPL-2+ public-domain" SLOT="0" -IUSE="+statusbar +inotify exif" +IUSE="+statusbar +inotify exif debug" RDEPEND=" x11-libs/libX11 @@ -43,12 +43,15 @@ src_prepare() { } src_configure() { + # avoid rebuild on `make install` sed -i -e '/^install: / s|: all|:|' Makefile || die - sed -i -e 's|^CFLAGS =|CFLAGS +=|;s|-O2 ||;' config.mk || die } src_compile() { - emake CC="$(tc-getCC)" OPT_DEP_DEFAULT=0 \ + local dbg="" + use debug && dbg="-UNDEBUG -DDEBUG" + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${dbg}" \ + OPT_DEP_DEFAULT=0 \ HAVE_INOTIFY="$(usex inotify 1 0)" \ HAVE_LIBFONTS="$(usex statusbar 1 0)" \ HAVE_LIBEXIF="$(usex exif 1 0)"