From nobody@FreeBSD.org  Mon Jun 14 15:19:56 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0103C106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Jun 2010 15:19:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E54038FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Jun 2010 15:19:55 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5EFJta8084967
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Jun 2010 15:19:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5EFJtud084966;
	Mon, 14 Jun 2010 15:19:55 GMT
	(envelope-from nobody)
Message-Id: <201006141519.o5EFJtud084966@www.freebsd.org>
Date: Mon, 14 Jun 2010 15:19:55 GMT
From: Olivier Cochard-Labb <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [mail/ssmtp] setting TARGET_ARCH variable prevent  to compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: aragon@phat.za.net

>Number:         147853
>Category:       ports
>Synopsis:       mail/ssmtp: setting TARGET_ARCH variable prevent to compile
>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:   Mon Jun 14 15:30:02 UTC 2010
>Closed-Date:    Thu Jul 01 12:16:49 UTC 2010
>Last-Modified:  Thu Jul  1 12:20:06 UTC 2010
>Originator:     Olivier Cochard-Labb
>Release:        8.0-stable
>Organization:
>Environment:
FreeBSD d630.bsdrp.net 8.0-STABLE FreeBSD 8.0-STABLE #70: Wed May 12 13:00:32 CEST 2010     root@d630.bsdrp.net:/usr/obj/usr/src/sys/DellD630  amd64
>Description:
When using this make command line:
env TARGET_ARCH=amd64 make

or this command line:
env TARGET_ARCH=i386 make

The make process generate a bad compilation line and failed by displaying this message:

===>  Building for ssmtp-2.62.3
cc -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1  -DSSMTPCONFDIR=\"/usr/local/etc/ssmtp\" -DCONFIGURATION_FILE=\"/usr/local/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/usr/local/etc/ssmtp/revaliases\"  -O2 -pipe -march=native -I/usr/include -DUSERPREFS -fno-strict-aliasing  amd64 -c -o ssmtp.o ssmtp.c
cc: amd64: No such file or directory
gmake: *** [ssmtp.o] Erreur 1
*** Error code 1

We can notice that the value of the variable TARGET_ARCH is put just after the "-fno-strict-aliasing" and before the "-c -o ssmtp.o" options: Something missing.

>How-To-Repeat:
When using this make command line:
env TARGET_ARCH=amd64 make

or this command line:
env TARGET_ARCH=i386 make

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jun 14 15:30:14 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: aragon@phat.za.net
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/147853: [mail/ssmtp] setting TARGET_ARCH variable prevent  to compile
Date: Mon, 14 Jun 2010 15:30:12 UT

 Maintainer of mail/ssmtp,
 
 Please note that PR ports/147853 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147853
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Aragon Gouveia <aragon@phat.za.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/147853: [mail/ssmtp] setting TARGET_ARCH variable prevent
  to compile
Date: Mon, 14 Jun 2010 18:50:57 +0200

 This is a multi-part message in MIME format.
 --------------080203090401040507010205
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 This seems to be occurring due to GNU make's Implicit Rules:
 
 http://www.makelinux.net/make3/make3-CHP-3-SECT-8.html
 
 Attached patch will simply override that variable.
 
 --------------080203090401040507010205
 Content-Type: text/plain;
  name="ssmtp.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="ssmtp.diff"
 
 --- Makefile.orig	2010-06-14 18:44:51.000000000 +0200
 +++ Makefile	2010-06-14 18:45:08.000000000 +0200
 @@ -20,6 +20,7 @@
  
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
 +MAKE_ENV+=	TARGET_ARCH=
  
  SSMTP_GROUP=	ssmtp
  SSMTP_GID=	916
 
 --------------080203090401040507010205--
State-Changed-From-To: feedback->closed 
State-Changed-By: stefan 
State-Changed-When: Thu Jul 1 12:16:31 UTC 2010 
State-Changed-Why:  
Fix committed. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/147853: commit references a PR
Date: Thu,  1 Jul 2010 12:16:32 +0000 (UTC)

 stefan      2010-07-01 12:16:21 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/ssmtp           Makefile 
   Log:
   Explicitly empty TARGET_ARCH to prevent build problems.
   
   PR:             147853
   Submitted by:   Olivier Cochard-Labb <olivier@cochard.me>
   Patch by:       maintainer
   Feature safe:   yes
   
   Revision  Changes    Path
   1.32      +1 -0      ports/mail/ssmtp/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
