[yast-devel] BuildRequires cleanup, check your *.spec files

Hi all, after converting YaST to Ruby we do not compile YCP modules to YBC binary files anymore. The compilation required all imported modules to be present in the system during build. With Ruby it's not needed. The result is that some packages can be possibly removed from BuildRequires. Of course, if an external module is needed for running the tests then it still must be present [1]. In extreme cases all Yast packages (besides yast2-devtools) can be removed from BuildRequires. Even yast2 and yast2-core, see this [2]. The list of packages which can be removed depends on what's tested. Or you might need some file from other package during build, therefore the cleanup cannot be done automatically. So please, check your *.spec files and think about possible obsolete BuildRequires and remove them. If you are unsure just try removing it and build the package locally using "osc". If it succeeds then it's not needed :-) Sometimes you need to modify the configure.in.in file, there might be a check which tests some package/library/file/... presence but it's actually not used later. If you need some help just ask here.... Removing an unnecessary BuildRequire means that less package rebuilds will be needed in OBS and the rebuilds will be faster after updating a package. Also local builds will be faster (less packages to download and install). Thanks! Ladislav [1] This could be potentially avoided by mocking the imports and module calls via 'mocha' gem. Later I'd like to create some example... [2] https://github.com/yast/yast-bootloader/pull/22 -- 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 To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
Ladislav Slezak