Author: ken
Date: Thu Feb 13 08:29:53 2014
New Revision: 2839

Log:
texlive: fix build failure in asymptote with recent gcc.

Added:
   trunk/texlive/texlive-20130530-source-fix_asymptote-1.patch

Added: trunk/texlive/texlive-20130530-source-fix_asymptote-1.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/texlive/texlive-20130530-source-fix_asymptote-1.patch Thu Feb 13 
08:29:53 2014        (r2839)
@@ -0,0 +1,37 @@
+Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
+Date: 2014-02-13
+Initial Package Version: 20130530
+Upstream Status: (TeX Live) - unknown
+Origin: Upstream asymptote [ 2.24 ]
+Description: Fixes scope error with (at least) g++-4.8 :
+interact.cc: In function ‘char* interact::readpipeline(const char*)’:
+interact.cc:94:25: error: ‘strlen’ was not declared in this scope
+   } while(buf[strlen(buf)-1] != '\n');
+                         ^
+make: *** [interact.o] Error 1
+
+
+--- a/utils/asymptote/interact.cc      2014-02-12 17:22:20.598967280 +0000
++++ b/utils/asymptote/interact.cc      2014-02-12 17:22:34.042882164 +0000
+@@ -85,20 +85,10 @@
+ 
+ char *readpipeline(const char *prompt)
+ {
+-  const int max_size=256;
+-  static char buf[max_size];
+-  ostringstream s;
+-  do {
+-    if(fgets(buf,max_size-1,fin) == NULL) break;
+-    s << buf;
+-  } while(buf[strlen(buf)-1] != '\n');
+-  return StrdupMalloc(s.str());
+-  /* Simpler version (requires POSIX 2008; temporarily removed for TeXLive 
2013):
+   char *line=NULL;
+   size_t n;
+-  n=getline(&line,&n,fin);
++  getline(&line,&n,fin);
+   return line;
+-  */
+ }
+   
+ void pre_readline()
-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to