Hi I would not believe that code works as is expected .... Does anyone tested ? My comments are ###
%define has_sse2 %(isainfo -x | grep sse2 > /dev/null && echo 1 || echo 0) # Target architecture %ifarch sparc ### this is defined in pkgtool > ok %define _TARGET_ARCH -xtarget=ultra2 -m32 -xarch=sparcvis -xchip=ultra2 -xcache=64/32/4:8192/512/2 %endif ### this is end for %ifarch sparc > ok %ifarch i386 ### this is defined in pkgtool > ok %if %has_sse2 ### this is defined above > ok %define _TARGET_ARCH -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 %else ### here is wrong, because this 'else' is pair with %ifarch i386 not %if # This is an unsupported combination %define _TARGET_ARCH -xtarget=pentium3 -m32 -xarch=sse -xchip=pentium3 -xcache=16/32/4:256/32/4 ### this should be happen each time if ifarch _not_ equal i386 !!! %endif %endif -- Lukas 'Luc' Oboril IRC nickname: luc^ at freenode When dealing with people, let us remember we are not dealing with creatures of logic. We are dealing with creatures of emotions, creatures bristling with prejudices and motivated by pride and vanity. Dale Carnegie -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/kde-discuss/attachments/20080523/5628ae54/attachment.html>
