[tlbuild] asy2.43 attempt, please

Nikola Lečić nikola.lecic at anthesphoria.net
Sat Apr 7 10:44:00 CEST 2018


On Fri, 6 Apr 2018 17:26:34 +0200
Karl Berry <karl at freefriends.org> wrote:

> Norbert committed the main asy-2.43 sources, and I've just updated the
> various runtime files. Please give it a whirl.

I committed the first version of asy binaries for FreeBSD.

* We didn't ship asy binaries for FreeBSD for 2-3 years. Maybe some
  infrastructure changes are needed.

* If someone has a strictly up-to-date 11.1 (Mojca?), I would be
  grateful for the output of `ldd asy`. I don't have one at the moment,
  and I don't know how much time we will have.

  (I tested the binaries on 10.* and 11.0, they work fine.)

* The committed binaries are not 100% portable, I'll try to do better,
  it the time allows. For now, I'd like to know if asy loses some
  important functionality if it's not linked to libreadline, libglut
  and libOSMesa?

* I needed this to compile asy-2.43 on FreeBSD-10.0 with clang-3.3:

--- ./glrender.cc	2018-04-06 17:23:25.618204000 +0300
+++ /home/Jails/10.0release32/root/asymptote/glrender.cc	2018-04-07 10:58:25.060872000 +0300
@@ -4,8 +4,6 @@
  * Render 3D Bezier paths and surfaces.
  *****/
 
-#define _POSIX_C_SOURCE 200809L
-
 #include <stdlib.h>
 #include <fstream>
 #include <cstring>

diff -ru ./main.cc /home/Jails/10.0release32/root/asymptote/main.cc
--- ./main.cc	2018-04-06 17:23:25.624690000 +0300
+++ /home/Jails/10.0release32/root/asymptote/main.cc	2018-04-07 11:07:07.337956000 +0300
@@ -19,8 +19,6 @@
 *
 *************/
 
-#define _POSIX_C_SOURCE 200809L
-
 #include <iostream>
 #include <cstdlib>
 #include <cerrno>

diff -ru ./util.cc /home/Jails/10.0release32/root/asymptote/util.cc
--- ./util.cc	2018-04-06 17:23:25.645131000 +0300
+++ /home/Jails/10.0release32/root/asymptote/util.cc	2018-04-07 10:57:26.807477000 +0300
@@ -5,8 +5,6 @@
  * A place for useful utility functions.
  *****/
 
-#define _POSIX_C_SOURCE 200809L
-
 #include <cassert>
 #include <iostream>
 #include <cstdio>

diff -ru ./xstream.h /home/Jails/10.0release32/root/asymptote/xstream.h
--- ./xstream.h	2018-04-06 17:23:25.646407000 +0300
+++ /home/Jails/10.0release32/root/asymptote/xstream.h	2018-04-07 11:05:23.369477000 +0300
@@ -31,7 +31,6 @@
 #define quad_t long long
 #define u_quad_t unsigned long long
   
-#ifdef __CYGWIN__  
 #include <sys/select.h>
 #define u_char unsigned char
 #define u_int unsigned int
@@ -39,7 +38,6 @@
 #define u_long unsigned long
 extern "C" int fseeko(FILE *, off_t, int);
 extern "C" off_t ftello(FILE *);
-#endif  
 
 #ifdef _POSIX_SOURCE
 #undef _POSIX_SOURCE

-- 
Nikola Lečić = Никола Лечић  :  https://www.hse.ru/staff/ndlecic
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the tlbuild mailing list