packages: mpack/mpack.spec, mpack/mpack-gentoo.patch (NEW) - rel 3; fix build
arekm
arekm at pld-linux.org
Mon Jun 15 22:39:49 CEST 2009
Author: arekm Date: Mon Jun 15 20:39:49 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- rel 3; fix build
---- Files affected:
packages/mpack:
mpack.spec (1.34 -> 1.35) , mpack-gentoo.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/mpack/mpack.spec
diff -u packages/mpack/mpack.spec:1.34 packages/mpack/mpack.spec:1.35
--- packages/mpack/mpack.spec:1.34 Tue Feb 13 08:16:48 2007
+++ packages/mpack/mpack.spec Mon Jun 15 22:39:44 2009
@@ -3,12 +3,13 @@
Summary(pl.UTF-8): mpack i munpack - narzędzia MIME do poczty elektronicznej
Name: mpack
Version: 1.6
-Release: 2
+Release: 3
License: distributable
Group: Applications/Mail
Source0: ftp://ftp.andrew.cmu.edu/pub/mpack/%{name}-%{version}.tar.gz
# Source0-md5: a70fa5afa76539a9afb70b9d81568fe8
Patch0: %{name}-tmp.patch
+Patch1: %{name}-gentoo.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,6 +34,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__aclocal} -I cmulocal
@@ -63,6 +65,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.35 2009/06/15 20:39:44 arekm
+- rel 3; fix build
+
Revision 1.34 2007/02/13 07:16:48 glen
- tabs in preamble
================================================================
Index: packages/mpack/mpack-gentoo.patch
diff -u /dev/null packages/mpack/mpack-gentoo.patch:1.1
--- /dev/null Mon Jun 15 22:39:49 2009
+++ packages/mpack/mpack-gentoo.patch Mon Jun 15 22:39:44 2009
@@ -0,0 +1,36 @@
+diff -bur mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
+--- mpack-1.6-orig/unixos.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixos.c 2007-03-11 02:04:48.000000000 +0100
+@@ -39,7 +39,7 @@
+ #endif
+
+ extern int errno;
+-extern char *malloc();
++extern void *malloc();
+ extern char *getenv();
+
+ int overwrite_files = 0;
+diff -bur mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c
+--- mpack-1.6-orig/unixpk.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/unixpk.c 2007-03-11 02:14:02.000000000 +0100
+@@ -167,7 +167,7 @@
+ strcpy(fnamebuf, "/usr/tmp");
+ }
+ strcat(fnamebuf, "/mpackXXXXXX");
+- mktemp(fnamebuf);
++ mkstemp(fnamebuf);
+ outfname = strsave(fnamebuf);
+ }
+
+diff -bur mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
+--- mpack-1.6-orig/xmalloc.c 2007-03-11 02:02:02.000000000 +0100
++++ mpack-1.6/xmalloc.c 2007-03-11 02:04:29.000000000 +0100
+@@ -24,7 +24,7 @@
+ */
+ #include <stdio.h>
+ #include <string.h>
+-extern char *malloc(), *realloc();
++extern void *malloc(), *realloc();
+
+ char *xmalloc (int size)
+ {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mpack/mpack.spec?r1=1.34&r2=1.35&f=u
More information about the pld-cvs-commit
mailing list