[tex-live] patch so texlive works under musl libc

Marc Collin marc.collin7 at gmail.com
Wed Feb 25 01:13:01 CET 2015


Currently texlive doesn't compile on operating systems that use the
musl libc. (Alpine Linux, for example). It needs this little patch
below. (I don't take credit from this!)

putilimp.h

@@ -116,7 +116,7 @@
 #elif U_PLATFORM == U_PF_ANDROID
 #   define U_TIMEZONE timezone
 #elif U_PLATFORM_IS_LINUX_BASED
-#   if !defined(__UCLIBC__)
+#   if defined(__GLIBC__)
     /* __timezone is only available in glibc */
 #       define U_TIMEZONE __timezone
 #   endif


sysdep1.h

@@ -10,7 +10,11 @@

 #ifdef __linux__
 #define USE_LARGEFILE
+#ifdef __GLIBC__
 #define OFF_T __off64_t
+#else
+#define OFF_T off64_t
+#endif
 #endif

 #ifdef _AIX43


More information about the tex-live mailing list