Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507030 - sys-apps/fakeroot - add debug USE flag
Summary: sys-apps/fakeroot - add debug USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 11:49 UTC by Joakim Tjernlund
Modified: 2014-05-10 17:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2014-04-07 11:49:01 UTC
Fakeroot has a debug compile flag. I suggest we add support for that
using USE flag debug, patch follows:

--- fakeroot-1.20.ebuild	2013-09-21 08:05:26.000000000 +0200
+++ /var/lib/layman/transmode/sys-apps/fakeroot/fakeroot-1.20.ebuild	2014-04-07 13:42:14.168030820 +0200
@@ -3,7 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/sys-apps/fakeroot/fakeroot-1.20.ebuild,v 1.1 2013/09/21 06:05:26 radhermit Exp $
 
 EAPI=4
-inherit eutils
+inherit eutils flag-o-matic
 
 DESCRIPTION="A fake root environment by means of LD_PRELOAD and SysV IPC (or TCP) trickery"
 HOMEPAGE="http://packages.qa.debian.org/f/fakeroot.html"
@@ -11,8 +11,8 @@
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="acl static-libs test"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ppc ~sparc x86 ~amd64-linux ~x86-linux"
+IUSE="acl static-libs test debug"
 
 DEPEND="acl? ( sys-apps/acl )
 	test? ( app-arch/sharutils )
@@ -26,7 +26,7 @@
 
 src_configure() {
 	export ac_cv_header_sys_acl_h=$(usex acl)
-
+	use debug && append-cppflags "-DLIBFAKEROOT_DEBUGGING"
 	econf \
 		$(use_enable static-libs static)
 }
Comment 1 SpanKY gentoo-dev 2014-04-07 20:04:07 UTC
looks fine
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2014-05-10 17:35:36 UTC
Committed without revbump and with IUSE flags sorted. Thanks

+  10 May 2014; Markos Chandras <hwoarang@gentoo.org> fakeroot-1.20.ebuild:
+  Add debug USE flag. Patch by Joakim Tjernlund <Joakim.Tjernlund@transmode.se>.
+  Bug #507030
+