Hello community, here is the log from the commit of package libexplain for openSUSE:Factory checked in at 2015-04-15 16:21:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libexplain (Old) and /work/SRC/openSUSE:Factory/.libexplain.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libexplain" Changes: -------- New Changes file: --- /dev/null 2015-03-12 01:14:30.992027505 +0100 +++ /work/SRC/openSUSE:Factory/.libexplain.new/libexplain.changes 2015-04-15 16:21:40.000000000 +0200 @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Mon Apr 13 07:02:44 UTC 2015 - [email protected] + +- Initial package for version 1.4 +- Use patches from fedora + * libexplain-1.4-largefile.patch + * libexplain-1.4-syscall.patch New: ---- libexplain-1.4-largefile.patch libexplain-1.4-syscall.patch libexplain-1.4.tar.gz libexplain.changes libexplain.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libexplain.spec ++++++ # # spec file for package libexplain # # Copyright (c) 2015 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define lib_name %{name}51 Name: libexplain Version: 1.4 Release: 0 Summary: Library functions to explain system call errors License: LGPL-3.0+ Group: Development/Libraries/C and C++ Url: http://libexplain.sourceforge.net Source: http://downloads.sf.net/libexplain/%{name}-%{version}.tar.gz Patch0: libexplain-1.4-largefile.patch Patch1: libexplain-1.4-syscall.patch BuildRequires: bison BuildRequires: ghostscript BuildRequires: groff-full BuildRequires: libacl-devel BuildRequires: libcap-devel BuildRequires: libtool BuildRequires: lsof BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libexplain project provides a library which may be used to explain Unix and Linux system call errors. This will make your application's error messages much more informative to your users. The library is not quite a drop-in replacement for strerror, but it comes close. Each system call has a dedicated libexplain function. The coverage for system calls is being improved all the time. Coverage includes 159 system calls and 444 ioctl requests. %package -n %{lib_name} Summary: Explains system call error reports Group: System/Libraries %description -n %{lib_name} The libexplain project provides a library which may be used to explain Unix and Linux system call errors. This will make your application's error messages much more informative to your users. The library is not quite a drop-in replacement for strerror, but it comes close. Each system call has a dedicated libexplain function. The coverage for system calls is being improved all the time. Coverage includes 159 system calls and 444 ioctl requests. %package -n explain Summary: Explains system call error reports License: GPL-3.0+ Group: Development/Tools %description -n explain The explain command is used to decode an error return read from an strace(1) listing, or similar. Because this is being deciphered in a different process than the original, the results will be less accurate than if the program itself were to use libexplain(3). %package devel Summary: Development files for libexplain License: LGPL-3.0+ and GPL-3.0+ Group: Development/Libraries/C and C++ Requires: %{lib_name} = %{version} %description devel Development files for the libexplain library. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # --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 %defattr(-,root,root) %doc LICENSE README %{_libdir}/%{name}.so.* %files -n explain %defattr(-,root,root) %{_bindir}/explain %{_mandir}/man1/*.1.* %files devel %defattr(-,root,root) %{_datadir}/doc/%{name} %{_mandir}/man3/*.3.* %{_includedir}/%{name}/ %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog ++++++ libexplain-1.4-largefile.patch ++++++ --- a/libexplain/ac/fcntl.h +++ b/libexplain/ac/fcntl.h @@ -65,8 +65,14 @@ * flags values returned by the kernel. */ #if defined(__linux__) && (O_LARGEFILE == 0) +#if defined(__aarch64__) +#define O_LARGEFILE_HIDDEN 0400000 +#elif defined(__powerpc64__) +#define O_LARGEFILE_HIDDEN 0200000 +#else #define O_LARGEFILE_HIDDEN 0100000 #endif +#endif /* ++++++ libexplain-1.4-syscall.patch ++++++ --- a/explain/syscall/ustat.c +++ b/explain/syscall/ustat.c @@ -30,7 +30,7 @@ #include <explain/syscall/ustat.h> -#ifndef HAVE_USTAT +#if !defined(HAVE_USTAT_H) && !defined(LINUX_TYPES_H_STRUCT_USTAT) struct ustat { --- a/libexplain/buffer/enfile.c +++ b/libexplain/buffer/enfile.c @@ -38,7 +38,7 @@ get_maxfile(void) { if (explain_option_dialect_specific()) { -#ifdef __linux__ +#ifdef SYS__sysctl /* * 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) static int get_somaxconn(void) { -#ifdef __linux__ +#ifdef SYS__sysctl struct __sysctl_args args; long somaxconn; size_t somaxconn_size = sizeof(somaxconn);
