[yast-devel] Common WebYaST RPM macros?
Hi all, I'm working on bug #594343 - "Enable testsuite during build for all architectures", this feature needs some additional code in .spec files. Because of some permission problems during RPM build the code for starting tests during RPM build is not simple. I'd like to avoid adding the same (and not nice looking) code into all packages. So my proposal is to create a generic set of RPM macros for use in all WebYaST packages. The macros would be defined in /etc/rpm/macros.webyast file. The problem is in which package it should be placed? I originally thought about webyast-base-ui and webyast-base-ws. But that would prevent from sharing the macros between WS and UI, some macros would be duplicated. Another (IMO better) solution is to put the macros to rubygem-webyast-rake-tasks package. It's currently needed only for WS packages, for UI plugins it would add a new dependency. But the tasks package is small and requires just rubygem and rake which are already needed so I think it's OK. More over we could add more common macros and shrink size of all .spec files and make the changes in .spec files easier. Editing and submitting one package is much easier than doing it for each plugin separately... I think that exactly this problem is addressed in bug #537406 "[task] unify packaging of webYaST packages". Please, comment on this ASAP. I'd like to implement it immediately when RC3 is out. I already have a working prototype... -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Tue, Apr 13, 2010 at 10:39:24AM +0200, Ladislav Slezak wrote:
I'm working on bug #594343 - "Enable testsuite during build for all architectures", this feature needs some additional code in .spec files. [...] Another (IMO better) solution is to put the macros to rubygem-webyast-rake-tasks package. It's currently needed only for WS packages, for UI plugins it would add a new dependency. But the tasks package is small and requires just rubygem and rake which are already needed so I think it's OK.
Sounds good. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
* Ladislav Slezak
The problem is in which package it should be placed? I originally thought about webyast-base-ui and webyast-base-ws. But that would prevent from sharing the macros between WS and UI, some macros would be duplicated.
Another (IMO better) solution is to put the macros to rubygem-webyast-rake-tasks package.
Yes, this seems the right place for now. In the future, we might think about a generic "webyast-devel" package (and possibly an associated 'webyast-testsuite' package) as a catch-all for development/build-time related stuff.
I think that exactly this problem is addressed in bug #537406 "[task] unify packaging of webYaST packages".
You might want to reach out to adrian@suse.de who's currently working on generating .spec files for the build service. I could imagine coming up with a DSL (domain specific language) for this task. (See e.g. http://www.infoq.com/news/2007/06/dsl-or-not) Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (3)
-
Klaus Kaempf
-
Ladislav Slezak
-
Martin Vidner