Fix FTBFS when "-Werror=format-security" is used
This commit is contained in:
parent
27b88a89b8
commit
d285bc2a75
13
plotutils-werror-format-security.patch
Normal file
13
plotutils-werror-format-security.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/pic2plot/gram.yy b/pic2plot/gram.yy
|
||||||
|
index d11320b..1bcce46 100644
|
||||||
|
--- a/pic2plot/gram.yy
|
||||||
|
+++ b/pic2plot/gram.yy
|
||||||
|
@@ -1833,7 +1833,7 @@ do_sprintf(const char *form, const double *v, int nv)
|
||||||
|
{
|
||||||
|
one_format += *form++;
|
||||||
|
one_format += '\0';
|
||||||
|
- sprintf(sprintf_buf, one_format.contents());
|
||||||
|
+ sprintf(sprintf_buf, "%s", one_format.contents());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Name: plotutils
|
Name: plotutils
|
||||||
Version: 2.6
|
Version: 2.6
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: GNU vector and raster graphics utilities and libraries
|
Summary: GNU vector and raster graphics utilities and libraries
|
||||||
|
|
||||||
Group: Applications/Productivity
|
Group: Applications/Productivity
|
||||||
@ -12,6 +12,7 @@ URL: http://www.gnu.org/software/plotutils/
|
|||||||
Source0: ftp://ftp.gnu.org/gnu/plotutils/plotutils-%{version}.tar.gz
|
Source0: ftp://ftp.gnu.org/gnu/plotutils/plotutils-%{version}.tar.gz
|
||||||
Patch0: plotutils-2.6-png15.patch
|
Patch0: plotutils-2.6-png15.patch
|
||||||
Patch1: plotutils-aarch64.patch
|
Patch1: plotutils-aarch64.patch
|
||||||
|
Patch2: plotutils-werror-format-security.patch
|
||||||
|
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
@ -20,6 +21,7 @@ BuildRequires: libX11-devel
|
|||||||
BuildRequires: libXaw-devel
|
BuildRequires: libXaw-devel
|
||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
BuildRequires: libXext-devel
|
BuildRequires: libXext-devel
|
||||||
|
BuildRequires: byacc
|
||||||
|
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
@ -49,6 +51,7 @@ applications
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .png15
|
%patch0 -p1 -b .png15
|
||||||
%patch1 -p1 -b .aarch64
|
%patch1 -p1 -b .aarch64
|
||||||
|
%patch2 -p1 -b .format-security
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --enable-libplotter --enable-libxmi --enable-ps-fonts-in-pcl
|
%configure --disable-static --enable-libplotter --enable-libxmi --enable-ps-fonts-in-pcl
|
||||||
@ -114,6 +117,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 04 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-10
|
||||||
|
- Fix FTBFS when "-Werror=format-security" is used
|
||||||
|
|
||||||
* Tue Nov 26 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-9
|
* Tue Nov 26 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.6-9
|
||||||
- Apply aarch64 support patch (#926356)
|
- Apply aarch64 support patch (#926356)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user