Bug 210825

Summary: ports-mgmt/pkg : On an 11.0 -r303469 (BETA3) rpi2: "pkg info -f" (pkg-1.8.7) Architecture still lists softfp: freebsd:11:armv6:32:el:eabi:softfp
Product: Ports & Packages Reporter: Mark Millard <marklmi26-fbsd>
Component: Individual Port(s)Assignee: Walter Schwarzenfeld <w.schwarzenfeld>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: marklmi26-fbsd, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (pkg)
Version: Latest   
Hardware: arm   
OS: Any   

Description Mark Millard 2016-07-04 20:42:39 UTC
Context:

# uname -apKU
FreeBSD rpi2 11.0-ALPHA6 FreeBSD 11.0-ALPHA6 #3 r302331M: Sun Jul  3 23:35:49 PDT 2016     markmi@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG  arm armv6 1100120 1100120

(WITH_LIBSOFT= was used in the 11.0 build. CPUTYPE=soft was not used the 11.0 build.)

Note the "softfp" below (using pkg itself as an example):

# pkg info -f pkg
pkg-1.8.6
Name           : pkg
Version        : 1.8.6
Installed on   : Mon Jul  4 03:26:21 2016 PDT
Origin         : ports-mgmt/pkg
Architecture   : freebsd:11:armv6:32:el:eabi:softfp
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : http://wiki.freebsd.org/pkgng
Comment        : Package manager
Shared Libs provided:
        libpkg.so.3
Annotations    :
Flat size      : 21.7MiB
Description    :
Package management tool
 
WWW: http://wiki.freebsd.org/pkgng

(I rebuilt all the ports present on the rpi2 to check this behavior: -r417989 update of /usr/ports.)

# ldd `which pkg`
/usr/sbin/pkg:
        libarchive.so.6 => /usr/lib/libarchive.so.6 (0x20042000)
        libfetch.so.6 => /usr/lib/libfetch.so.6 (0x200f2000)
        libprivateucl.so.1 => /usr/lib/libprivateucl.so.1 (0x2010a000)
        libsbuf.so.6 => /lib/libsbuf.so.6 (0x20131000)
        libcrypto.so.8 => /lib/libcrypto.so.8 (0x20200000)
        libssl.so.8 => /usr/lib/libssl.so.8 (0x2013b000)
        libc.so.7 => /lib/libc.so.7 (0x20400000)
        libz.so.6 => /lib/libz.so.6 (0x20199000)
        libbz2.so.4 => /usr/lib/libbz2.so.4 (0x201b5000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x201ce000)
        libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x2039f000)
        libm.so.5 => /lib/libm.so.5 (0x203c9000)
        libthr.so.3 => /lib/libthr.so.3 (0x20582000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x203ec000)

pkg info -f -a shows similarly for all of the ports on the rpi2 (other than portmaster). The list of ports is:

# pkg info
atf-0.21                       C, C++ and shell libraries to write ATF-compliant test programs
autoconf-2.69_1                Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
automake-1.15_1                GNU Standards-compliant Makefile generator
automake-wrapper-20131203      Wrapper script for GNU automake
binutils-2.25.1_3,1            GNU binary tools
bison-2.7.1,1                  Parser generator from FSF, (mostly) compatible with Yacc
db5-5.3.28_4                   Oracle Berkeley DB, revision 5.3
dialog4ports-0.1.5_2           Console Interface to configure ports
gcc6-6.1.0                     GNU Compiler Collection 6
gettext-runtime-0.19.8.1       GNU gettext runtime libraries and programs
gettext-tools-0.19.8.1         GNU gettext development and translation tools
gmake-4.2.1                    GNU version of 'make' utility
gmake-lite-4.2.1               Minimalist version of gnu make
gmp-5.1.3_3                    Free library for arbitrary precision arithmetic
help2man-1.43.3_1              Automatically generating simple manual pages from program output
indexinfo-0.2.4                Utility to regenerate the GNU info page index
kyua-0.11_1,3                  Testing framework for infrastructure software
libedit-3.1.20150325_2,1       Command line editor library
libffi-3.2.1                   Foreign Function Interface
libyaml-0.1.6_2                YAML 1.1 parser and emitter written in C
lua52-5.2.4                    Small, compilable scripting language providing easy access to C code
lutok-0.4_6                    Lightweight C++ API for Lua
m4-1.4.17_1,1                  GNU m4
mpc-1.0.3                      Library of complex numbers with arbitrarily high precision
mpfr-3.1.4                     Library for multiple-precision floating-point computations
p5-Locale-gettext-1.06         Message handling functions
patch-2.7.5                    GNU patch utility
perl5-5.22.2_1                 Practical Extraction and Report Language
pkg-1.8.6                      Package manager
pkgconf-0.9.12_1               Utility to help to configure compiler and linker flags
portmaster-3.17.9_2            Manage your ports without external databases or languages
portupgrade-2.4.14,2           FreeBSD ports/packages administration and management tool suite
ruby-2.2.5,1                   Object-oriented interpreted scripting language
ruby22-bdb-0.6.6_4             Ruby interface to Oracle Berkeley DB revision 2 or later
sqlite3-3.13.0                 SQL database engine in a C library
texinfo-6.1.20160425           Typeset documentation system with multiple format output
Comment 1 Mark Millard 2016-07-04 20:50:46 UTC
(In reply to Mark Millard from comment #0)

# file `which pkg`
/usr/sbin/pkg: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0 (1100120), Free
BSD-style, stripped
Comment 2 Mark Millard 2016-07-09 00:28:34 UTC
(In reply to Mark Millard from comment #1)

This just notes a relationship to the armv6 system environment. . .

I updated the rpi2 to 11.0 -r302412 built using WITHOUT_LIBSOFT= . I also then deleted /usr/libsoft/. . . (it was not deleted by delete-old or delete-old-libs).

pkg 1.8.6 still lists: freebsd:11:armv6:32:el:eabi:softfp

So softfp is listed even without libsoft being around.
Comment 3 Mark Millard 2016-08-02 09:43:31 UTC
Updated description to indicate 11.0-BETA3 and pkg-1.8.7 since, for example:

# uname -apKU
FreeBSD rpi2 11.0-BETA3 FreeBSD 11.0-BETA3 #2 r303469M: Fri Jul 29 19:09:12 PDT 2016     markmi@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG  arm 
armv6 1100120 1100120

# pkg info pkg
pkg-1.8.7
Name           : pkg
Version        : 1.8.7
Installed on   : Mon Jul 25 02:49:58 2016 PDT
Origin         : ports-mgmt/pkg
Architecture   : freebsd:11:armv6:32:el:eabi:softfp
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : http://wiki.freebsd.org/pkgng
Comment        : Package manager
Shared Libs provided:
        libpkg.so.3
Annotations    :
Flat size      : 21.7MiB
Description    :
Package management tool
 
WWW: http://wiki.freebsd.org/pkgng

It still lists ":softfp" but there is no /usr/libsoft as the system was not built with it:

# ls -d /usr/lib*
/usr/lib        /usr/libdata    /usr/libexec

I also changed the Hardware to arm (from my mistaken initial: Any).
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-13 21:49:52 UTC
Is this still relevant on newer versions as 11.0?
Comment 5 Mark Millard 2018-01-13 22:11:21 UTC
(In reply to w.schwarzenfeld from comment #4)

Unsure for armv6.

For armv7 (which I have available to look at): no,
at least for head (12) . . .

# uname -apKU
FreeBSD rpi2 12.0-CURRENT FreeBSD 12.0-CURRENT  r327485M  arm armv7 1200054 1200054

# pkg info -f pkg
pkg-1.10.3_1
Name           : pkg
Version        : 1.10.3_1
Installed on   : Sun Dec 10 02:07:31 2017 PST
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:12:armv7
. . .

But this does not test stable/11 or release/11.* at all.

What I've got configured does not span the range of
alternatives that now exist.
Comment 6 Walter Schwarzenfeld freebsd_triage 2019-08-15 15:34:46 UTC
I close here. Please, reopen if there still (or again) problems.