]> git.pld-linux.org Git - packages/dml.git/commitdiff
- added format patch (fixes build with -Werror=format-security); release 4 master auto/th/dml-0.1.6-4
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 May 2024 16:37:01 +0000 (18:37 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 May 2024 16:37:01 +0000 (18:37 +0200)
dml-format.patch [new file with mode: 0644]
dml.spec

diff --git a/dml-format.patch b/dml-format.patch
new file mode 100644 (file)
index 0000000..06a6005
--- /dev/null
@@ -0,0 +1,11 @@
+--- dml-0.1.6/src/main.c.orig  2024-05-29 18:34:15.622664112 +0200
++++ dml-0.1.6/src/main.c       2024-05-29 18:35:21.065642910 +0200
+@@ -166,7 +166,7 @@ int main(int argc, char **argv)
+               for (i = 0; i < r; i++)
+                       tmp[i] = '\n';
+               tmp[i] = 0;
+-              printf(tmp);
++              fputs(tmp, stdout);
+               free(tmp);
+       }
+               
index e36f87aa85cab5ad356bbe702e1ab20e2d28ccd0..a8924286107a4495ffa003862d4c33f02ca13ac3 100644 (file)
--- a/dml.spec
+++ b/dml.spec
@@ -2,13 +2,14 @@ Summary:      Tool for displaying dialogs from shell
 Summary(pl.UTF-8):     Narzędzie do wyświetlania okien dialogowych z shella
 Name:          dml
 Version:       0.1.6
-Release:       3
+Release:       4
 License:       GPL v2
 Group:         Applications/Terminal
 Source0:       ftp://ftp.pld-linux.org/people/malekith/dml/%{name}-%{version}.tar.gz
 # Source0-md5: 1862186f09b0c82fd69c50364fbbd638
 Patch0:                %{name}-utf8.patch
 Patch1:                %{name}-input_utf8.patch
+Patch2:                %{name}-format.patch
 BuildRequires: slang-devel >= 2.0.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,6 +23,7 @@ Narzędzie do wyświetlania okien dialogowych z shella.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} \
@@ -31,6 +33,7 @@ Narzędzie do wyświetlania okien dialogowych z shella.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
        PREFIX=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
@@ -41,5 +44,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS TODO NEWS README doc/dml.pl doc/dml.sh
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/dml
+%{_mandir}/man1/dml.1*
This page took 0.123285 seconds and 4 git commands to generate.