PaulHowarth/Blog/2014-02-21

Friday 21st February 2014

Fedora Project

  • Updated milter-greylist to 4.5.11 in Rawhide and EPEL-7:

    • Use asynchronous LDAP calls to reduce lock contention on heavy load
  • After building successfully and running it on my F-20 server, I was somewhat surprised to find that the build failed for Rawhide. The reason for this turned out to be that the project's configure script runs with -Werror enabled to turn warnings into errors, and the latest version of glibc in Rawhide spits out a warning about the _BSD_SOURCE symbol being deprecated in favour of _DEFAULT_SOURCE, which caused the check for res_ninit (thread-safe resolver) to fail. I worked around it with this patch:

  • Warning about _BSD_SOURCE being deprecated in favor of _DEFAULT_SOURCE
    breaks build with -Werror -Wall
    
    --- configure.ac
    +++ configure.ac
    @@ -1240,9 +1240,12 @@
                    CFLAGS=$CFLAGS$efl
                    AC_MSG_CHECKING([if DNS resolver is re-entrant])
                    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
    +                               #pragma GCC diagnostic push
    +                               # pragma GCC diagnostic warning "-Wcpp"
                                    #define _BSD_SOURCE
     
                                    #include <sys/types.h>
    +                               #pragma GCC diagnostic pop
                                    #include <netinet/in.h>
                                    #include <arpa/inet.h>
                                    #include <arpa/nameser.h>
    --- configure
    +++ configure
    @@ -8390,9 +8390,12 @@
                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     /* end confdefs.h.  */
     
    +                               #pragma GCC diagnostic push
    +                               # pragma GCC diagnostic warning "-Wcpp"
                                    #define _BSD_SOURCE
     
                                    #include <sys/types.h>
    +                               #pragma GCC diagnostic pop
                                    #include <netinet/in.h>
                                    #include <arpa/inet.h>
                                    #include <arpa/nameser.h>
  • However, it's not suitable for upstream as it breaks builds with older versions of gcc that don't understand the pragma.

  • Updated perl-Software-License to 0.103009 in Rawhide:

    • Updated FSF mailing address in license text for GFDL version 1.2, GPL versions 1 and 2, and LGPL 2.1

Local Packages

  • Updated perl-Mixin-Linewise to 0.105:

    • Update Readers to, by default, use PerlIO::utf8_strict to avoid problems with CRLF layer on Win32

  • Updated perl-Module-Load to 0.32:

    • Fix tests to support statically built perls
  • New package perl-PerlIO-utf8_strict (0.004)

  • Updated perl-Software-License to 0.103009 as per the Fedora version


Recent