Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 20:30:18 GMT
From:      William Moreno <wmoreno3@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184582: update pkg-1.2.1 to pkg-1.2.2 via ports collection
Message-ID:  <201312072030.rB7KUIhO066773@oldred.freebsd.org>
Resent-Message-ID: <201312072040.rB7Ke2aw080430@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184582
>Category:       ports
>Synopsis:       update pkg-1.2.1 to pkg-1.2.2 via ports collection
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 07 20:40:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Moreno
>Release:        FreeBSD 9.2-RELEASE
>Organization:
Familia Moreno Vergel
>Environment:
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
>Description:
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/../external/libyaml/src/parser.c: In function 'yaml_parser_parse_flow_mapping_key':
/usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/../external/libyaml/src/parser.c:1107:17: error: variable 'dummy_mark' set but not used [-Werror=unused-but-set-variable]
     yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                 ^
/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/parser.o] Error code 1
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
2 errors
*** [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.
>How-To-Repeat:
root@server:/usr/ports/ports-mgmt/pkg # make install clean
>Fix:
in /usr/ports/ports-mgmt/pkg/work/pkg-1.2.2/libpkg/Makefile

Delete -Werror that is cause of problem 

-"CFLAGS+=        -Wall -Werror"
+"CFLAGS+=        -Wall"

Next:

set "WITHOUT_PKGNG=yes" into /etc/make.conf

/usr/ports/ports-mgmt/pkg # make install clean

set "WITH_PKGNG=yes" into /etc/make.conf

Confirmed:

# pkg info | grep pkg
pkg-1.2.2                      New generation package manager
pkgconf-0.9.3                  Utility to help to configure compiler and linker flags

I do not know, how "-Werror" is generating, in order to fix ready without error

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312072030.rB7KUIhO066773>