Le jeudi 07 mars 2013 à 13:16 +0100, Ismail Doenmez a écrit :
Hi,
With every new architecture, one needs to update config.guess and config.sub files to recent version so configure scripts will work.
This is cumbersome because these files are huge and the patches will have to be refreshed with each release. Hence I'd like to propose a better way to do this.
First of all, we'll package gnuconfig (http://git.savannah.gnu.org/cgit/config.git/tree/) which contains official GNU config.guess/sub files.
Then add an rpm macro like
%update_config_guess_sub .
which will copy the latest config.{guess,sub} from the filesystem to the directory passed by the second parameter. This way we won't have ugly patches around.
Comments?
Couldn't it be done by the %configure macro ?
FYI, a long long time ago, we had a similar tool in Mandriva, called
cputoolize
( http://mes5devel.mandriva.com/iurt/aginies/chroot_2010.1/usr/bin/cputoolize ) which was automatically called by %configure (it was dropped in 2009, no longer needed in 2003. (more info at http://web.archive.org/web/20100620082254/http://lists.mandriva.com/cooker-a... ).
Sounds like old problems are coming back again ;)
--
Frederic Crozat