Solved [Solved] pkg-1.2.2 fails to install via the ports Collection

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
The error:
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.
Improvised addition in order to install the package:
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
Has anybody a better solution?
 
Re: pkg-1.2.2 fails to install via the ports Collection

The problem was solved by a new pkg-1.2.3
Code:
portsnap fetch update
portmaster -a
===>   Registering installation for pkg-1.2.3
Installing pkg-1.2.3... done
pkg info | grep pkg
pkg-1.2.3                      New generation package manager
pkgconf-0.9.3                  Utility to help to configure compiler and linker flags
 
Back
Top