From nobody@FreeBSD.org  Wed Aug 22 09:57:57 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E765B10657B1
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2012 09:57:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B38108FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2012 09:57:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7M9vlgM075597
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Aug 2012 09:57:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7M9vlAG075594;
	Wed, 22 Aug 2012 09:57:47 GMT
	(envelope-from nobody)
Message-Id: <201208220957.q7M9vlAG075594@red.freebsd.org>
Date: Wed, 22 Aug 2012 09:57:47 GMT
From: Elvis Stansvik <elvstone@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Error in archive specification: "WITH_" in bsd.options.mk during portupgrade on 7.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170858
>Category:       ports
>Synopsis:       Error in archive specification: "WITH_" in bsd.options.mk during portupgrade on 7.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 10:00:18 UTC 2012
>Closed-Date:    Wed Aug 22 10:10:14 UTC 2012
>Last-Modified:  Wed Aug 22 10:10:14 UTC 2012
>Originator:     Elvis Stansvik
>Release:        7.0
>Organization:
>Environment:
FreeBSD www.dose.se 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Tue May 20 20:31:14 CEST 2008     root@franz.franzkafe.se:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I recently updated my ports tree with portsnap and did a portupgrade -an. This is what I got:

[astan@www /usr/ports/ports-mgmt/portupgrade]$ sudo BATCH=yes portupgrade -an
--->  Session started at: Wed, 22 Aug 2012 11:59:28 +0200
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 190 packages found (-1 +1) (...). done]
"/usr/ports/Mk/bsd.options.mk", line 235: Error in archive specification: "WITH_"
"/usr/ports/Mk/bsd.options.mk", line 235: Error in archive specification: "WITH_"
make: fatal errors encountered -- cannot continue
** Makefile possibly broken: lang/perl5.8:
** Please report this to the maintainer for lang/perl5.8
        No closing parenthesis in archive specification
        No closing parenthesis in archive specification
--->  Session ended at: Wed, 22 Aug 2012 11:59:50 +0200 (consumed 00:00:21)
/usr/local/sbin/portupgrade:1492:in `get_pkgname': Makefile broken (MakefileBrokenError)
        from /usr/local/sbin/portupgrade:616:in `main'
        from /usr/local/sbin/portupgrade:607:in `each'
        from /usr/local/sbin/portupgrade:607:in `main'
        from /usr/local/sbin/portupgrade:581:in `catch'
        from /usr/local/sbin/portupgrade:581:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call'
        from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order'
        from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch'
        from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order'
        from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch'
        from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
        from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!'
        from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order'
        from /usr/local/sbin/portupgrade:558:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
        from /usr/local/sbin/portupgrade:230:in `new'
        from /usr/local/sbin/portupgrade:230:in `main'
        from /usr/local/sbin/portupgrade:2245

I know my installation is ancient, but the ports system should still work on 7.x right?

I tried removing /var/db/ports/perl/options and /etc/make.conf, but the problem remains. I know there have been changes to how options are handled. Have these changes been tested to work on 7.x?
>How-To-Repeat:
portupgrade -a on 7.0
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Wed Aug 22 10:10:06 UTC 2012 
State-Changed-Why:  
The Ports Tree is unsupported and known not to work on unsupported 
versions of FreeBSD.  Please update to a supported version (7.4). 

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