Bug 123594 - [PATCH] traceback when installing packages that require kernel packages
[PATCH] traceback when installing packages that require kernel packages
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: up2date (Show other bugs)
3.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Fanny Augustin
:
Depends On:
Blocks: up2date-rhel3-u3
  Show dependency treegraph
 
Reported: 2004-05-19 11:20 EDT by Elliot Peele
Modified: 2007-11-30 17:07 EST (History)
0 users

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


Attachments (Terms of Use)
Patch that fixes bug (11.90 KB, patch)
2004-05-20 00:11 EDT, Elliot Peele
no flags Details | Diff
patch for beter arch selection in genericSolveDep (1.51 KB, patch)
2004-06-10 16:44 EDT, Adrian Likins
no flags Details | Diff

  None (edit)
Description Elliot Peele 2004-05-19 11:20:29 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114 Epiphany/1.0.4

Description of problem:
When trying to install a package that requires kernel-unsupported I
get a traceback saying that package kernel-unsupported is intended for
a athlon architecture. I have tried this on two systems with the same
result. IIRC, this worked correctly before U2.

[root@rkbuild root]# up2date -u autofs
                                                                     
                    
Fetching package list for channel: rhel-i386-ws-3...
########################################
                                                                     
                    
Fetching package list for channel: rhel-i386-ws-3-extras...
########################################
                                                                     
                    
Fetching package list for channel: rhel-i386-ws-3-devsuite...
########################################
                                                                     
                    
Fetching package list for channel: realmlinux-ws3...
########################################
                                                                     
                    
Fetching package list for channel: physics...
                                                                     
                    
Fetching
http://install.linux.ncsu.edu/pub/yum/astro/physics-WS3/headers/header.info...
########################################
                                                                     
                    
Fetching Obsoletes list for channel: rhel-i386-ws-3...
                                                                     
                    
Fetching Obsoletes list for channel: rhel-i386-ws-3-extras...
                                                                     
                    
Fetching Obsoletes list for channel: rhel-i386-ws-3-devsuite...
                                                                     
                    
Fetching Obsoletes list for channel: realmlinux-ws3...
                                                                     
                    
Fetching Obsoletes list for channel: physics...
                                                                     
                    
Fetching rpm headers...
########################################
                                                                     
                    
Name                                    Version        Rel
----------------------------------------------------------
autofs                                  4.1.2          1             
   i386
                                                                     
                    
                                                                     
                    
Testing package set / solving RPM inter-dependencies...
########################################
autofs-4.1.2-1.i386.rpm:    ########################## Done.
kernel-unsupported-2.4.21-1 ########################## Done.
Preparing              ########################################### [100%]
Traceback (most recent call last):
  File "/usr/sbin/up2date", line 1174, in ?
    sys.exit(main() or 0)
  File "/usr/sbin/up2date", line 772, in main
    fullUpdate, dryRun=options.dry_run))
  File "/usr/sbin/up2date", line 1066, in batchRun
    batch.run()
  File "up2dateBatch.py", line 84, in run
  File "up2dateBatch.py", line 165, in __installPackages
  File "up2date.py", line 692, in installPackages
  File "up2date.py", line 580, in runTransaction
  File "rpmUtils.py", line 491, in runTransaction
up2date_client.up2dateErrors.TransactionError: RPM  error. The message
was:
Failed running transaction of  packages:
('package kernel-unsupported-2.4.21-15.EL is intended for a athlon
architecture', (0, 'athlon', 0L))


Version-Release number of selected component (if applicable):
4.2.16-1

How reproducible:
Always

Steps to Reproduce:
1. make package that requires a kernel package that isn't already
installed
2. try to install package using up2date
3.
    

Actual Results:  traceback and no install

Expected Results:  should install the correct kernel-unsupported package

Additional info:

*sigh*
Comment 1 Elliot Peele 2004-05-19 18:13:01 EDT
This works in 4.2.5 but not in 4.2.14 or 4.2.16.
Comment 2 Elliot Peele 2004-05-20 00:11:59 EDT
Created attachment 100367 [details]
Patch that fixes bug

This may cause some other problems. I also fixed the tabs so that everything is
now spaces in genericSolveDep.py.
Comment 3 Adrian Likins 2004-05-24 18:02:00 EDT
heh, somehow I knew that multilib change was too complicated...
Comment 4 Adrian Likins 2004-06-10 15:16:22 EDT
taking a look now..

the tab/space/whatever changes added a lot of noise
to the patch, but the biggest problem is I refactored
that code since then...

course the refactors stuff doesnt quite work yet
either... but I'll see what I can do
Comment 5 Adrian Likins 2004-06-10 16:43:16 EDT
try the attached patch and see if that behaves for you...
Comment 6 Adrian Likins 2004-06-10 16:44:36 EDT
Created attachment 101046 [details]
patch for beter arch selection in genericSolveDep
Comment 7 Elliot Peele 2004-06-10 17:24:01 EDT
seens to work
Comment 8 Elliot Peele 2004-06-10 17:24:43 EDT
seems that is
Comment 9 Adrian Likins 2004-06-10 18:24:32 EDT
reverted the refactor and applied that patch
lands in 4.2.22-1
Comment 10 Jay Turner 2004-08-02 21:32:35 EDT
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-367.html

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