[tex-live] TL platforms vs. dpkg-architecture

Norbert Preining preining at logic.at
Fri May 27 13:47:08 CEST 2016

Hi Andreas,

> experience some discrepancies between TL's 'platform list' and the respective 
> analysis of the 'dpkg-architecture' programme.

Indeed, there is no relation, or not that I know off. Our (TL) platform
is more or less the output config.guess that gets massaged.

For details see
in particular
that does the massaging from config.gues to TL:

Example code there:
  # armv6l-unknown-linux-gnueabihf -> armhf-linux (RPi)
  # armv7l-unknown-linux-gnueabi   -> armel-linux (Android)
  if ($CPU =~ /^arm/) {
    $CPU = $guessed_platform =~ /hf$/ ? "armhf" : "armel";

> My problem is to find common variables that work on both machines. (See 
> https://github.com/ascherer/debbuild/ for details.) I started with using 

What do you need that for? What is the aim for it? Debian anyway
use self-compiled, so the names as used by TL are not very important.

Do you want to use one installation with various archs, and
geenrate the correct link automatically by querying dpkg?

You could probably use the perl code for that:
	perl -I /path/to/tl/2016/tlpkg/ -e '$::installerdir = "/path/to/tl/2016"; use TeXLive::TLUtils; print TeXLive::TLUtils::platform_name(TeXLive::TLUtils::platform()), "\n"; '

which gives in my case

> Why are some platforms listed with 'amd64' (e.g., bsd), while others are
> listed with 'x86_64' (e.g., linux)?

I guess because config.guess is doing that.

Hope that helps


PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13    fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13

More information about the tex-live mailing list