]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix RPM build issues (STR #4459)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 28 Aug 2014 12:55:52 +0000 (12:55 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Thu, 28 Aug 2014 12:55:52 +0000 (12:55 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12122 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES.txt
config-scripts/cups-compiler.m4
config-scripts/cups-ssl.m4
config.h.in

index 46c017e96b575510d1921348f0ab6fc8816c846c..05ce557bec9c064c5536245a9c2b6a75710b32d7 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES.txt - 2.0rc1 - 2014-08-25
+CHANGES.txt - 2.0rc1 - 2014-08-28
 ---------------------------------
 
 CHANGES IN CUPS V2.0rc1
@@ -17,6 +17,7 @@ CHANGES IN CUPS V2.0rc1
          accessible via the web interface (STR #4461)
        - PPD files are now created using the permissions specified by the
          ConfigFilePerm directive.
+       - Fixed RPM build issues (STR #4459)
 
 
 CHANGES IN CUPS V2.0b1
index f5a39f4537e8f9a9ba4514c454cfb53b53315c8d..f9c1f4df9b2c8c320329a945afdc4a2ce1018a9d 100644 (file)
@@ -110,7 +110,7 @@ if test -n "$GCC"; then
        # The -fstack-protector option is available with some versions of
        # GCC and adds "stack canaries" which detect when the return address
        # has been overwritten, preventing many types of exploit attacks.
-       AC_MSG_CHECKING(if GCC supports -fstack-protector)
+       AC_MSG_CHECKING(whether compiler supports -fstack-protector)
        OLDCFLAGS="$CFLAGS"
        CFLAGS="$CFLAGS -fstack-protector"
        AC_TRY_LINK(,,
@@ -130,7 +130,7 @@ if test -n "$GCC"; then
                # exploits that depend on a fixed address for common functions.
                #
                # Not available to LSB binaries...
-               AC_MSG_CHECKING(if GCC supports -fPIE)
+               AC_MSG_CHECKING(whether compiler supports -fPIE)
                OLDCFLAGS="$CFLAGS"
                case "$uname" in
                        Darwin*)
@@ -154,9 +154,18 @@ if test -n "$GCC"; then
 
        if test "x$with_optim" = x; then
                # Add useful warning options for tracking down problems...
-               OPTIM="-Wall -Wno-format-y2k -Wsign-conversion -Wunused $OPTIM"
+               OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
 
-               AC_MSG_CHECKING(if GCC supports -Wno-tautological-compare)
+               AC_MSG_CHECKING(whether compiler supports -Wsign-conversion)
+               OLDCFLAGS="$CFLAGS"
+               CFLAGS="$CFLAGS -Werror -Wsign-conversion"
+               AC_TRY_COMPILE(,,
+                       [OPTIM="$OPTIM -Wsign-conversion"
+                       AC_MSG_RESULT(yes)],
+                       AC_MSG_RESULT(no))
+               CFLAGS="$OLDCFLAGS"
+
+               AC_MSG_CHECKING(whether compiler supports -Wno-tautological-compare)
                OLDCFLAGS="$CFLAGS"
                CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
                AC_TRY_COMPILE(,,
@@ -211,7 +220,7 @@ else
                        # should contribute the necessary options to
                        # cups-support@cups.org...
                        echo "Building CUPS with default compiler optimizations; contact"
-                       echo "cups-bugs@cups.org with uname and compiler options needed"
+                       echo "cups-devel@cups.org with uname and compiler options needed"
                        echo "for your platform, or set the CFLAGS and LDFLAGS environment"
                        echo "variables before running configure."
                        ;;
index 444d7c36431223362098649b1a0f2e663fc9ca28..a2ce831c0dff5ef26b2ba2c5e9642994aa06fea2 100644 (file)
@@ -78,6 +78,11 @@ if test x$enable_ssl != xno; then
        if test $have_ssl = 1; then
            CUPS_SERVERCERT="ssl/server.crt"
            CUPS_SERVERKEY="ssl/server.key"
+
+           SAVELIBS="$LIBS"
+           LIBS="$LIBS $SSLLIBS"
+           AC_CHECK_FUNC(gnutls_transport_set_pull_timeout_function, AC_DEFINE(HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION))
+           LIBS="$SAVELIBS"
        fi
     fi
 fi
index f673a395bad623e95c50171cc086716e549cc37e..a0257015f35e7a3a40712499b79b60c1821e6119 100644 (file)
 #undef HAVE_SSL
 
 
+/*
+ * Do we have the gnutls_transport_set_pull_timeout_function function?
+ */
+
+#undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION
+
+
 /*
  * What Security framework headers do we have?
  */