From mexas@bristol.ac.uk  Sat Mar 16 12:49:24 2013
Return-Path: <mexas@bristol.ac.uk>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 61CC7C4D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Mar 2013 12:49:24 +0000 (UTC)
	(envelope-from mexas@bristol.ac.uk)
Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78])
	by mx1.freebsd.org (Postfix) with ESMTP id 2876ED85
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Mar 2013 12:49:23 +0000 (UTC)
Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk)
	by dirj.bris.ac.uk with esmtp (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1UGqXk-0002FJ-Gh
	for FreeBSD-gnats-submit@freebsd.org; Sat, 16 Mar 2013 12:49:22 +0000
Received: from cpc2-aztw9-0-0-cust169.18-1.cable.virginmedia.com ([77.97.103.170] helo=zzz.men.bris.ac.uk)
	by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.72)
	(envelope-from <mexas@bris.ac.uk>)
	id 1UGqXk-0005YA-7m
	for FreeBSD-gnats-submit@freebsd.org; Sat, 16 Mar 2013 12:49:00 +0000
Received: from zzz.men.bris.ac.uk (localhost [127.0.0.1])
	by zzz.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r2GCmxWX008545
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Mar 2013 12:48:59 GMT
	(envelope-from mexas@zzz.men.bris.ac.uk)
Received: (from mexas@localhost)
	by zzz.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r2GCmxEv008544;
	Sat, 16 Mar 2013 12:48:59 GMT
	(envelope-from mexas)
Message-Id: <201303161248.r2GCmxEv008544@zzz.men.bris.ac.uk>
Date: Sat, 16 Mar 2013 12:48:59 GMT
From: Anton Shterenlikht <mexas@bristol.ac.uk>
Reply-To: Anton Shterenlikht <mexas@bristol.ac.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lang/p5-ExtUtils-F77 update with portmaster+pkgng - wrong dependencies list
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         177017
>Category:       ports
>Synopsis:       lang/p5-ExtUtils-F77 update with portmaster+pkgng - wrong dependencies list
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    perl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 16 12:50:00 UTC 2013
>Closed-Date:    Mon Mar 18 06:34:18 CDT 2013
>Last-Modified:  Mon Mar 18 06:34:18 CDT 2013
>Originator:     Anton Shterenlikht
>Release:        FreeBSD 10.0-CURRENT ia64
>Organization:
University of Bristol 	
>Environment:
FreeBSD mech-cluster241.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r244834: Sun Dec 30 09:16:26 GMT 2012     root@mech-cluster241.men.bris.ac.uk:/usr/obj/usr/src/sys/TZAV  ia64

	
>Description:

lang/gcc46 doesn't build, but lang/gcc47 does.
So I set:

# grep GCC_DEFAULT_VERSION= /usr/ports/Mk/bsd.gcc.mk
GCC_DEFAULT_VERSION=    4.7
#

I now want to rebuild all p5-* ports following
perl upgrade to perl-5.16.2_1.

On build and install of p5-ExtUtils-F77
dependence on gcc47 is clear:

# make
===>   p5-ExtUtils-F77-1.17_1 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for p5-ExtUtils-F77-1.17_1
=> SHA256 Checksum OK for ExtUtils-F77-1.17.tar.gz.
===>   p5-ExtUtils-F77-1.17_1 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Patching for p5-ExtUtils-F77-1.17_1
===>   p5-ExtUtils-F77-1.17_1 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Applying FreeBSD patches for p5-ExtUtils-F77-1.17_1
===>   p5-ExtUtils-F77-1.17_1 depends on executable: gcc47 - found
                                                     ^^^^^

# make install
===>  Installing for p5-ExtUtils-F77-1.17_1
===>   p5-ExtUtils-F77-1.17_1 depends on executable: gcc47 - found
                                                     ^^^^^
However, pkg doesn't seem to record
the dependence on gcc47:

# pkg info -xd p5-ExtUtils-F77
p5-ExtUtils-F77-1.17_1 depends on:
perl-5.16.2_1

#

when I then try to rebuild with portmaster, I get:

# portmaster p5-ExtU

===>>> Currently installed version: p5-ExtUtils-F77-1.17_1
===>>> Port directory: /usr/ports/lang/p5-ExtUtils-F77

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for lang/p5-ExtUtils-F77 in background
===> No options to configure
===>>> Gathering dependency list for lang/p5-ExtUtils-F77 from ports
===>>> Launching child to install lang/gcc

===>>> p5-ExtUtils-F77-1.17_1 >> lang/gcc (1/1)

which is wrong

I think either p5-ExtUtils-F77, pkg or portmaster fail
to record properly that this port depends on gcc47.

	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Mar 16 12:50:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177017 

From: Bryan Drewery <bdrewery@FreeBSD.org>
To: bug-followup@FreeBSD.org, mexas@bristol.ac.uk
Cc:  
Subject: Re: ports/177017: lang/p5-ExtUtils-F77 update with portmaster+pkgng
 - wrong dependencies list
Date: Sat, 16 Mar 2013 18:19:01 -0500

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 ------enig2VBFDIAINLABXPJOMFCTK
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 For reference this is related to this post/thread:
 http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082171.html
 
 I do not think GCC_DEFAULT_VERSION is currently able to work like this.
 
 
 ------enig2VBFDIAINLABXPJOMFCTK
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQIcBAEBAgAGBQJRRP3lAAoJEG54KsA8mwz5rc4QAI83ytY5HIbH8Ntx9kcwnK3d
 omeG3+dgv/L/DhAU4XvUkIUdshPLwqH3Ab1u/Qha/SpsYWBm3pizMZa8GzKiJXzV
 m4HnHX7u2j6KcqQegcYxQHYoQk8Xke2HqQsh//XeemDnTiLRR+dMs0zYLnPgTBUX
 P20UsPm0vDbe1QkFx6y0ZJWAYeG613B1h/YQmqIwFAy/k6jlXoXNirlIIJkKXs4z
 +MwPqi57Fe1ydFHiQKO3hACY/1jQweD/iAELjfBZdDO61ZVKzL6NhzqGimgaPZhH
 a6HsbUQsSNC7fKTkuSxiuamd/jNE/ger0X5oRh4KKibU7XnWzUWnCSRg+k4b69oy
 1lq98TnGXXLWnpwkmWfKJjYDTBDV1f7pOAoHNpw5iX4B7cr85o1Rr7dygRCFovIA
 6lF92JT3aB5WTsAv7s/8mODM2U7dbV2maSDYH4EwAksyL8J/2JSTIL4ACfuE9KKa
 inA0DPaHl1Or68qstguixIZFkeDyBgHn0rYfshQ5NBaFR78DR1y9BjheoG98g3Kj
 EAtAizGRw3QO0Cqev2oDkLGzVok2kKvhaCawhmUxQgefFkhFJX8KEQkQPYejjk5P
 rx3CR4JOrXUUHeR5xGsihkMszDrdkMqjM6plLR6xd0Kj0v1MfAk7OHNkYcGYodFc
 p3IP5wKq2SlW7U9NPD4q
 =FGz1
 -----END PGP SIGNATURE-----
 
 ------enig2VBFDIAINLABXPJOMFCTK--
State-Changed-From-To: open->closed 
State-Changed-By: bdrewery 
State-Changed-When: Mon Mar 18 06:34:17 CDT 2013 
State-Changed-Why:  
Closing as this is not an intended use of bsd.gcc.mk. The ports@ post 
explains how it can be changed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177017 
>Unformatted:
