Index | Thread | Search

From:
Marco van Hulten <marco@hulten.org>
Subject:
installing symlink fails
To:
ports@openbsd.org
Date:
Thu, 28 Aug 2025 11:09:26 +0200

Download raw body.

Thread
Hello,

I have written a port that builds fine (and 'make test' and 'make fake'
are successful), but package installation fails:


mvanhult@detekti:.../geo/eccodes$ make install
...
Link to /usr/ports/packages/amd64/ftp/eccodes-2.44pre.tgz
===>  Verifying specs: aec sz gfortran>=8 quadmath
===>  found aec.0.0 sz.0.0 gfortran.8.0 quadmath.3.0
===>  Installing eccodes-2.44pre from /usr/ports/packages/amd64/all/

eccodes-2.44pre (processing)|...

can't extract share/eccodes/definitions/bufr/tables/0/local/8/78/1,
it's not a file pkg_add: Installation of eccodes-2.44pre failed,
partial installation recorded as partial-eccodes-2.44pre *** Error 1 in
. (/usr/ports/infrastructure/mk/bsd.port.mk:2266
'/var/db/pkg/eccodes-2.44pre/+CONTENTS': @/usr/bin/env -i
PKG_TMPDIR=/var/tm...) *** Error 2 in /usr/ports/mystuff/geo/eccodes
(/usr/ports/infrastructure/mk/bsd.port.mk:2712 'install':
@lock=eccodes-2.44pre;  export _LOCK...)
mvanhult@detekti:.../geo/eccodes$ make install ===>  Installing
eccodes-2.44pre from /usr/ports/packages/amd64/all/ pkg_add: Can't call
method "key" on an undefined value *** Error 1 in .
(/usr/ports/infrastructure/mk/bsd.port.mk:2266
'/var/db/pkg/eccodes-2.44pre/+CONTENTS': @/usr/bin/env -i
PKG_TMPDIR=/var/tm...) *** Error 2 in /usr/ports/mystuff/geo/eccodes
(/usr/ports/infrastructure/mk/bsd.port.mk:2712 'install':
@lock=eccodes-2.44pre;  export _LOCK...)


The file '1' is a symbolic link with a directory '0' as its target.  The
extracted '1' has a lower inode number than '0'.  Could there be an
issue with extracting or installing '1' when '0' is not created yet?

And what happened the second time I ran 'make install'?

Marco