From 5e396627cbee4921631f29b4f0ec206d37ed450ab2e8f47e7741df1bbbff6a10 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 14 May 2014 08:50:28 +0000 Subject: [PATCH] Accepting request 233707 from network:ldap - bnc#877457 - 78 Configuration file /usr/lib/systemd/system/sssd.service is marked executable. Please remove executable permission bits. - Detect endianness at configure time, for use by Samba's byteorder.h header; (bnc#876544). + 0001-build-detect-endianness-at-configure-time.patch (forwarded request 233706 from varkoly) OBS-URL: https://build.opensuse.org/request/show/233707 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sssd?expand=0&rev=54 --- ...-detect-endianness-at-configure-time.patch | 34 +++++++++++++++++++ sssd.changes | 13 +++++++ sssd.spec | 4 ++- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 0001-build-detect-endianness-at-configure-time.patch diff --git a/0001-build-detect-endianness-at-configure-time.patch b/0001-build-detect-endianness-at-configure-time.patch new file mode 100644 index 0000000..6b37a3c --- /dev/null +++ b/0001-build-detect-endianness-at-configure-time.patch @@ -0,0 +1,34 @@ +From 303d096f920801f7b06a7ad406ea83b4cd0219da Mon Sep 17 00:00:00 2001 +From: David Disseldorp +Date: Tue, 6 May 2014 15:56:42 +0200 +Subject: [PATCH] build: detect endianness at configure time + +WORDS_BIGENDIAN, HAVE_BIG_ENDIAN and HAVE_LITTLE_ENDIAN are needed by +Samba. See Samba's byteorder.h header for an example. + +Signed-off-by: David Disseldorp +--- + configure.ac | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git configure.ac configure.ac +index eb7e376..3ed8e69 100644 +--- configure.ac ++++ configure.ac +@@ -309,6 +309,13 @@ AM_CHECK_CMOCKA + + AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm]) + ++AC_C_BIGENDIAN ++if test x$WORDS_BIGENDIAN != x; then ++ AC_DEFINE(HAVE_BIG_ENDIAN, 1, [whether platform is big endian]) ++else ++ AC_DEFINE(HAVE_LITTLE_ENDIAN, 1, [whether platform is little endian]) ++fi ++ + abs_build_dir=`pwd` + AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory]) + AC_SUBST([abs_builddir], $abs_build_dir) +-- +1.8.4.5 + diff --git a/sssd.changes b/sssd.changes index 5a9f55c..c116e68 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue May 13 11:11:59 UTC 2014 - varkoly@suse.com + +- bnc#877457 - 78 Configuration file /usr/lib/systemd/system/sssd.service is marked executable. + Please remove executable permission bits. + +------------------------------------------------------------------- +Tue May 6 14:01:29 UTC 2014 - ddiss@suse.com + +- Detect endianness at configure time, for use by Samba's byteorder.h header; + (bnc#876544). + + 0001-build-detect-endianness-at-configure-time.patch + ------------------------------------------------------------------- Tue Apr 29 10:00:57 UTC 2014 - varkoly@suse.com diff --git a/sssd.spec b/sssd.spec index 795e11b..df67553 100644 --- a/sssd.spec +++ b/sssd.spec @@ -30,6 +30,7 @@ Source2: https://fedorahosted.org/released/sssd/sssd-%version.tar.gz.asc Source3: baselibs.conf Source4: sssd.service BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch1: 0001-build-detect-endianness-at-configure-time.patch %define servicename sssd %define sssdstatedir %_localstatedir/lib/sss @@ -285,6 +286,7 @@ Security Services Daemon (sssd). %prep %{?gpg_verify: %gpg_verify %{S:2}} %setup -q +%patch1 -p0 %build %if 0%{?suse_version} < 1210 @@ -330,7 +332,7 @@ install -m600 src/examples/sssd-example.conf "$b/%_sysconfdir/sssd/sssd.conf"; install -d "$b/%_unitdir"; # Missing service file in 1.11.5.1 #install src/sysv/systemd/sssd.service "$b/%_unitdir/sssd.service"; -install %{S:4} "$b/%_unitdir/sssd.service"; +install -m644 %{S:4} "$b/%_unitdir/sssd.service"; rm -Rf "$b/%_initddir" %else install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd";