NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/48267: pkg_add thinks it's running on earm even though it's running on earmhf



>Number:         48267
>Category:       port-arm
>Synopsis:       pkg_add thinks it's running on earm even though it's running 
>on earmhf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 03 21:50:00 +0000 2013
>Originator:     Moritz Wilhelmy
>Release:        NetBSD 6.99.24 / pkgsrc-current
>Organization:
>Environment:
NetBSD raspi 6.99.24 NetBSD 6.99.24 (RPI) #0: Wed Oct  2 13:06:35 UTC 2013  
builds%b6.netbsd.org@localhost:/home/builds/ab/HEAD/evbarm-earmhf/201310020850Z-obj/home/builds/ab/HEAD/src/sys/arch/evbarm/compile/RPI
 evbarm
raspi# uname -mp
evbarm earmhf
>Description:
After building digest from pkgsrc-current, the package can't be installed 
because

# pkg_add  /home/pkgsrc/packages/pkgtools/digest-20121220.tgz                   
                                  
pkg_add: Warning: package `digest-20121220' was built for a platform:
pkg_add: NetBSD/earmhf 6.99.24 (pkg) vs. NetBSD/earm 6.99.24 (this host)
pkg_add: 1 package addition failed

The binary itself works, and all values indicate that I did actually install 
earmhf, not earm.

In fact, pkg_add is an earmhf binary too:
# readelf -n /usr/sbin/pkg_add 

Notes at offset 0x0000014c with length 0x00000018:
  Owner                 Data size       Description
  NetBSD        0x00000004      IDENT 699002400 (6.99.24)

Notes at offset 0x00000164 with length 0x00000014:
  Owner                 Data size       Description
  PaX                  0x00000004       Unknown note type: (0x00000003)

Notes at offset 0x00000178 with length 0x0000001c:
  Owner                 Data size       Description
  NetBSD        0x00000007      MARCH <earmhf>

I used the installation image from 
http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201310020850Z/evbarm-earmhf/binary/gzimg/rpi_inst.img.gz
>How-To-Repeat:
Install NetBSD/RPI from the image above
>Fix:



Home | Main Index | Thread Index | Old Index