Optional packages for the build-time testsuite runs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


Thanks for hints,
Jan

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux