[Bug 292079] file(1) on ppc64 -HEAD (at least) builds do not detect libraries, binaries, etc
Date: Wed, 31 Dec 2025 17:13:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292079
Bug ID: 292079
Summary: file(1) on ppc64 -HEAD (at least) builds do not detect
libraries, binaries, etc
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: adrian@freebsd.org
file(1) in the latest (20251222) powerpc64 (big endian) doesn't detect
binary/library files correctly. This was installed from a cross-built -HEAD
snapshot install ISO.
See:
```
adrian@freebsd-16-ppc64-be:~ % file /bin/ls
/bin/ls: data
adrian@freebsd-16-ppc64-be:~ % /usr/local/bin/file /bin/ls
/bin/ls: ELF 64-bit MSB pie executable, 64-bit PowerPC or cisco 7500, OpenPOWER
ELF V2 ABI, version 1 (FreeBSD), dynamically linked, interpreter
/libexec/ld-elf.so.1, for FreeBSD 16.0 (1600007), FreeBSD-style, stripped
adrian@freebsd-16-ppc64-be:~ %
```
The port built file works fine.
Weirdly, port built file magic w/ the cross-built base file also works:
```
adrian@freebsd-16-ppc64-be:~ % !105
file -m /usr/local/share/file/magic.mgc /bin/ls
/bin/ls: ELF 64-bit MSB pie executable, 64-bit PowerPC or cisco 7500, OpenPOWER
ELF V2 ABI, version 1 (FreeBSD), dynamically linked, interpreter
/libexec/ld-elf.so.1, for FreeBSD 16.0 (1600007), FreeBSD-style, stripped
adrian@freebsd-16-ppc64-be:~ %
```
but the reverse (port file, local file.mgc) doesn't work.
--
You are receiving this mail because:
You are the assignee for the bug.