From khera@kciLink.com  Thu Jun  8 12:01:40 2000
Return-Path: <khera@kciLink.com>
Received: from kci.kciLink.com (kci.kciLink.com [204.117.82.1])
	by hub.freebsd.org (Postfix) with ESMTP id 1A3A837C0D7
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 Jun 2000 12:01:39 -0700 (PDT)
	(envelope-from khera@kciLink.com)
Received: from onceler.kcilink.com (onceler.kciLink.com [204.117.82.2])
	by kci.kciLink.com (Postfix) with ESMTP id AA5C8E8D3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 Jun 2000 15:01:37 -0400 (EDT)
Received: (from khera@localhost)
	by onceler.kcilink.com (8.9.3/8.9.3) id PAA01512;
	Thu, 8 Jun 2000 15:01:37 -0400 (EDT)
	(envelope-from khera@kci.kcilink.com)
Message-Id: <200006081901.PAA01512@onceler.kcilink.com>
Date: Thu, 8 Jun 2000 15:01:37 -0400 (EDT)
From: <khera@kciLink.com>
Reply-To: khera@kciLink.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: gnupg-rsa makefile error if USA_RESIDENT not set
X-Send-Pr-Version: 3.2

>Number:         19130
>Category:       misc
>Synopsis:       make reports Makefile error if USA_RESIDENT not set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 08 12:10:00 PDT 2000
>Closed-Date:    Wed Aug 2 08:11:24 PDT 2000
>Last-Modified:  Wed Aug 02 08:12:25 PDT 2000
>Originator:     Vivek Khera
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
>Environment:

	
ports cvsup'd today, FreeBSD 3.4-STABLE from mid-May

>Description:

	
gnupg-rsa port fails with Makefile error if USA_RESIDENT is unset.

>How-To-Repeat:

	
unsetenv USA_RESIDENT (and make sure not set in /etc/make.conf)
cd /usr/ports/security/gnupg-rsa
make

The error is this:

[root@onceler]# make
"Makefile", line 30: Malformed conditional (${USA_RESIDENT} == NO)
"Makefile", line 30: Need an operator
"Makefile", line 34: if-less else
"Makefile", line 34: Need an operator
"Makefile", line 39: if-less endif
"Makefile", line 39: Need an operator
make: fatal errors encountered -- cannot continue
[root@onceler]# ident Makefile
Makefile:
     $FreeBSD: ports/security/gnupg-rsa/Makefile,v 1.2 2000/05/15 06:33:36 kuriyama Exp $
[root@onceler]#

>Fix:
	
	
workaround is to set USA_RESIDENT environment variable.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Sat Jun 10 04:37:29 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR. 

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

From: Johan Karlsson <Johan.Karlsson@sm.luth.se>
To: freebsd-gnats-submit@FreeBSD.org, khera@kciLink.com
Cc:  
Subject: Re: misc/19130: make reports Makefile error if USA_RESIDENT not set
Date: Wed, 02 Aug 2000 16:30:40 +0200

 Hi Vivek
 
 Setting USA_RESIDENT is mandantory for this port, but you should not get
 that 
 error any way.
 
 Using FreeBSD 4.2-Stable and with the new Makefile of this port it 
 seems to work.
 
 k@numeri /usr/ports/security/gnupg-rsa >ident Makefile
 Makefile:
      $FreeBSD: ports/security/gnupg-rsa/Makefile,v 1.3 2000/07/04
 02:44:57 kuriyama Exp $
 
 I think this was solved in rev 1.3 but it might be that FreeBSD
 3.4-STABLE
 has some minor differens in its 'make' and if so this needs to be dealt
 with.
 
 Can you please update your ports-tree and try this again.
 
 
 Thanks 
 Johan K
 
 -- 
 Johan Karlsson              Phone : +46 (0)920 720 16 
 Systemteknik, Datalogi      Fax   : +46 (0)920 721 91 
 Lule Tekniska Universitet  E-mail: Johan.Karlsson@SM.LuTH.SE
 S-971 87 LULE, SWEDEN
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Johan Karlsson <Johan.Karlsson@sm.luth.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/19130: make reports Makefile error if USA_RESIDENT not set 
Date: Wed, 02 Aug 2000 16:44:53 +0200

 On Wed, 02 Aug 2000 07:40:03 MST, Johan Karlsson wrote:
 
 >  I think this was solved in rev 1.3 but it might be that FreeBSD
 >  3.4-STABLE has some minor differens in its 'make' and if so this
 >  needs to be dealt with.
 
 I don't think so.  The Makefile rev 1.3 still contains:
 
 .if ${USA_RESIDENT} == NO
 [...]
 
 Ciao,
 Sheldon.
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Johan Karlsson <Johan.Karlsson@sm.luth.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/19130: make reports Makefile error if USA_RESIDENT not set 
Date: Wed, 02 Aug 2000 16:47:46 +0200

 On Wed, 02 Aug 2000 16:44:53 +0200, Sheldon Hearn wrote:
 
 > >  I think this was solved in rev 1.3 but it might be that FreeBSD
 > >  3.4-STABLE has some minor differens in its 'make' and if so this
 > >  needs to be dealt with.
 > 
 > I don't think so.  The Makefile rev 1.3 still contains:
 > 
 > .if ${USA_RESIDENT} == NO
 > [...]
 
 Hmm, I failed to notice that the ``.if ${USA_RESIDENT} == NO'' is inside
 an ``.elif defined(USA_RESIDENT)''.  I'll take a look.
 
 Ciao,
 Sheldon.
 

From: Vivek Khera <khera@kciLink.com>
To: Johan Karlsson <Johan.Karlsson@sm.luth.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/19130: make reports Makefile error if USA_RESIDENT not set
Date: Wed, 2 Aug 2000 10:51:02 -0400 (EDT)

 >>>>> "JK" == Johan Karlsson <Johan.Karlsson@sm.luth.se> writes:
 
 JK> k@numeri /usr/ports/security/gnupg-rsa >ident Makefile
 JK> Makefile:
 JK>      $FreeBSD: ports/security/gnupg-rsa/Makefile,v 1.3 2000/07/04
 JK> 02:44:57 kuriyama Exp $
 
 JK> I think this was solved in rev 1.3 but it might be that FreeBSD
 JK> 3.4-STABLE
 JK> has some minor differens in its 'make' and if so this needs to be dealt
 JK> with.
 
 Yes; the current makefile does properly report that USA_RESIDENT must
 be set.  This is on 3.5-STABLE.  The bug is resolved.
 
 
 [root@onceler]# ident Makefile
 Makefile:
      $FreeBSD: ports/security/gnupg-rsa/Makefile,v 1.3 2000/07/04 02:44:57 kuriyama Exp $
 [root@onceler]# make
 
 You must set variable USA_RESIDENT to YES, if you are USA resident
 or to NO, if you aren't USA resident to build this package
 *** Error code 1
 
 Stop.
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Wed Aug 2 08:11:24 PDT 2000 
State-Changed-Why:  
Yet another close-pr courtesy of 
Johan Karlsson <Johan.Karlsson@sm.luth.se>. 

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