Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2012 12:12:07 +0100
From:      Alan Hicks <ahicks@p-o.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Alan Hicks <ahicks@p-o.co.uk>
Subject:   ports/167956: [maintainer patch] mail/dbmail22 fix to enable building with clang
Message-ID:  <E1SUc9H-0000Go-BK@p-o.co.uk>
Resent-Message-ID: <201205161150.q4GBo20T056958@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167956
>Category:       ports
>Synopsis:       [maintainer patch] mail/dbmail22 fix to enable building with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 11:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Alan Hicks
>Release:        FreeBSD 9.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD schnittke.p-o.co.uk 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	Configure script barfs with 'Script "configure" failed unexpectedly'
    due to error with empty character constant in define _GNU_SOURCE ''
    changing quotes from '' to "" fixes the issue
>How-To-Repeat:
	Build with clang
>Fix:

	Apply the attached patch to reverse affected quotes

--- dbmail22.diff begins here ---
diff -uNr dbmail22.bak/files/patch-configure dbmail22/files/patch-configure
--- dbmail22.bak/files/patch-configure	1970-01-01 01:00:00.000000000 +0100
+++ dbmail22/files/patch-configure	2012-05-16 10:17:34.000000000 +0100
@@ -0,0 +1,11 @@
+--- configure.bak	2012-05-16 09:40:52.000000000 +0100
++++ configure	2012-05-16 10:02:02.000000000 +0100
+@@ -2967,7 +2967,7 @@
+ sieveprefixes="/usr /usr/local"
+ 
+ 
+-$as_echo "#define _GNU_SOURCE ''" >>confdefs.h
++$as_echo '#define _GNU_SOURCE ""' >>confdefs.h
+ 
+ 
+ # Turn off both defaults.
--- dbmail22.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1SUc9H-0000Go-BK>