Code:
root@server:~ # uname -a
FreeBSD mydomain 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Code:
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/../external/libyaml/src/api.c: In function 'yaml_document_delete':
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/../external/libyaml/src/api.c:1121:7: error: variable 'context' set but not used [-Werror=unused-but-set-variable]
} context;
^
cc1: all warnings being treated as errors
*** [/usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/../external/libyaml/src/api.o] Error code 1
1 error
*** [all] Error code 2
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1
Stop in /usr/ports/ports-mgmt/pkg.
*** [/usr/ports/ports-mgmt/pkg/work/.build_done.pkg._usr_local] Error code 1
Stop in /usr/ports/ports-mgmt/pkg.
Code:
set "WITHOUT_PKGNG=yes" into /etc/make.conf
vi /usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/Makefile
Code:
Delete -Werror
-"CFLAGS+= -Wall -Werror"
+"CFLAGS+= -Wall"
root@server:/usr/ports/ports-mgmt/pkg # make install clean
Then:
Code:
set "WITH_PKGNG=yes" into /etc/make.conf
root@server:/usr/ports/ports-mgmt/pkg # pkg info | grep pkg
Code:
pkg-1.2.2 New generation package manager
pkgconf-0.9.3 Utility to help to configure compiler and linker flags