[packages/perl-Proc-ProcessTable] Compilation fix
wiget
wiget at pld-linux.org
Mon Jun 10 21:19:56 CEST 2013
commit 1c75d2d6e5d2e0b9a04d5558f188c7f67c66682c
Author: Artur Frysiak <artur at frysiak.net>
Date: Mon Jun 10 21:18:37 2013 +0200
Compilation fix
format.patch | 20 ++++++++++++++++++++
perl-Proc-ProcessTable.spec | 2 ++
2 files changed, 22 insertions(+)
---
diff --git a/perl-Proc-ProcessTable.spec b/perl-Proc-ProcessTable.spec
index 1eb8ebf..06cc720 100644
--- a/perl-Proc-ProcessTable.spec
+++ b/perl-Proc-ProcessTable.spec
@@ -15,6 +15,7 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: ddc2c67cd1184ddb0ba1f84e89b90e2a
+Patch0: format.patch
URL: http://search.cpan.org/dist/Proc-ProcessTable/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -45,6 +46,7 @@ sposobem.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/format.patch b/format.patch
new file mode 100644
index 0000000..7f05ba5
--- /dev/null
+++ b/format.patch
@@ -0,0 +1,20 @@
+--- Proc-ProcessTable-0.48/os/Linux.c.wiget 2013-06-10 21:16:10.159991222 +0200
++++ Proc-ProcessTable-0.48/os/Linux.c 2013-06-10 21:17:02.577942375 +0200
+@@ -394,7 +394,7 @@ static void eval_link(char *pid, char *l
+
+ /* copy the path onto our obstack, set the value (somewhere in pts)
+ * and free the results of canonicalize_file_name */
+- obstack_printf(mem_pool, link);
++ obstack_printf(mem_pool, "%s", link);
+ obstack_1grow(mem_pool, '\0');
+
+ *ptr = (char *) obstack_finish(mem_pool);
+@@ -635,7 +635,7 @@ void OS_get_table()
+ bzero(prs, sizeof(struct procstat));
+
+ /* intilize the format string */
+- obstack_printf(&mem_pool, get_string(STR_DEFAULT_FORMAT));
++ obstack_printf(&mem_pool, "%s", get_string(STR_DEFAULT_FORMAT));
+ obstack_1grow(&mem_pool, '\0');
+ format_str = (char *) obstack_finish(&mem_pool);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Proc-ProcessTable.git/commitdiff/1c75d2d6e5d2e0b9a04d5558f188c7f67c66682c
More information about the pld-cvs-commit
mailing list