Hello community, here is the log from the commit of package libexplain for openSUSE:Factory checked in at 2016-04-12 19:39:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libexplain (Old) and /work/SRC/openSUSE:Factory/.libexplain.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libexplain" Changes: -------- --- /work/SRC/openSUSE:Factory/libexplain/libexplain.changes 2015-04-15 16:21:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libexplain.new/libexplain.changes 2016-04-12 19:39:24.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Apr 11 12:01:59 UTC 2016 - [email protected] + +- Fix building with kernel-4.5 and later + * libexplain-1.4-missing-defines.patch +- Fix rpm group + +------------------------------------------------------------------- New: ---- libexplain-1.4-missing-defines.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libexplain.spec ++++++ --- /var/tmp/diff_new_pack.TI7tFq/_old 2016-04-12 19:39:25.000000000 +0200 +++ /var/tmp/diff_new_pack.TI7tFq/_new 2016-04-12 19:39:25.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package libexplain # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define lib_name %{name}51 Name: libexplain Version: 1.4 @@ -26,9 +27,12 @@ Source: http://downloads.sf.net/libexplain/%{name}-%{version}.tar.gz Patch0: libexplain-1.4-largefile.patch Patch1: libexplain-1.4-syscall.patch +# PATCH-FIX-UPSTREAM libexplain-1.4-missing-defines.patch [email protected] +Patch2: libexplain-1.4-missing-defines.patch BuildRequires: bison BuildRequires: ghostscript BuildRequires: groff-full +BuildRequires: kernel-devel BuildRequires: libacl-devel BuildRequires: libcap-devel BuildRequires: libtool @@ -48,6 +52,7 @@ %package -n %{lib_name} Summary: Explains system call error reports +License: LGPL-3.0+ Group: System/Libraries %description -n %{lib_name} @@ -63,7 +68,7 @@ %package -n explain Summary: Explains system call error reports License: GPL-3.0+ -Group: Development/Tools +Group: Development/Tools/Other %description -n explain The explain command is used to decode an error return read from an @@ -82,22 +87,22 @@ %prep %setup -q -%patch0 -p1 -%patch1 -p1 +%patch0 +%patch1 +%patch2 %build %configure make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +make %{?_smp_mflags} DESTDIR=%{buildroot} install # --disable-static for configure has no effect rm %{buildroot}%{_libdir}/%{name}.{a,la} %find_lang %{name} %post -n %{lib_name} -p /sbin/ldconfig - %postun -n %{lib_name} -p /sbin/ldconfig %files -n %{lib_name} -f %{name}.lang @@ -108,12 +113,14 @@ %files -n explain %defattr(-,root,root) %{_bindir}/explain -%{_mandir}/man1/*.1.* +%{_mandir}/man1/explain.1%{ext_man} +%{_mandir}/man1/explain_lca2010.1%{ext_man} +%{_mandir}/man1/explain_license.1%{ext_man} %files devel %defattr(-,root,root) %{_datadir}/doc/%{name} -%{_mandir}/man3/*.3.* +%{_mandir}/man3/*.3%{ext_man} %{_includedir}/%{name}/ %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc ++++++ libexplain-1.4-largefile.patch ++++++ --- /var/tmp/diff_new_pack.TI7tFq/_old 2016-04-12 19:39:25.000000000 +0200 +++ /var/tmp/diff_new_pack.TI7tFq/_new 2016-04-12 19:39:25.000000000 +0200 @@ -1,5 +1,7 @@ ---- a/libexplain/ac/fcntl.h -+++ b/libexplain/ac/fcntl.h +Index: libexplain/ac/fcntl.h +=================================================================== +--- libexplain/ac/fcntl.h.orig ++++ libexplain/ac/fcntl.h @@ -65,8 +65,14 @@ * flags values returned by the kernel. */ ++++++ libexplain-1.4-missing-defines.patch ++++++ Index: libexplain/buffer/file_inode_flags.c =================================================================== --- libexplain/buffer/file_inode_flags.c.orig +++ libexplain/buffer/file_inode_flags.c @@ -28,6 +28,14 @@ #if defined(FS_IOC_GETFLAGS) || defined(FS_IOC32_GETFLAGS) +#ifndef FS_ECOMPR_FL +#define FS_ECOMPR_FL 0x00000800 /* Compression error */ +#endif + +#ifndef FS_DIRECTIO_FL +#define FS_DIRECTIO_FL 0x00100000 /* Use direct i/o */ +#endif + void explain_buffer_file_inode_flags(explain_string_buffer_t *sb, int value) { ++++++ libexplain-1.4-syscall.patch ++++++ --- /var/tmp/diff_new_pack.TI7tFq/_old 2016-04-12 19:39:25.000000000 +0200 +++ /var/tmp/diff_new_pack.TI7tFq/_new 2016-04-12 19:39:25.000000000 +0200 @@ -1,5 +1,7 @@ ---- a/explain/syscall/ustat.c -+++ b/explain/syscall/ustat.c +Index: explain/syscall/ustat.c +=================================================================== +--- explain/syscall/ustat.c.orig ++++ explain/syscall/ustat.c @@ -30,7 +30,7 @@ #include <explain/syscall/ustat.h> @@ -9,8 +11,10 @@ struct ustat { ---- a/libexplain/buffer/enfile.c -+++ b/libexplain/buffer/enfile.c +Index: libexplain/buffer/enfile.c +=================================================================== +--- libexplain/buffer/enfile.c.orig ++++ libexplain/buffer/enfile.c @@ -38,7 +38,7 @@ get_maxfile(void) { if (explain_option_dialect_specific()) @@ -20,9 +24,11 @@ /* * In the linux kernel, if get_empty_filp() returns NULL, the open * system call (and others) will return ENFILE. ---- a/libexplain/buffer/errno/listen.c -+++ b/libexplain/buffer/errno/listen.c -@@ -72,7 +72,7 @@ append_getsockname(explain_string_buffer_t *sb, int fildes) +Index: libexplain/buffer/errno/listen.c +=================================================================== +--- libexplain/buffer/errno/listen.c.orig ++++ libexplain/buffer/errno/listen.c +@@ -72,7 +72,7 @@ append_getsockname(explain_string_buffer static int get_somaxconn(void) {
