Mailinglist Archive: yast-devel (144 mails)

< Previous Next >
[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

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

So please, check your *.spec files and think about possible obsolete
and remove them. If you are unsure just try removing it and build the package
using "osc". If it succeeds then it's not needed :-)

Sometimes you need to modify the file, there might be a check
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
in OBS and the rebuilds will be faster after updating a package. Also local
will be faster (less packages to download and install).



[1] This could be potentially avoided by mocking the imports and module calls
'mocha' gem. Later I'd like to create some example...



Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages