ports/167956: [maintainer patch] mail/dbmail22 fix to enable building with clang
Alan Hicks
ahicks at p-o.co.uk
Wed May 16 11:50:02 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list