forked from pool/diffutils
- Fix failure (noticed in sdiff as fatal "realloc(): invalid next size")
Original upstream report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77265 New patch: diff-fix-allocation-typo-leading-to-crashes.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/diffutils?expand=0&rev=79
This commit is contained in:
74
diffutils.spec
Normal file
74
diffutils.spec
Normal file
@@ -0,0 +1,74 @@
|
||||
#
|
||||
# spec file for package diffutils
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: diffutils
|
||||
Version: 3.11
|
||||
Release: 0
|
||||
Summary: GNU diff Utilities
|
||||
License: GFDL-1.2-only AND GPL-3.0-or-later
|
||||
Group: Productivity/Text/Utilities
|
||||
URL: https://www.gnu.org/software/diffutils/
|
||||
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
||||
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
||||
Source2: https://savannah.gnu.org/project/release-gpgkeys.php?group=diffutils&download=1#/%{name}.keyring
|
||||
Patch1: diff-fix-allocation-typo-leading-to-crashes.patch
|
||||
Provides: diff = %{version}
|
||||
Obsoletes: diff < %{version}
|
||||
|
||||
%description
|
||||
The GNU diff utilities find differences between files. diff is used to
|
||||
make source code patches, for instance.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-packager="openSUSE" \
|
||||
--with-packager-bug-reports="https://bugs.opensuse.org/"
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
%if 0%{?qemu_user_space_build}
|
||||
# Stack overflow tests are difficult to emulate, skip them
|
||||
echo exit 77 > gnulib-tests/test-c-stack.sh
|
||||
echo 'int main() { return 77; }' > gnulib-tests/test-sigsegv-catch-stackoverflow1.c
|
||||
echo 'int main() { return 77; }' > gnulib-tests/test-sigsegv-catch-stackoverflow2.c
|
||||
# This triggers a bug in qemu (bsc#1202260)
|
||||
echo 'int main() { return 77; }' > gnulib-tests/test-free.c
|
||||
%endif
|
||||
%make_build check
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README THANKS
|
||||
%{_bindir}/*
|
||||
%{_infodir}/diffutils.info%{?ext_info}
|
||||
%{_mandir}/man1/*.1%{?ext_man}
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user