[tex-live] patch so texlive works under musl libc
Peter Breitenlohner
peb at mppmu.mpg.de
Thu Feb 26 09:10:17 CET 2015
On Tue, 24 Feb 2015, Marc Collin wrote:
> 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!)
Hi Marc,
a somewhat more specific report would have been extremely helpful:
(1) does this refer to the current development version, i.e.,
svn://tug.org/texlive/trunk or to the 2014 release, i.e.,
svn://tug.org/texlive/branches/branch2014?
(2) which of the 15000+ files in 1100+ directories of the TeX Live source
tree with 321MB are 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
This refers to icu 53.1 in branch2014 and is already fixed in 54.1 used in trunk
(and to be replaced by 55.1 for the upcoming 2015 release).
> 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
This refers to source/utils/pmx/pmx-2.7.0/libf2c/sysdep1.h from branch2014;
the current development sources use a bugfix patch-07-MuslLibc adapted from
the current libf2c and contained in the more recent pmx sources obtained
from http://mirror.ctan.org/support/pmx/pmx-2.7.0.tar.gz, dated 2014-11-22.
Regards
Peter
More information about the tex-live
mailing list