Blame SOURCES/0012-seaudit.patch

25bb7d
diff -up setools-3.3.7/libqpol/swig/java/Makefile.am.seaudit setools-3.3.7/libqpol/swig/java/Makefile.am
25bb7d
--- setools-3.3.7/libqpol/swig/java/Makefile.am.seaudit	2010-05-03 12:37:54.000000000 -0400
25bb7d
+++ setools-3.3.7/libqpol/swig/java/Makefile.am	2012-09-28 10:15:56.408912525 -0400
25bb7d
@@ -48,7 +48,6 @@ BUILT_SOURCES = qpol_wrap.c \
25bb7d
 	qpol_type_t.java \
25bb7d
 	qpol_user_t.java \
25bb7d
 	qpol_validatetrans_t.java \
25bb7d
-	SWIGTYPE_p_int.java \
25bb7d
 	SWIGTYPE_p_unsigned_int.java \
25bb7d
 	SWIGTYPE_p_void.java
25bb7d
 
25bb7d
diff -up setools-3.3.7/seaudit/progress.c.seaudit setools-3.3.7/seaudit/progress.c
25bb7d
--- setools-3.3.7/seaudit/progress.c.seaudit	2007-08-02 17:16:33.000000000 -0400
25bb7d
+++ setools-3.3.7/seaudit/progress.c	2012-09-28 10:15:56.407912521 -0400
25bb7d
@@ -99,10 +99,11 @@ void progress_hide(progress_t * progress
25bb7d
 
25bb7d
 int progress_wait(progress_t * progress)
25bb7d
 {
25bb7d
-	GTimeVal wait_time = { 0, 50000 };
25bb7d
+	gint64 end_time;
25bb7d
 	g_mutex_lock(progress->mutex);
25bb7d
 	while (!progress->done) {
25bb7d
-		g_cond_timed_wait(progress->cond, progress->mutex, &wait_time);
25bb7d
+		end_time = g_get_monotonic_time () + 50000; // need to be set before each wait
25bb7d
+		g_cond_wait_until(progress->cond, progress->mutex,end_time);
25bb7d
 		if (progress->s != NULL) {
25bb7d
 			gtk_label_set_text(GTK_LABEL(progress->label2), progress->s);
25bb7d
 			free(progress->s);