On 2013-10-22, Neil Horman <nhor...@redhat.com> wrote:
> On Tue, Oct 22, 2013 at 03:03:44PM +0000, Petr Pisar wrote:
>> Is it healty to execute rpmbuild while building a package?
>> 
>> I have tests for perl dependencency generator filters. I.e. the tests
>> build a package using rpmbuild with redefeined all the `_*dir' macros,
>> then use librpm to query requires and provides from built package, and
>> then do checks on the values.
>> 
>> I'm thinking how to plug the tests into Fedora. The simplest solution is
>> to run the tests in %check phase of a package (I don't know which one,
>> but it does not matter which one).
>> 
>> I've already heard warnings that calling rpm from package scriptlets is
>> not recommend.
>> 
>> What the situation with rpmbuild?
>> 
> I'm not sure how re-entrant-safe rpmbuild is, but doing the above seems a bit
> dodgy in general.  Could you instead package the test separately from the
> dependency generator rpm, make the latter depedent on the former, and then use
> chain-build in koji to build them at the same time?
>
Do you say to create a dummy package in Fedora? Package which itself has
dummy (possibly) unsatisfied dependencies? Package that ends up in
Fedora repositories? That's fishy.

-- Petr

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to