diff --git a/ncompress-4.2.4-memmove.patch b/ncompress-4.2.4.4-memmove.patch similarity index 100% rename from ncompress-4.2.4-memmove.patch rename to ncompress-4.2.4.4-memmove.patch diff --git a/ncompress.spec b/ncompress.spec index 7365d82..f881013 100644 --- a/ncompress.spec +++ b/ncompress.spec @@ -29,7 +29,11 @@ Patch3: ncompress-4.2.4.4-2GB.patch # ~> #207001 Patch4: ncompress-4.2.4.4-endians.patch -Patch8: ncompress-4.2.4-memmove.patch +# use memmove instead of memcpy +# ~> 760657 +# ~> downstream +Patch5: ncompress-4.2.4.4-memmove.patch + BuildRequires: gcc glibc-devel fileutils BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -64,6 +68,7 @@ sed "s/\$(ARCH_FLAGS)/$ARCH_FLAGS/" Makefile.def > Makefile %patch2 -p1 -b .filenamelen %patch3 -p1 -b .2GB %patch4 -p1 -b .endians +%patch5 -p1 -b .memmove %build make CFLAGS="%{optflags} %{?nc_endian} %{?nc_align}"