FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-19-2007, 04:09 PM
Michael E Brown
 
Default Optional packages for the build-time testsuite runs?

On Mon, Nov 19, 2007 at 03:42:04PM +0100, Ralf Corsepius wrote:
>
> On Mon, 2007-11-19 at 14:24 +0100, Jan Kratochvil wrote:
> > Hi all,
> >
> > GDB package has its own large testsuite which is being run automatically from
> > .spec %check during the build to easily find any possible regressions.
> >
> > This testsuite automatically detects existence of some other packages
> > (gcc-gfortran gcc-java gcc-objc gcc-gnat) to run its optional parts to test
> > these specific langauges GDB support.
> >
> > These exotic languages/rpms (gcc-gfortran gcc-java gcc-objc gcc-gnat) may not
> > be commonly installed on the target systems where one may just want to
> > `rpmbuild --rebuild' the .src.rpm for various reasons (such as using newer GDB
> > in an older Fedora system).
> >
> > Listing gcc-gfortran/gcc-java/gcc-objc/gcc-gnat into BuildRequires (now since
> > gdb-6.7.1-4.fc9) just for the testsuite purposes brings:
> > pro) It enables the testsuite to run in Koji/mock.
> > con) It creates a burden for the users just rebuilding the rpm on their Fedora.
> >
> > Isn't there a way to do some?
> > %if %{mock}
> > BuildRequires: gcc-gfortran gcc-java gcc-objc gcc-gnat
> > %endif
> > Tried
> > %if 0%{?dist:1}
> > but %dist is defined even for simple --rebuild by the redhat-rpm-config rpm.
> What I have done in similar situations [1] is applying rpm's
> --with/--without in combination with koji scratch builds and local
> builds.
>
> I.e. I am using %{?_with_XXX} and friends inside of specs, such that you
> can specify them on rpmbuild's command-line for manual local builds.
>
> 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).
>
> A better approach probably would be to have way to pass
> rpmbuild-parameters to koji/mock for scratch builds.

Another idea that came up on #fedora-devel:

Have a 'is_production' variable at the top of the spec which defaults to
'on', and let people do --without-production, or some such.

--
Michael

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 11-19-2007, 11:39 PM
Jan Kratochvil
 
Default Optional packages for the build-time testsuite runs?

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@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 01:52 PM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org