Bug 184582 - ports-mgmt/pkg: update pkg-1.2.1 to pkg-1.2.2 via ports collection
Summary: ports-mgmt/pkg: update pkg-1.2.1 to pkg-1.2.2 via ports collection
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-07 20:40 UTC by William Elasio Moreno Albarracin
Modified: 2014-06-16 06:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Elasio Moreno Albarracin 2013-12-07 20:40:01 UTC
/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.

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
How-To-Repeat: root@server:/usr/ports/ports-mgmt/pkg # make install clean
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-08 05:09:05 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-08 05:09:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2014-06-16 06:02:39 UTC
New releases fixed those