Errors when installing FreeBSD man pages

Errors when installing FreeBSD man pages

From: Kevin Sjöberg
I get the following errors when trying to install the man pages for FreeBSD. This is on macOS 13, running bsdmake and bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8.

~/code/exman (master) $ bsdmake install PREFIX=$HOME
install -d /Users/kevin/bin /Users/kevin/share/man/man1
install exman /Users/kevin/bin
install -m 644 exman.1 /Users/kevin/share/man/man1
bsdmake -C FreeBSD install
install -d /Users/kevin/share/exman/FreeBSD
tar -x -f base.txz -C /Users/kevin/share/exman/FreeBSD  --strip-components=4 './usr/share/man/man[1-9]/' || false
man3/execvp.3.gz: Can't create 'man3/execvp.3.gz'
man3/exec.3.gz: Hard-link target 'man3/execvP.3.gz' does not exist.
man3/archive_read_open_FILE.3.gz: Can't create 'man3/archive_read_open_FILE.3.gz'
man3/execle.3.gz: Hard-link target 'man3/execvP.3.gz' does not exist.
man3/archive_read_open2.3.gz: Hard-link target 'man3/archive_read_open_file.3.gz' does not exist.
man3/execl.3.gz: Hard-link target 'man3/execvP.3.gz' does not exist.
man3/archive_read_open_memory.3.gz: Hard-link target 'man3/archive_read_open_file.3.gz' does not exist.
man3/archive_read_open.3.gz: Hard-link target 'man3/archive_read_open_file.3.gz' does not exist.
man3/execlp.3.gz: Hard-link target 'man3/execvP.3.gz' does not exist.
man3/archive_write_open_file.3.gz: Can't create 'man3/archive_write_open_file.3.gz'
man3/archive_read_open_filename.3.gz: Hard-link target 'man3/archive_read_open_file.3.gz' does not exist.
man9/bus_get_cpus.9.gz: Can't create 'man9/bus_get_cpus.9.gz'
man9/BUS_DESCRIBE_INTR.9.gz: Can't create 'man9/BUS_DESCRIBE_INTR.9.gz'
man9/ALTQ.9.gz: Can't create 'man9/ALTQ.9.gz'
man9/BUS_BIND_INTR.9.gz: Can't create 'man9/BUS_BIND_INTR.9.gz'
man9/bus_teardown_intr.9.gz: Can't create 'man9/bus_teardown_intr.9.gz'
man9/vref.9.gz: Can't create 'man9/vref.9.gz'
man9/vrefl.9.gz: Hard-link target 'man9/VREF.9.gz' does not exist.
man4/fdt.4.gz: Can't create 'man4/fdt.4.gz'
man4/altq.4.gz: Can't create 'man4/altq.4.gz'
man4/SMP.4.gz: Can't create 'man4/SMP.4.gz'
man4/GEOM.4.gz: Can't create 'man4/GEOM.4.gz'
man1/Mail.1.gz: Can't create 'man1/Mail.1.gz'
man8/nis.8.gz: Can't create 'man8/nis.8.gz'
man8/YP.8.gz: Hard-link target 'man8/NIS.8.gz' does not exist.
man8/yp.8.gz: Hard-link target 'man8/NIS.8.gz' does not exist.
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /Users/kevin/code/exman/FreeBSD.
*** Error code 1

Stop in /Users/kevin/code/exman.

Any idea, what's going on? Is it an ordering issue? Hard links being extracted before the target has been extracted?

Thanks,
Kevin

Re: Errors when installing FreeBSD man pages

From: june
> On Nov 1, 2022, at 07:55, Kevin Sjöberg <kevin@hovsater.com> wrote:
> 
> Any idea, what's going on? Is it an ordering issue? Hard links being extracted before the target has been extracted?

Yeah, this is a case-insensitive filesystem issue as far as I can
tell. I don't have a good solution for it, I run make with
ALLOW_FAILURE=true on macOS so that it will continue extracting the
tarballs anyway. Unfortunately it seems that some pages just end
up missing, but I don't have any ideas how to work around it.