Tomohiro "Tomo-p" KATO 3 tahun lalu
induk
melakukan
2f1f0ec8af
1 mengubah file dengan 9 tambahan dan 3 penghapusan
  1. 9 3
      g/gd/gd-vl.spec

+ 9 - 3
g/gd/gd-vl.spec

@@ -5,7 +5,7 @@ Summary: A graphics library for drawing .png files.
 Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
 Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
 Name: gd
 Name: gd
 Version: 2.3.2
 Version: 2.3.2
-Release: 1%{_dist_release}
+Release: 2%{_dist_release}
 Group: system
 Group: system
 Vendor: Project Vine
 Vendor: Project Vine
 Distribution: Vine Linux
 Distribution: Vine Linux
@@ -19,6 +19,8 @@ Source1: https://raw.githubusercontent.com/libgd/libgd/master/config/getlib.sh
 Patch0: gd-2.1.0-multilib.patch
 Patch0: gd-2.1.0-multilib.patch
 # https://github.com/libgd/libgd/issues/615
 # https://github.com/libgd/libgd/issues/615
 Patch1000: CVE-2021-38115.patch
 Patch1000: CVE-2021-38115.patch
+# https://github.com/libgd/libgd/issues/700
+Patch1001: CVE-2021-40145.patch
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: freetype2-devel
 BuildRequires: freetype2-devel
@@ -113,7 +115,7 @@ gdをインストールした場合、gd-develパッケージも必要になり
 ## to build compat32 for x86_64 architecture support
 ## to build compat32 for x86_64 architecture support
 %package -n compat32-%{name}
 %package -n compat32-%{name}
 Summary: A graphics library for drawing .png files.
 Summary: A graphics library for drawing .png files.
-Group: system
+Group: system,legacy
 %description -n compat32-%{name}
 %description -n compat32-%{name}
 Gd is a graphics library for drawing .png files.  Gd allows your code to
 Gd is a graphics library for drawing .png files.  Gd allows your code to
 quickly draw images (lines, arcs, text, multiple colors, cutting and
 quickly draw images (lines, arcs, text, multiple colors, cutting and
@@ -129,7 +131,7 @@ package.
 
 
 %package -n compat32-%{name}-devel
 %package -n compat32-%{name}-devel
 Summary: The development libraries and header files for gd.
 Summary: The development libraries and header files for gd.
-Group: programming
+Group: programming,legacy
 Requires: compat32-freetype2-devel
 Requires: compat32-freetype2-devel
 Requires: compat32-fontconfig-devel
 Requires: compat32-fontconfig-devel
 Requires: compat32-libjpeg-turbo-devel
 Requires: compat32-libjpeg-turbo-devel
@@ -156,6 +158,7 @@ If you're installing the gd graphics library, you must install gd-devel.
 %setup -q -n libgd-%{version}
 %setup -q -n libgd-%{version}
 #patch0 -p1 -b .mlib
 #patch0 -p1 -b .mlib
 %patch1000 -p1
 %patch1000 -p1
+%patch1001 -p1
 
 
 cp %{SOURCE1} ./config/
 cp %{SOURCE1} ./config/
 chmod 755 ./config/getlib.sh
 chmod 755 ./config/getlib.sh
@@ -229,6 +232,9 @@ make %{?_smp_mflags} check
 
 
 
 
 %changelog
 %changelog
+* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.2-2.
+- imported Patch1001 from upstream to fix CVE-2021-40145.
+
 * Thu Aug 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.2-1
 * Thu Aug 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.2-1
 - new upstream release.
 - new upstream release.
 - dropped ldconfig scriptlets.
 - dropped ldconfig scriptlets.