Projects
home:pandora:RobinOS23
patch
_service:download_src_package:patch.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:patch.spec of Package patch
%define anolis_release 1 %global gnulib_ver 20180203 Summary: Utility for modifying/upgrading files Name: patch Version: 2.7.6 Epoch: 1 Release: %{anolis_release}%{?dist} License: GPLv3+ URL: https://savannah.gnu.org/projects/patch/ Source: https://ftp.gnu.org/gnu/patch/patch-%{version}.tar.xz Patch0: patch-2.7.6-avoid-set_file_attributes-sign-conversion-warnings.patch patch1: patch-2.7.6-test-suite-compatibility-fixes.patch Patch2: patch-2.7.6-fix-korn-shell-incompatibility.patch Patch3: patch-2.7.6-fix-segfault-with-mangled-rename-patch.patch Patch4: patch-2.7.6-allow-input-files-to-be-missing-for-ed-style-patches.patch # fix Malicious patch files cause ed to execute arbitrary commands Patch5: patch-CVE-2018-1000156.patch Patch6: patch-2.7.6-CVE-2019-13638-invoked-ed-directly-instead-of-using-the-shell.patch Patch7: patch-2.7.6-switch-from-fork-execlp-to-execute.patch Patch8: patch-2.7.6-cleanups-in-do_ed_script.patch Patch9: patch-2.7.6-avoid-warnings-gcc8.patch Patch10: patch-2.7.6-check-of-return-value-of-fwrite.patch Patch11: patch-2.7.6-fix-ed-style-test-failure.patch Patch12: patch-2.7.6-dont-leak-temporary-file-on-failed-ed-style-patch.patch Patch13: patch-2.7.6-dont-leak-temporary-file-on-failed-multi-file-ed-style-patch.patch Patch14: patch-2.7.6-make-debug-output-more-useful.patch Patch15: patch-2.7.6-CVE-2018-6952-fix-swapping-fake-lines-in-pch_swap.patch Patch16: patch-2.7.6-improve_support_for_memory_leak_detection.patch patch17: patch-2.7.6-skip-ed-test-when-the-ed-utility-is-not-installed.patch Patch18: patch-2.7.6-abort_when_cleaning_up_fails.patch Patch19: patch-2.7.6-crash-RLIMIT_NOFILE.patch # fix OS shell command injection when processing crafted patch files Patch20: patch-2.7.6-CVE-2019-13636-symlinks.patch Patch21: patch-2.7.6-avoid-invalid-memory-access-in-context-format-diffs.patch # fix heap-based buffer overflow Patch22: patch-2.7.6-CVE-2018-17942.patch Patch23: patch-2.7.6-failed_assertion.patch Patch100: patch-selinux.patch BuildRequires: make BuildRequires: gcc BuildRequires: libselinux-devel BuildRequires: libattr-devel BuildRequires: ed BuildRequires: autoconf automake Requires: ed Provides: bundled(gnulib) = %{gnulib_ver} %description The patch program applies diff files to originals. The diff command is used to compare an original to a changed file. Diff lists the changes made to the file. A person who has the original file can then use the patch command with the diff file to add the changes to their original file (patching the file). Patch should be installed because it is a common way of upgrading applications. %prep %setup -q %patch0 -p1 -b .avoid-set_file_attributes-sign-conversion-warnings %patch1 -p1 -b .test-suite-compatibility-fixes %patch2 -p1 -b .fix-korn-shell-incompatibility %patch3 -p1 -b .fix-segfault-with-mangled-rename-patch %patch4 -p1 -b .allow-input-files-to-be-missing-for-ed-style-patches # Malicious patch files cause ed to execute arbitrary commands %patch5 -p1 -b .CVE-2018-1000156 %patch6 -p1 -b .CVE-2019-13638-invoked-ed-directly-instead-of-using-the-shell %patch7 -p1 -b .switch-from-fork-execlp-to-execute %patch8 -p1 -b .cleanups-in-do_ed_script %patch9 -p1 -b .avoid-warnings-gcc8 %patch10 -p1 -b .check-of-return-value-of-fwrite %patch11 -p1 -b .fix-ed-style-test-failure %patch12 -p1 -b .dont-leak-temporary-file-on-failed-ed-style-patch %patch13 -p1 -b .dont-leak-temporary-file-on-failed-multi-file-ed-style-patch %patch14 -p1 -b .make-debug-output-more-useful %patch15 -p1 -b .CVE-2018-6952-fix-swapping-fake-lines-in-pch_swap %patch16 -p1 -b .improve_support_for_memory_leak_detection %patch17 -p1 -b .skip-ed-test-when-the-ed-utility-is-not-installed %patch18 -p1 -b .abort_when_cleaning_up_fails %patch19 -p1 -b .crash-RLIMIT_NOFILE %patch20 -p1 -b .CVE-2019-13636-symlinks %patch21 -p1 -b .avoid-invalid-memory-access-in-context-format-diffs # gnulib: heap-based buffer overflow %patch22 -p1 -b .CVE-2018-17942-gnulib_buffer_overflow %patch23 -p1 -b .failed_assertion # SELinux support. %patch100 -p1 -b .selinux %build CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" autoreconf %configure --disable-silent-rules %make_build %check make check %install %makeinstall %files %license COPYING %doc NEWS README %{_bindir}/* %{_mandir}/*/* %changelog * Mon May 16 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 2.7.6-1 - Init from upstream version 2.7.6
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2