Re: Is rpmbuild reentrant?

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

 



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?

Neil

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





[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