On Monday 21 December 2009 06:06:26 pm Jan Engelhardt wrote: > Hi, > > > RPM offers the targets sparcv9v/sparc64v (which is, simply put, > cflags += -mtune=niagara). > > On a sun4v, it would make sense to prefer v9v/64v packages over v9/64 > packages — and the reverse on sun4u — when a package manager > considers potential candidate files for installation of a wanted > package. > > But how would the package manager (apt-get/yum/zypper) decide whether > they are on sun4v or not, without resorting to testing for > SPARC-specific hardware itself? That is to say, I think the kernel > should hand out this information in some way perhaps. Solaris's uname(2) > syscall would directly return sun4[cduv], while Linux just outputs > sparc/sparc64. > yum does this by checking /proc/cpuinfo look at /usr/lib/python2.6/site- packages/rpmUtils/arch.py on a F-12 box and search for sun4v rpm has a similar check based on the same information. both will refuse to install a sparcv9v package on hardware that is not capable of running it. Dennis
Attachment:
signature.asc
Description: This is a digitally signed message part.