pkg breakage after updating ports tree

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Dec 10 07:55:39 UTC 2014


On 09/12/2014 19:03, Will Parsons wrote:
> After doing "portsnap fetch update" on a 9.3-RELEASE system, I find that
> updating ports is broken because of dependencies on pkg.  The attempt
> to update pkg-1.3.8_3 to pkg-1.4.0 results in:
> 
> ========================================================================
> ...
> cc1: warnings being treated as errors
> set.c: In function 'exec_set':
> set.c:103: warning: 'depfield' may be used uninitialized in this function
> set.c:103: warning: 'field' may be used uninitialized in this function
> *** [pkg-set.o] Error code 1
> 
> Stop in /usr/ports/ports-mgmt/pkg/work/pkg-1.4.0/src.
> *** [all-recursive] Error code 1
> 
> Stop in /usr/ports/ports-mgmt/pkg/work/pkg-1.4.0.
> *** [all] Error code 1
> 
> Stop in /usr/ports/ports-mgmt/pkg/work/pkg-1.4.0.
> *** [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.
> 
> ===>>> make build failed for ports-mgmt/pkg
> ===>>> Aborting update
> 
> ===>>> Update for pkg-1.3.8_3 failed
> ===>>> Aborting update
> 
> ========================================================================
> 
> This is using portmaster, but running make from the ports directory is
> similar.
> 
> (As a side question, "which pkg" shows /usr/sbin/pkg.  Why are there
> dependencies on the version of pkg in ports?)
> 
> What can I do to fix this?
> 

/usr/sbin/pkg is pkg(7) and serves only to ensure that the actual pkg(8)
gets installed.

There was an update to ports-mgmt/pkg fairly soon after pkg-1.4.0 was
released which added some compilation flags to prevent gcc bombing out
-- do you have the latest version?   If that doesn't help, can you try
compiling pkg(8) with clang instead?

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141210/6f895ef0/attachment.sig>


More information about the freebsd-questions mailing list