From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95897 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: standalone / setuptex on ARM Date: Tue, 23 Aug 2016 07:46:57 +0200 Message-ID: <20160823054653.GA4452@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3024957115423816704==" X-Trace: blaine.gmane.org 1471931247 23894 195.159.176.226 (23 Aug 2016 05:47:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2016 05:47:27 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 23 07:47:18 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bc4YQ-0005YZ-8N for gctc-ntg-context-518@m.gmane.org; Tue, 23 Aug 2016 07:47:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D30F14FBF; Tue, 23 Aug 2016 07:47:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BtgsM79DqBH9; Tue, 23 Aug 2016 07:47:01 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0CB1F1504C; Tue, 23 Aug 2016 07:47:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 14DA614FB4 for ; Tue, 23 Aug 2016 07:47:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ub1jqqUdXdXh for ; Tue, 23 Aug 2016 07:46:59 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 767E914F4D for ; Tue, 23 Aug 2016 07:46:49 +0200 (CEST) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal01.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id u7N5km7U011275; Tue, 23 Aug 2016 07:46:48 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (Postfix) with ESMTPS id 6117121DDBC9; Tue, 23 Aug 2016 07:46:48 +0200 (CEST) Original-Received: from localhost (p5DED4543.dip0.t-ipconnect.de [93.237.69.67]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.15.2/8.13.1) with ESMTPSA id u7N5klv2030487 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 23 Aug 2016 07:46:48 +0200 Mail-Followup-To: ConTeXt ML X-RFC-6648: Please ignore, this header is deprecated. X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95897 Archived-At: --===============3024957115423816704== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d01dLTUuW90fS44H" Content-Disposition: inline --d01dLTUuW90fS44H Content-Type: multipart/mixed; boundary="eRtJSFbw+EEWtPj3" Content-Disposition: inline --eRtJSFbw+EEWtPj3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, when setting up Context for my phone, I noticed the ARM binaries that come with the Standalone don=E2=80=99t work because the system is armv7l soft-float: $ gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion=3D'Debian 4.6.3-= 14' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.6/README.Bugs --enable-lang= uages=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.6 = --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=3D= /usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-inc= lude-dir=3D/usr/include/c++/4.6 --libdir=3D/usr/lib --enable-nls --with-sys= root=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx= -time=3Dyes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --d= isable-sjlj-exceptions --with-arch=3Darmv4t --with-float=3Dsoft --enable-ch= ecking=3Drelease --build=3Darm-linux-gnueabi --host=3Darm-linux-gnueabi --t= arget=3Darm-linux-gnueabi Thread model: posix gcc version 4.6.3 (Debian 4.6.3-14) Since I=E2=80=99m supplying my own Luatex binary that=E2=80=99s no problem = per se, I just had to modify setuptex a bit. Could we add a couple lines like the attached patch to the script? I=E2=80=99m under the impression that =E2=80=9Carmel=E2=80=9D is a = Debian specific term so feel free to change it. Though it might be better in general to use the =E2=80=9Carm-linux-gnueabi=E2=80=9D and =E2=80=9Carm-linux-gnueabihf=E2=80=9D triplets to separate the platforms. Best, Philipp --eRtJSFbw+EEWtPj3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="2016-08-23_setuptex-armel.patch" --- tex/setuptex.orig 2016-08-22 23:51:21.000000000 +0200 +++ tex/setuptex 2016-08-23 07:44:31.000000000 +0200 @@ -33,7 +33,26 @@ # we need more hacks to fix the situation, this is just a temporary solution mips|mips64|mipsel|mips64el) platform="linux-mipsel" ;; # TODO: probably both wrong and incomplete - armv7l) platform="linux-armhf" ;; + armv7l) + platform="linux-armhf" + # machine id output by uname(1) is + # insufficent to determine whether this + # is a soft or hard float system so we + # check ourselves. + # a) binutils, this should work almost + # everywhere + if $(which readelf >/dev/null 2>&1); then + readelf -A /proc/self/exe | grep -q '^ \+Tag_ABI_VFP_args' + if [ ! $? ]; then + platform="linux-armel" + fi + # b) debian-specific fallback + elif $(which dpkg >/dev/null 2>&1); then + if [ "$(dpkg --print-architecture)" = armel ]; then + platform="linux-armel" + fi + fi # else go with hard fp + ;; *) platform="unknown" ;; esac ;; # Mac OS X --eRtJSFbw+EEWtPj3-- --d01dLTUuW90fS44H Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXu+NRAAoJEGBp1iCg51z2jHAP/jWLDcl93yr9MgpDYUDGHRlN ba5iB/uYyOb7LBkEsGaKwbSk+sbVZhRySglMyj02s9C8HtnYLPMgE09aRHR4DOhC z6wrg/UcxygsIVt/BYlQQKH4ZRczmrHVX0e10snTG9KtGszypHmR8bNaLHMWUTQA VlFqwtmTgfW7CcSAaldaQMYXmQloH0AvFpsEmwoL16zQbO/O2X3rE0m3d5s5gax+ bXX0XRo/jAr8ycFc5PDCfUkJhLBaQrr2PMRROAfiThGwTAVdJuHi+jif2u6i3sSV SJDE/CKu7GxVxlLeaRz/Uu5I/oVz0XGXl3nOCyuT4iU02H+uKV0WLde4ZKK9BQQj SXsuh08RnoU7xUYFfl7e5sEcuiYU9bqNVePhvQMPLpYFPWSdB/AyEIrMEXkfa+kj RA+gCXts7PfVRcXzQba93+EbDao/2xfJSVDv+4aPHuLx6fXPfD5ak9KqZ8HsIPHh 5dCzamRsV6FznLfwpS+77oOoCgYvifQCoOVtJD4Wq5zVy4hLMyPJWNu/hFakThMP 9PYKxkeelrWx7ydzwg/IHeDdJjnAhElEK1RBdtdZYHzE2VUJHAVOAGhcuRkPr6pn ey4gOPwDyxrGHA+WbBg0gzt50pfHPlC6ub8AQewYZ094seBkdEi9ngdPczxaovLl V9eBjcjBloPdDLShVF7w =9W4J -----END PGP SIGNATURE----- --d01dLTUuW90fS44H-- --===============3024957115423816704== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============3024957115423816704==--