17063235 Pythia build42 breaks S12-UL/b25 stunnel-4.56 build
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Mon, 09 Mar 2015 15:38:36 -0500
changeset 3926 11b6c9d02e9e
parent 3924 6200b874acbb
child 3927 ea48a1716c18
17063235 Pythia build42 breaks S12-UL/b25 stunnel-4.56 build
components/stunnel/Makefile
components/stunnel/patches/stunnel-4.56-studio.patch
--- a/components/stunnel/Makefile	Mon Mar 09 13:29:15 2015 -0700
+++ b/components/stunnel/Makefile	Mon Mar 09 15:38:36 2015 -0500
@@ -35,6 +35,8 @@
 
 COMPONENT_ARCHIVE_URL=	http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/ac4c4a30bd7a55b6687cbd62d864054c/$(COMPONENT_ARCHIVE)
 
+COMPONENT_PREP_ACTION += (cd $(@D) ; autoreconf -f)
+
 COMPONENT_BUGDB=	utility/stunnel
 TPNO=                   21367
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/stunnel/patches/stunnel-4.56-studio.patch	Mon Mar 09 15:38:36 2015 -0500
@@ -0,0 +1,20 @@
+#
+# Studio gets confused by -pedantic.  This won't go upstream as newer versions
+# change the compiler flag test and this will no longer be needed .
+#
+
+--- stunnel-4.56/configure.ac.orig	Mon Mar  9 12:33:03 2015
++++ stunnel-4.56/configure.ac	Mon Mar  9 12:33:20 2015
[email protected]@ -88,12 +88,6 @@
+     [AC_MSG_RESULT([yes])],
+     [AC_MSG_RESULT([no]); CFLAGS="$valid_CFLAGS"])
+ 
+-AC_MSG_CHECKING([whether $CC accepts -pedantic])
+-valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -pedantic"
+-AC_LINK_IFELSE([int main() {return 0;}],
+-    [AC_MSG_RESULT([yes])],
+-    [AC_MSG_RESULT([no]); CFLAGS="$valid_CFLAGS"])
+-
+ AC_MSG_NOTICE([**************************************** libtool])
+ LT_INIT([disable-static])
+ AC_SUBST([LIBTOOL_DEPS])