texlive[46834] Master/tlpkg: musl support

commits+preining at tug.org commits+preining at tug.org
Mon Mar 5 16:34:41 CET 2018


Revision: 46834
          http://tug.org/svn/texlive?view=revision&revision=46834
Author:   preining
Date:     2018-03-05 16:34:41 +0100 (Mon, 05 Mar 2018)
Log Message:
-----------
musl support

Modified Paths:
--------------
    trunk/Master/tlpkg/TeXLive/TLUtils.pm
    trunk/Master/tlpkg/bin/tl-update-bindir

Modified: trunk/Master/tlpkg/TeXLive/TLUtils.pm
===================================================================
--- trunk/Master/tlpkg/TeXLive/TLUtils.pm	2018-03-05 15:08:47 UTC (rev 46833)
+++ trunk/Master/tlpkg/TeXLive/TLUtils.pm	2018-03-05 15:34:41 UTC (rev 46834)
@@ -298,6 +298,14 @@
     #   solaris2 is matched.
     $OS = $os if $guessed_platform =~ /\b$os/;
   }
+
+  if ($OS eq "linux") {
+    # deal with the special case of musl based distributions
+    # config.guess returns
+    #   x86_64-pc-linux-musl
+    #   i386-pc-linux-musl
+    $OS = "linuxmusl" if $guessed_platform =~ /\blinux-musl/;
+  }
   
   if ($OS eq "darwin") {
     # We have a variety of Mac binary sets.
@@ -375,6 +383,7 @@
     'i386-freebsd'     => 'FreeBSD on Intel x86',
     'i386-kfreebsd'    => 'GNU/kFreeBSD on Intel x86',
     'i386-linux'       => 'GNU/Linux on Intel x86',
+    'i386-linuxmusl'   => 'GNU/Linux on Intel x86 with musl',
     'i386-netbsd'      => 'NetBSD on Intel x86',
     'i386-openbsd'     => 'OpenBSD on Intel x86',
     'i386-solaris'     => 'Solaris on Intel x86',
@@ -391,6 +400,7 @@
     'x86_64-darwin'    => 'MacOSX current on x86_64',
     'x86_64-darwinlegacy' => 'MacOSX legacy (10.6-10.9) on x86_64',
     'x86_64-linux'     => 'GNU/Linux on x86_64',
+    'x86_64-linuxmusl' => 'GNU/Linux on x86_64 with musl',
     'x86_64-solaris'   => 'Solaris on x86_64',
   );
 

Modified: trunk/Master/tlpkg/bin/tl-update-bindir
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-bindir	2018-03-05 15:08:47 UTC (rev 46833)
+++ trunk/Master/tlpkg/bin/tl-update-bindir	2018-03-05 15:34:41 UTC (rev 46834)
@@ -144,6 +144,10 @@
     #default_bin_loc=/tmp/lin32.tgz;;
     default_bin_loc=$download_loc
     $grab http://dl.contextgarden.net/build/texlive/$tlplat.tar.xz;;
+   i386-linuxmusl)
+    default_bin_loc=$download_loc
+    remurl=`curl -s https://api.github.com/repos/TeX-Live/texlive-source/releases/latest | grep browser_download_url | grep texlive-bin-i386-musl.tar.gz | cut -d : -f 2,3 | tr -d \"`
+    $grab $remurl;;
    i386-netbsd)
     download_loc=$tmpdir/tl.$tlplat.tar.xz
     default_bin_loc=$download_loc
@@ -187,6 +191,10 @@
     default_bin_loc=$download_loc
     $grab http://www.preining.info/x86_64-linux-svn46780.tar.gz
     ;;
+   x86_64-linuxmusl)
+    default_bin_loc=$download_loc
+    remurl=`curl -s https://api.github.com/repos/TeX-Live/texlive-source/releases/latest | grep browser_download_url | grep texlive-bin-x86_64-musl.tar.gz | cut -d : -f 2,3 | tr -d \"`
+    $grab $remurl;;
    x86_64-solaris)
     default_bin_loc=$download_loc
     $grab http://dl.contextgarden.net/build/texlive/$tlplat.tar.xz;;



More information about the tex-live-commits mailing list