[142861] trunk/dports/net/samba3

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 12 07:32:50 PST 2015


Revision: 142861
          https://trac.macports.org/changeset/142861
Author:   jeremyhu at macports.org
Date:     2015-11-24 20:18:24 -0800 (Tue, 24 Nov 2015)
Log Message:
-----------
samba3: Fix build failure

Modified Paths:
--------------
    trunk/dports/net/samba3/Portfile

Added Paths:
-----------
    trunk/dports/net/samba3/files/patch-configure.diff

Modified: trunk/dports/net/samba3/Portfile
===================================================================
--- trunk/dports/net/samba3/Portfile	2015-11-25 04:12:53 UTC (rev 142860)
+++ trunk/dports/net/samba3/Portfile	2015-11-25 04:18:24 UTC (rev 142861)
@@ -47,6 +47,7 @@
                     --without-krb5
 
 patchfiles          patch-Makefile.in.diff \
+                    patch-configure.diff \
                     patch-source_pkgconfig_all_pc_in.diff
 
 variant kerberos description "Enable Kerberos support" {

Added: trunk/dports/net/samba3/files/patch-configure.diff
===================================================================
--- trunk/dports/net/samba3/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/net/samba3/files/patch-configure.diff	2015-11-25 04:18:24 UTC (rev 142861)
@@ -0,0 +1,31 @@
+--- configure.orig	2015-11-24 19:57:25.000000000 -0800
++++ configure	2015-11-24 19:58:32.000000000 -0800
+@@ -15277,20 +15277,16 @@ else
+     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+-#include <stdio.h>
+-int
+-main ()
+-{
+-
+-		if (0) {
+-		   this_function_does_not_exist();
+-		} else {
+-		  return 1;
+-		}
++extern int __unsafe_string_function_usage_here_size_t__();
+ 
++int retvar(char *name, int namelen) {
++    return (sizeof(name) != namelen && 0) ? __unsafe_string_function_usage_here_size_t__() : 0;
++}
+ 
+-  ;
+-  return 0;
++int main() {
++    char *name;
++    int namelen;
++    return retvar(name, namelen);
+ }
+ _ACEOF
+ if ac_fn_c_try_link "$LINENO"; then :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/9cfd9080/attachment.html>


More information about the macports-changes mailing list