[Cuis] A small variation to use provides / requires

Germán Arduino garduino at gmail.com
Sun Aug 25 09:07:36 CDT 2013


Hi Ken:

I'm not saying that my approach is the best to all cases, probably not in
the simplest situations.

But when I've a package that have several req and at the same time this
package is a req of more than 1 different package, that at the same time
might have different req between them and coexist in the same image, I
think that may be more neat not to mess the real package (the one that
contains the real code) with prereq, and isolate them in an installer
package.

My feeling is that not having lot of #requieres hardcoded in the package
that have the real code of its domain may bring more flexibility in the
reuse at installation level.

But, it's only an opinion :)


2013/8/25 Ken Dickey <Ken.Dickey at whidbey.com>

> On Sat, 24 Aug 2013 17:44:30 -0300
> Germán Arduino <garduino at gmail.com> wrote:
>
> > In complex packages that have many prerequisites, it is sometimes
> > uncomfortable place them in the package.
>
> ...
> > Then, to install Swazoo you must evaluate: Feature require:
> > 'Swazoo-Installer' and from others installer packages that require
> Swazoo,
> > you only must add the #requires for Swazoo-Installer, and the real code
> > packages (Swazoo and others related to network in this case) remain
> > untouched and can be used from different installers.
>
> This confuses me.
>
> Why would I not just
>   !requires: 'Swazoo' 1 0 nil!  "Feature require: 'Swazoo'"
> for any packages that require Swazoo?
>
>
> Say I create a set of unit tests for Aida, and I want to pull in the
> networking tests as well.
>
> I should be able to do something like
>
> !provides: 'Aida-Tests' 1 0!
> !requires: 'Cuis-NetworkTests-UUID' 1 0 nil!
> !requires: 'Cuis-NetworkTests-RFC822' 1 0 nil!
> !requires: 'Aida 1 0!
>
> Then I just
>   Feature require: 'Aida-Tests'.
> and everything I need gets loaded in the right order.
>
> If I don't want the network tests, I just do
>
> !provides: 'Aida-Tests' 1 0!
> !requires: 'Aida 1 0!
>
>
> So
>
>   Feature require: 'Aida-Tests'.
>
> provides everything required to run Aida unit tests.
>
>
> Why create a separate 'Aida-Tests-Installer' ???
>
>
> I think it must be more simple than a separate installer so I will not be
> confused.
>
>
> -Ken
>
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20130825/b4e46e78/attachment-0002.html>


More information about the Cuis mailing list