Bugs item #1061168, was opened at 2004-11-05 12:35
Message generated for change (Comment added) made by dnl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=1061168&group_id=9368

Category: Installation
Group: 4.0
Status: Open
Resolution: None
Priority: 7
Submitted By: Benoit des Ligneris (bligneri)
Assigned to: David N. Lombard (dnl)
Summary: Problem with update-rpm on IA64

Initial Comment:
We discovered that something seems to be broken with
update-rpm on IA64.

Here is the bug report :
[EMAIL PROTECTED] oscar]# update-rpms tftp-hpa --verbose


==> /usr/bin/update-rpms 'tftp-hpa' '--verbose'
update-rpms, version 1.1.11

Using cache in /var/cache/update-rpms

User-specified URL
  (/tftpboot/rpm)

  Getting list of available files... (1137 files)

Analyzing RPMs
  Reading cache... (1 sec)
  Querying RPMs... (2 RPMs)
  Selecting RPMs... (1 sec)

RPM Installation Order:
  No RPMs are selected for installation.

Dependencies for the following RPMs cannot be resolved:
  --verbose providing RPM not found.
<== ERROR: --verbose providing RPM not found.
  tftp-hpa providing RPM not found.
<== ERROR: tftp-hpa providing RPM not found.
<== $? 1

Then :
rpm -Uvh /tftpboot/rpm/tftp-hpa-0.21-1oscar.ia64.rpm
Preparing...                ############################

This occurs very often : each time a rpm selected is
already installed, update-rpm failed...

When you install the RPM manually, all is fine.

I think that this is caused by the fact that some RPMs
are present with different architecture : i386 and ia64
for instance
ls /tftpboot/rpm/tftp-hpa-0.21-1oscar.i* -l
-rw-r--r--    1 root     root        35676 Nov  5 14:20
/tftpboot/rpm/tftp-hpa-0.21-1oscar.i386.rpm
-rw-r--r--    1 root     root        35676 Nov  5 14:20
/tftpboot/rpm/tftp-hpa-0.21-1oscar.ia64.rpm


----------------------------------------------------------------------

>Comment By: David N. Lombard (dnl)
Date: 2004-11-06 00:27

Message:
Logged In: YES 
user_id=27334

Funny you should mention tftp-hpa-0.21-1oscar.ia64.rpm. 
This is just the i386 rpm's file renamed to ia64. So,
update-rpms doesn't see it as a consistent file, so can't
install it.

This is an error condition as you asked to install a
specific item, which update-rpms can't do (can't means
won't, soldier).

The other errors were fixed, and now update-rpms is
perfectly willing to install all the valid ia64 rpms.

As for installing i386 rpms on ia64, the fix is to set
"--arch=ia64,i386,noarch" on the update-rpms command line,
in packman-updaterpms

----------------------------------------------------------------------

Comment By: Benoit des Ligneris (bligneri)
Date: 2004-11-05 12:48

Message:
Logged In: YES 
user_id=179120

More detailed example :
update-rpms tftp-hpa


==> /usr/bin/update-rpms 'tftp-hpa'
update-rpms, version 1.1.11

Using cache in /var/cache/update-rpms

User-specified URL
  (/tftpboot/rpm)

  Getting list of available files... (1137 files)

Analyzing RPMs
  Reading cache... (1 sec)
  Querying RPMs... (2 RPMs)
  Selecting RPMs...

RPM Installation Order:
  No RPMs are selected for installation.

Dependencies for the following RPMs cannot be resolved:
  tftp-hpa providing RPM not found.
<== ERROR: tftp-hpa providing RPM not found.
<== $? 1

[EMAIL PROTECTED] oscar]# rpm -Uvh
/tftpboot/rpm/tftp-hpa-0.21-1oscar.ia64.rpm
Preparing...               
########################################### [100%]
        package tftp-hpa-0.21-1oscar is already installed
[EMAIL PROTECTED] oscar]# echo $?
1

>From what I understand, when a RPM is already installed, the
return value from the rpm command is one.  update-rpm seems
to consider this an error an failed...

update-rpm should allow 0 or 1 as return values from the
exit code of RPM and this should fix the bug...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=1061168&group_id=9368


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to