components/openscap/patches/zz_fixes_for_64bit.patch
author Vishwas Shekarappa Gudiyavar <vishwas.shekarappa.gudiyavar@oracle.com>
Thu, 14 Apr 2016 21:50:55 -0700
changeset 5779 22149b3b3a47
parent 5111 e68e059c3456
child 7343 a6cfc180f5e8
permissions -rw-r--r--
20898622 Remove CUPS dependency on slp

This patch is required to build 64-bit versions of openscap on solaris.
It has been submitted to upstream, parts of it were accepted, but the
remainder have not been accepted.

--- openscap-1.2.0/configure.ac.~3~	2014-08-08 10:58:39.160398757 -0700
+++ openscap-1.2.0/configure.ac	2014-08-08 10:58:15.703200526 -0700
@@ -877,7 +877,7 @@
 #check for atomic functions
 case $host_cpu in
 	i386 | i486 | i586 | i686)
-		CFLAGS="$CFLAGS  -march=i686"
+#		CFLAGS="$CFLAGS  -march=i686"
 		;;
 esac
 
--- openscap-1.2.0/src/OVAL/probes/SEAP/_sexp-value.h.~1~	2014-12-19 09:53:15.178129356 -0800
+++ openscap-1.2.0/src/OVAL/probes/SEAP/_sexp-value.h	2014-12-19 09:55:26.268851025 -0800
@@ -95,6 +95,9 @@
         uintptr_t nxsz;
         uint16_t  real;
         uint16_t  refs;
+#if defined(__sparc) && defined(_LP64)
+	 uint32_t pad_gcc_align_hack;
+#endif
         SEXP_t    memb[];
 } __attribute__ ((packed));