[141229] trunk/dports/security/pwman

jeremyhu at macports.org jeremyhu at macports.org
Mon Oct 12 23:22:39 PDT 2015


Revision: 141229
          https://trac.macports.org/changeset/141229
Author:   jeremyhu at macports.org
Date:     2015-10-12 23:22:38 -0700 (Mon, 12 Oct 2015)
Log Message:
-----------
pwman: Fix building with clang

Modified Paths:
--------------
    trunk/dports/security/pwman/Portfile

Added Paths:
-----------
    trunk/dports/security/pwman/files/
    trunk/dports/security/pwman/files/clang.patch

Modified: trunk/dports/security/pwman/Portfile
===================================================================
--- trunk/dports/security/pwman/Portfile	2015-10-13 05:39:38 UTC (rev 141228)
+++ trunk/dports/security/pwman/Portfile	2015-10-13 06:22:38 UTC (rev 141229)
@@ -29,10 +29,7 @@
 
 configure.args  --mandir=${prefix}/share/man
 
-# This project is buggy, and clang correctly errors out.  If you care about using
-# this code, you should fix this rather than just accepting the fallback...
-# https://trac.macports.org/ticket/31994
-compiler.blacklist *llvm-gcc-4.2 *clang*
+patchfiles      clang.patch
 
 livecheck.url   ${homepage}
 livecheck.regex {/pwman-(.+?)/ChangeLog}

Added: trunk/dports/security/pwman/files/clang.patch
===================================================================
--- trunk/dports/security/pwman/files/clang.patch	                        (rev 0)
+++ trunk/dports/security/pwman/files/clang.patch	2015-10-13 06:22:38 UTC (rev 141229)
@@ -0,0 +1,49 @@
+--- src/actions.c.orig	2011-02-15 14:17:42.000000000 -0800
++++ src/actions.c	2015-10-12 23:19:11.000000000 -0700
+@@ -582,7 +582,7 @@ action_list_move_item()
+ 	}
+ }
+ 
+-int
++void
+ action_list_move_item_up_level()
+ {
+ 	Pw* curpw;
+@@ -780,7 +780,7 @@ action_list_read_file()
+ 	return -1;
+ }
+ 
+-int
++void
+ action_list_move_item_up()
+ {
+ 	Pw* curpw;
+@@ -822,7 +822,7 @@ action_list_move_item_down()
+ 
+ 	// Do nothing if searching
+ 	if(search_results != NULL) {
+-		return;
++		return 0;
+ 	}
+ 
+ 	switch(uilist_get_highlighted_type()){
+--- src/uilist.c.orig	2015-10-12 23:20:27.000000000 -0700
++++ src/uilist.c	2015-10-12 23:20:48.000000000 -0700
+@@ -349,7 +349,7 @@ uilist_page_down()
+ 	uilist_refresh();
+ }
+ 
+-int
++void
+ uilist_up()
+ {
+ 	if(current_pw_sublist->current_item < 1){
+@@ -361,7 +361,7 @@ uilist_up()
+ 	uilist_refresh();
+ }
+ 
+-int
++void
+ uilist_down()
+ {
+ 	if(current_pw_sublist->current_item >= (lines-1)){
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151012/bddb5d93/attachment.html>


More information about the macports-changes mailing list