rpms/asymptote/devel asymptote-1.42-limits.patch, NONE, 1.1 asymptote.spec, 1.35, 1.36

Tom Callaway (spot) fedora-extras-commits at redhat.com
Fri Apr 4 21:58:37 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/asymptote/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4884

Modified Files:
	asymptote.spec 
Added Files:
	asymptote-1.42-limits.patch 
Log Message:
fix compile failure

asymptote-1.42-limits.patch:

--- NEW FILE asymptote-1.42-limits.patch ---
diff -up asymptote-1.42/util.h.BAD asymptote-1.42/util.h
--- asymptote-1.42/util.h.BAD	2008-04-04 17:34:14.000000000 -0400
+++ asymptote-1.42/util.h	2008-04-04 17:34:23.000000000 -0400
@@ -10,6 +10,7 @@
 
 #include <sys/types.h>
 #include <iostream>
+#include <limits.h>
 
 #include "common.h"
 
diff -up asymptote-1.42/runtime.in.BAD asymptote-1.42/runtime.in
--- asymptote-1.42/runtime.in.BAD	2008-04-04 17:39:42.000000000 -0400
+++ asymptote-1.42/runtime.in	2008-04-04 17:50:40.000000000 -0400
@@ -1150,7 +1150,7 @@ void deconstruct(picture *f, picture *pr
   string prefix=outname();
   string xformat=getSetting<string>("xformat");
 
-  const unsigned maxargs=::min(ARG_MAX/(prefix.size()+xformat.size()+25ul),
+  const unsigned maxargs=::min(_POSIX_ARG_MAX/(prefix.size()+xformat.size()+25ul),
 			       256ul);
   
   cout << xformat << newl;


Index: asymptote.spec
===================================================================
RCS file: /cvs/pkgs/rpms/asymptote/devel/asymptote.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- asymptote.spec	28 Feb 2008 17:10:20 -0000	1.35
+++ asymptote.spec	4 Apr 2008 21:57:52 -0000	1.36
@@ -5,7 +5,7 @@
 
 Name:           asymptote
 Version:        1.42
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Descriptive vector graphics language
 
 Group:          Applications/Publishing
@@ -15,6 +15,7 @@
 Source1:	asy.gif
 Source2:	xasy.desktop
 Patch0:         asymptote-1.29-settings.patch
+Patch1:         asymptote-1.42-limits.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  ncurses-devel
@@ -31,8 +32,9 @@
 Requires:       tetex-latex
 Requires:       tkinter
 Requires:	python-imaging-tk
-Requires(post): /usr/bin/texhash /sbin/install-info
-Requires(postun): /usr/bin/texhash /sbin/install-info
+# for /usr/bin/texhash and /sbin/install-info
+Requires(post): texlive, info
+Requires(postun): texlive, info
 
 %define texpkgdir   %{_texmf}/tex/latex/%{name}
 
@@ -46,6 +48,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %{__sed} -i 's/\r//' doc/CAD1.asy
 
 # convert to UTF-8
@@ -136,6 +139,9 @@
 
 
 %changelog
+* Fri Apr  4 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.42-2
+- fix build failure (use _POSIX_ARG_MAX) resolves bz 440799
+
 * Thu Feb 28 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.42-1
 - update to 1.42
 




More information about the fedora-extras-commits mailing list