misc/183790: ports-mgmt/pkg broken due to missing /usr/local/lib/libyaml.so.1

ganthore ganthore at gmail.com
Fri Nov 8 15:50:00 UTC 2013

>Number:         183790
>Category:       misc
>Synopsis:       ports-mgmt/pkg broken due to missing /usr/local/lib/libyaml.so.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 08 15:50:00 UTC 2013
>Originator:     ganthore
>Release:        FreeBSD-10.0-BETA3
Red Hat
FreeBSD  10.0-BETA3 FreeBSD 10.0-BETA3 #0 r257580: Sun Nov  3 19:43:01 UTC 2013     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

After upgrading to FreeBSD-10.0-BETA3, I noticed that pkg is broken. This may correlate to my earlier report:

amd64/183789: Upgrading to FreeBSD-10.0-BETA3 Breaks Portmaster DB

I use portmaster for everything so I didn't notice the problem until I invoked pkg by itself. It results in the following error:

# pkg
Shared object "libyaml.so.1" not found, required by "pkg"

I checked /usr/local/lib and discovered that libyaml.so is there but libyaml.so.1 is not:

# ls -lah /usr/local/lib | grep libyaml
lrwxr-xr-x   1 root  wheel    14B Nov  8 10:36 libyaml-0.so -> libyaml-0.so.2
-rwxr-xr-x   1 root  wheel   128K Nov  8 10:36 libyaml-0.so.2
-rw-r--r--   1 root  wheel   163K Nov  8 10:36 libyaml.a
-rwxr-xr-x   1 root  wheel   943B Nov  8 10:36 libyaml.la
lrwxr-xr-x   1 root  wheel    14B Nov  8 10:36 libyaml.so -> libyaml-0.so.2

To correct the problem. I simply made a symbolic link, but this should be corrected in the ports-mgmt/pkg or textproc/libyaml package.
1) Have a FreeBSD-10.0-BETA2 system fully up-to-date in ports. Have PKGNG enabled in /etc/make.conf and make sure that ports-mgmt/pkg is installed.

2) Upgrade to FreeBSD-10.0-BETA3 from BETA2.

3) Run the pkg command:

4) You should see this error:
Shared object "libyaml.so.1" not found, required by "pkg"
To fix the immediate problem, make a symbolic link to /usr/local/lib/libyaml.so as /usr/local/lib/libyaml.so.1

ln -s /usr/local/lib/libyaml.so /usr/local/lib/libyaml.so.1


More information about the freebsd-bugs mailing list