Smart doesn't detect 'armel' architecture correctly

Bug #351823 reported by Sidnei da Silva
2
Affects Status Importance Assigned to Milestone
Landscape Client
Invalid
Undecided
Unassigned
Smart Package Manager
Fix Released
Undecided
Unassigned

Bug Description

Apparently 'arm' is toast, long live to 'armel. Smart though assumes that anything that startswith('arm') should be 'arm'.

From the information on Debian's ArmEabiPort, seems like anything later than 'armv4te' should be 'armel':

"""
So Debian armel runs on a minimum CPU of ARMv4t and by default the Debian armel GCC generates code for armv4t (rather than the usual default ARM target of armv5t).
""" -- From: http://wiki.debian.org/ArmEabiPort

Revision history for this message
Sidnei da Silva (sidnei) wrote :

FWIW, in smart/backends/deb/base.py:getArchitecture():

   - sysconf.get("deb-arch") returns None
   - ... elif arch.startswith("arm"): return "arm"
     - Should probably be 'armel' here by default, and 'arm' only for
       'StrongARM' or earlier than 'ARMv4'

Changed in smart:
status: New → Confirmed
Revision history for this message
Sidnei da Silva (sidnei) wrote :

Due to misdetection of 'arm' vs 'armel' landscape-client doesn't see any available packages, it only sees a subset of the ones installed. Once 'armel' is returned correctly, the smart cache needs to be blown away for smart to see the right packages, and subsequently for landscape-client to upload the correct package information.

Changed in landscape-client:
status: New → Confirmed
Revision history for this message
Anders F Björklund (afb) wrote :

dpkg debian archtable says:
i486-linux-gnu i386
x86_64-linux-gnu amd64
arm-linux-gnu arm
arm-linux-gnueabi armel

ostable:
# <Debian name> <GNU name> <config.guess regex>
gnueabi-linux linux-gnueabi linux[^-]*-gnueabi
gnu-linux linux-gnu linux[^-]*(-gnu.*)?

Revision history for this message
Anders F Björklund (afb) wrote :
Changed in smart:
milestone: none → 1.4
Changed in smart:
milestone: 1.4 → 1.4.1
Changed in smart:
status: Confirmed → Fix Committed
Changed in smart:
status: Fix Committed → Fix Released
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

Landscape Team

Changed in landscape-client:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.