diff -u sssd-1.11.8/debian/changelog sssd-1.11.8/debian/changelog --- sssd-1.11.8/debian/changelog +++ sssd-1.11.8/debian/changelog @@ -1,3 +1,11 @@ +sssd (1.11.8-0ubuntu0.5) trusty; urgency=medium + + * d/p/BUILD-Fix-linking-with-librt.patch: Upstream fix for FTBS on + ppc64el/arm64 after the implementation of timer functions in watchdog + (LP: #1641875). + + -- Victor Tapia Fri, 24 Feb 2017 12:46:12 +0100 + sssd (1.11.8-0ubuntu0.4) trusty; urgency=medium * d/p/restart_providers_on_timeshift.patch: Implement watchdog and diff -u sssd-1.11.8/debian/patches/series sssd-1.11.8/debian/patches/series --- sssd-1.11.8/debian/patches/series +++ sssd-1.11.8/debian/patches/series @@ -6,0 +7 @@ +BUILD-Fix-linking-with-librt.patch only in patch2: unchanged: --- sssd-1.11.8.orig/debian/patches/BUILD-Fix-linking-with-librt.patch +++ sssd-1.11.8/debian/patches/BUILD-Fix-linking-with-librt.patch @@ -0,0 +1,50 @@ +From dc416984d92890f31122d32240d8bc0cbf48a48e Mon Sep 17 00:00:00 2001 +From: Lukas Slebodnik +Date: Mon, 7 Nov 2016 11:53:21 +0100 +Subject: [PATCH] BUILD: Fix linking with librt + +The posix realime extensions defines timer_* functions +but it does not mention library with these functions. +http://www.unix.org/version2/whatsnew/realtime.html + +The autoconf macro AC_SEARCH_LIBS firstly check the function +timer_create with no libraries, then for each library listed +in 2nd parameter. Possible libraries librt and libposix4 +were used in nspr for similar detection. +--- + Makefile.am | 1 + + configure.ac | 13 +++++++++++++ + 2 files changed, 14 insertions(+) + +--- a/Makefile.am ++++ b/Makefile.am +@@ -623,6 +623,7 @@ + $(AM_CFLAGS) \ + $(SYSTEMD_LOGIN_CFLAGS) + libsss_util_la_LIBADD = \ ++ $(LIBADD_TIMER) \ + $(SSSD_LIBS) \ + $(UNICODE_LIBS) + if BUILD_SUDO +--- a/configure.ac ++++ b/configure.ac +@@ -64,6 +64,19 @@ + pthread_mutex_consistent_np ]) + LIBS=$SAVE_LIBS + ++# Check library for the timer_create function ++SAVE_LIBS=$LIBS ++LIBS= ++LIBADD_TIMER= ++AC_SEARCH_LIBS([timer_create], [rt posix4], ++ [AC_DEFINE([HAVE_LIBRT], [1], ++ [Define if you have the librt library or equivalent.]) ++ LIBADD_TIMER="$LIBS"], ++ [AC_MSG_ERROR([unable to find library fot the timer_create() function])]) ++ ++AC_SUBST([LIBADD_TIMER]) ++LIBS=$SAVE_LIBS ++ + # Check for presence of modern functions for setting file timestamps + AC_CHECK_FUNCS([ utimensat \ + futimens ])