From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8983F1F934 for ; Fri, 30 Apr 2021 09:24:38 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/8] lei sucks: preserve utsname.machine, add "x86" where appropriate Date: Fri, 30 Apr 2021 09:24:31 +0000 Message-Id: <20210430092438.20926-2-e@80x24.org> In-Reply-To: <20210430092438.20926-1-e@80x24.org> References: <20210430092438.20926-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's helpful for us to distinguish x86 kernels from x86_64 kernels when using an x86 userspace. OSes are dropping i386 support and only support i486 and newer, so "x86" is a more appropriate description for that platform than "i386". --- lib/PublicInbox/LeiSucks.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiSucks.pm b/lib/PublicInbox/LeiSucks.pm index d364a856..2ce64d62 100644 --- a/lib/PublicInbox/LeiSucks.pm +++ b/lib/PublicInbox/LeiSucks.pm @@ -18,7 +18,8 @@ sub lei_sucks { $lei->start_pager if -t $lei->{1}; my ($os, undef, $rel, undef, $mac)= POSIX::uname(); if ($mac eq 'x86_64' && $Config{ptrsize} == 4) { - $mac = $Config{cppsymbols} =~ /\b__ILP32__=1\b/ ? 'x32' : 'i386' + $mac .= $Config{cppsymbols} =~ /\b__ILP32__=1\b/ ? + ',u=x32' : ',u=x86'; } eval { require PublicInbox }; my $pi_ver = eval('$PublicInbox::VERSION') // '(???)';