Mailinglist Archive: opensuse-buildservice (170 mails)

< Previous Next >
Re: [opensuse-buildservice] patterns for speciffic build targets
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Mon, 17 Dec 2007 11:23:09 +0100
  • Message-id: <47664E0D.9070809@xxxxxxx>
Hi,

any comments? Added Michael to cc as this is backend related.

thanks,
Michal

Michal Marek wrote:
===== idea 1 =====

My idea is to use the same <enable>/<disable> notation as used for packages,
obsoleting the <uservisible> tag. Eg.

<pattern
xmlns="http://novell.com/package/metadata/suse/pattern";
xmlns:rpm="http://linux.duke.edu/metadata/rpm";
<name>my pattern</name>
<summary>my packages</summary>
<description>my packages (standard build)</description>
<publish>
<disable repository="repo2" />
</publish>
....
</pattern>

<pattern
xmlns="http://novell.com/package/metadata/suse/pattern";
xmlns:rpm="http://linux.duke.edu/metadata/rpm";
<name>my pattern</name>
<summary>my packages</summary>
<description>my packages (special build)</description>
<publish>
<disable repository="repo1" />
</publish>
....
</pattern>

Of course, in real life we would have multiple <disable> lines and would have
to update them from time to time. Example (still shortened):

<description>PHP 5 (built against stock apache and mysql)</description>
<publish>
<!-- disable all but the base repositories -->
<disable repository="server_apache_openSUSE_10.2" />
<disable repository="server_apache_openSUSE_10.3" />
<disable repository="server_database_openSUSE_10.2" />
<disable repository="server_database_openSUSE_10.3" />
<!-- ... and so on for sles9, sles10, 10.0, 10.1, Factory... -->
</publish>

<description>PHP 5 (built against latest apache)</description>
<publish>
<!-- disable all but the server_apache_* repositories -->
<disable repository="openSUSE_10.2" />
<disable repository="openSUSE_10.3" />
<disable repository="server_database_openSUSE_10.2" />
<disable repository="server_database_openSUSE_10.3" />
<!-- ... and so on for sles9, sles10, 10.0, 10.1, Factory... -->
</publish>


===== idea 2 =====

Above is bettern than nothing, but quite too much typing and maintenance. So
another idea is to allow the <enable>/<disable> tags to select repositories
by some king of globbing or reqular expressions. Example:


<description>PHP 5 (built against stock apache)</description>
<publish>
<!-- disable all but the base repositories -->
<disable repository="server_apache_*" match="glob" />
<disable repository="server_database_*" match="glob" />
</publish>


<description>PHP 5 (built against latest apache)</description>
<publish>
<!-- disable all but the server_apache_* repositories -->
<disable />
<!-- AFAICS enable overrides disable in the current code, which fits our
needs -->
<enable repository="server_apache_*" match="glob" />
</publish>

What do you think? I can do the coding if you like the proposal :)

Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups