Bug 70539 - athlon shows up as i786
athlon shows up as i786
Product: Red Hat Public Beta
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2002-08-02 08:34 EDT by Harald Hoyer
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-02 08:34:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Harald Hoyer 2002-08-02 08:34:20 EDT
Description of Problem:
$ rpmbuild --showrc|head
build arch            : i786
compatible build archs: i786
build os              : Linux
compatible build os's : Linux
install arch          : i786
install os            : Linux
compatible archs      : i786
compatible os's       : Linux

Version-Release number of selected component (if applicable):
$ rpm -qf $(which rpmbuild )

	    if (class == '6' && is_athlon())
	    	strcpy(un.machine, "athlon");
	if (cap & (1<<15)) {
		/* CMOV supported? */
		if (capamd & (1<<30))
			return 7;	/* 3DNOWEXT supported */
		return 6;

	    if ((class == '6' && is_athlon()) || class == '7')
	    	strcpy(un.machine, "athlon");
Comment 1 Jeff Johnson 2002-08-02 09:16:42 EDT
Correction, athlon with CMOV shows up as i786.

Your patch is applied in rpm-4.1-0.64, but CMOV
wrto the thundering herd of x86 is gonna need
fixing pretty soon. This asm voodoo in lib/rpmrc.c
is breaking badly.
Comment 2 Harald Hoyer 2002-08-02 09:21:56 EDT
ok, i786, but then i786 should be able to install ix86 packages!!!
Comment 3 Jeff Johnson 2002-08-02 09:28:40 EDT
No argument here, but then the question becomes
	What's an arch (in rpm terms)?
	What's an install (in rpm terms)?
For example, a package with executables that use CMOV intended for
rpm arch "athlon" will install perfectly -- but not function --
with your patch as applied. And, of course, there ain't no
such beastie as "i786" outside of rpm.

FYI You can do
	echo "athlon-redhat-linux-gnu" > /etc/rpm/platform
to work around this crap.

Note You need to log in before you can comment on or make changes to this bug.