ports-mgmt/pkg (still) fails to install in DESTDIR

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Fri Mar 27 14:26:57 UTC 2015


On Fri, 27 Mar 2015 15:20+0100, rank1seeker at gmail.com wrote:

> # make -C /usr/ports/ports-mgmt/pkg DESTDIR=/poligon/freebsd install clean
> Fails at:
> ------------------
> ====> Compressing man pages (compress-man)
> ===>  Installing for pkg-1.4.12
> ===>  Checking if pkg already installed
> ===>   Registering installation for pkg-1.4.12
> pkg-static: Cannot open "/var/run/ld-elf.so.hints": No such file or directory

I've seen this from time to time. I resolved it in two steps:

rm /var/run/ld-elf*.so.hints
/etc/rc.d/ldconfig start

In your case, this should be done from within the chroot env.

> *** Error code 1
> 
> Stop.
> make[1]: stopped in /tmp/mountpoint.w4WP0q/ports-mgmt/pkg
> *** Error code 1
> 
> Stop.
> make: stopped in /tmp/mountpoint.w4WP0q/ports-mgmt/pkg
> ===>  Chrooted make in /poligon/freebsd failed
> ===>  Cleaning up...
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/ports-mgmt/pkg
> ------------------
> 
> I've found this, but it was 2 years ago and still not implemented/fixed:
>     http://lists.freebsd.org/pipermail/svn-src-stable-10/2013-December/000495.html
> 
> My fix vas to chroot in DESTDIR and simply issue:
> # pkg -v
> Which started bootstrapp ...

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+


More information about the freebsd-hackers mailing list