Bug 993

Summary: [zypper] zypper can not install packages which from 'all' directory in repository
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Qing He <qing.he>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jiajun.xu, liang.li2, liangliang.wang, meta.mr.watcher, meta.watcher, qing.he, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.0 PointRelease   
Hardware: Other   
OS: Multiple   
Whiteboard: Patch Staged in Bernard for integration
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 970    

Description Yi Zhao 2011-04-15 00:17:11 UTC
Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-28-generic

Image location:
http://autobuilder.pokylinux.org/nightly/20110412-1/
Commit information: 6bf6aec120744211fbabf2b4a167bfd1ab5866fd


With these images, including qemuarm qemumips and qemuppc, zypper can not install packages which from 'all' directory in repository. 

For example, I want to install 'hal-info' which from 'all' directory on qemuppc.

###############
root@qemuppc:~# zypper search hal
Loading repository data...
Reading installed packages...

S | Name            | Summary                                          | Type   
--+-----------------+--------------------------------------------------+--------
  | hal             | hal version 0.5.14-r3                            | package
  | hal-dbg         | hal version 0.5.14-r3 - Debugging files          | package
  | hal-dev         | hal version 0.5.14-r3 - Development files        | package
  | hal-doc         | hal version 0.5.14-r3 - Documentation files      | package
  | hal-info        | hal-info version 20091130-r0                     | package
  | hal-info-dbg    | hal-info version 20091130-r0 - Debugging files   | package
  | hal-info-dev    | hal-info version 20091130-r0 - Development files | package
  | libhal-storage1 | hal version 0.5.14-r3                            | package
  | libhal1         | hal version 0.5.14-r3                            | package
#############

'hal-info' can be shown when I search it. But I can not install it.

#############
root@qemuppc:~# zypper in hal-info
Loading repository data...
Reading installed packages...
Package 'hal-info' not found.
Resolving package dependencies...

Nothing to do.
###############

However, I can install any packages which from 'qemuppc' and 'ppc603e' directories in repository.

This issue does *not* happen on 1.0 release images.
Comment 1 Qing He 2011-04-15 01:40:55 UTC
see bug 970 as well

all being not recognized or installable is because that sat-solver is using noarch instead of all, this issue was introduced by zypper arm fix. An option called POKY_SEMANTICS was added to use debian like package naming but the config flags was not updated accordingly.

A patch to fix this is prepared and pending.
Comment 3 Yi Zhao 2011-05-10 18:45:10 UTC
This issue has been fixed on 20110506 build. 
git commit 856a5e496b7ddd814f6a94552d02074f0ab30842
Comment 4 Yi Zhao 2011-05-10 18:45:50 UTC
VERIFIED it.
Comment 6 Saul Wold 2011-05-13 10:55:11 UTC
Need to be verified for 1.0.1
Comment 7 Yi Zhao 2011-05-16 23:33:13 UTC
Verified it on 1.0.1 build 20110513
Branch: Bernard
git commit: 1b159ff35d9f484e72afb8b19a9e69a2770d8379