On Mon, 19 Nov 2007 17:57:08 +0100, Michael E Brown wrote: > On Mon, Nov 19, 2007 at 03:42:04PM +0100, Ralf Corsepius wrote: ... > > For chrooted "non-production/test-builds" (e.g. koji scratch-builts) I > > edit the spec (adding %define _with_XXX <something> to the top of the > > spec). I do not like any hand-editing requirement, I was looking for a transparent solution. ... > 1) Use the 'more_buildreqs' mock config: > > config_opts['more_buildreqs']['srpm_name-version-release'] = > 'dependency list' This would put the GDB-specific stuff (dependency list) into the mock package... > 2) Use a RPM macro defined in mock to enable this: > > config_opts['macros']['%_exhaustive_testsuite'] = "1" Nice idea. While it could be made clean by introducing such general macro there so far I tried (going to commit it) a GDB-only automatic detection by: %if "%{_topdir}" == "/builddir/build" BuildRequires: gcc-xyzzy %endif %_topdir is already being set by mock (and thus koji) to such value by default. It can get updated later if someone introduces some "%XYZtestsuite" macro. Thanks, Jan -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list