From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yLeXM5xkM1+gcwAA0tVLHw (envelope-from ) for ; Wed, 12 Aug 2020 03:40:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qD3sLZxkM1+YKQAAB5/wlQ (envelope-from ) for ; Wed, 12 Aug 2020 03:40:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6ABCA94051B for ; Wed, 12 Aug 2020 03:40:12 +0000 (UTC) Received: from localhost ([::1]:36410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5hcZ-0006WE-BJ for larch@yhetil.org; Tue, 11 Aug 2020 23:40:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5hcQ-0006Vo-Ix for guix-patches@gnu.org; Tue, 11 Aug 2020 23:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5hcQ-0007mg-9i for guix-patches@gnu.org; Tue, 11 Aug 2020 23:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5hcQ-0001ga-4e for guix-patches@gnu.org; Tue, 11 Aug 2020 23:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42816] [PATCH 1/2] guix-install.sh: Increase compatibility Resent-From: Morgan.J.Smith@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Aug 2020 03:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42816 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: me@tobias.gr Cc: Morgan Smith , 42816@debbugs.gnu.org Received: via spool by 42816-submit@debbugs.gnu.org id=B42816.15972035796430 (code B ref 42816); Wed, 12 Aug 2020 03:40:02 +0000 Received: (at 42816) by debbugs.gnu.org; 12 Aug 2020 03:39:39 +0000 Received: from localhost ([127.0.0.1]:42476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5hc3-0001fY-2c for submit@debbugs.gnu.org; Tue, 11 Aug 2020 23:39:39 -0400 Received: from mail-co1nam11olkn2104.outbound.protection.outlook.com ([40.92.18.104]:40545 helo=NAM11-CO1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5hc0-0001fE-0F for 42816@debbugs.gnu.org; Tue, 11 Aug 2020 23:39:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGXFPVDYX9oxDyAgoiD5OGtlp4eNOoRQeD41CjZkZYkhLl8jof7Azy1jpyeeJyL2geapx+QKEMe6oI58hcFkpFWXBAA6lxwdRrguclV2Bdrvn221aOj8Famp0x752IaS9jU1uRPNNNXACTe85GZWjcYoYNwDDSeQTPNwiOvQyNBgYEAWI66xdppowI1Cd7W1GlsJ6GKWuqlWQbIf95u36INLEE6gLJyw8KL2L/r6ibOxJCuW6vogpgrcbQU6RyYTWmCB0/zbEhImJpjFXnMOEy+FO8KuqmijC/lTQZhGBjHyC2n7vBxUB6Tvq6UtRH2ZIDYSFLdehhyLeXHBxJ7p6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vZo6d52hM9OuZZaMn3w5JnCrZjlpnA/bv9rVOS5eYQI=; b=jvFTwa4eIWzb5SvzUKpr5UNZ9K24ie7UTSsbaqFfsMyzVPp6T4bpsYoSUrmfJ7x3gLW1Gqzc89R+42k+lLIP4bRdiW5hPbFoW4KDazCxCnm9uYIFrvX8U48GP3O9b3jjef2duP4r2jaEzOKSDhlHLOJER2SZafF7fFhwAIo02XDv5EvH7p5e638elraaMg7IjUztAMeb//M/PWFN3rkIxxyLnmnuePPsNzukU5GFy1h0teDjTmyf67fPS1cH9lWHt11XQa0t+pPUjLENO8kRdi+VwqnMBvq92LbnvBZzG49FsOrREVXqbF8gVC/1VkXN+Tp0AuyUEADougcw5Udh4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vZo6d52hM9OuZZaMn3w5JnCrZjlpnA/bv9rVOS5eYQI=; b=TyB3RLlXUlJlVwI9Fmuj3b7iH6dckOAiJEHAuEn+HkTzlQA8d3J3vwKRCblmCV8kQAJXWDjW/k6hr7Qyp/gftJqmQjCmr+XVpOM0+Y8wuIKkyX9f+Nt0tXCBYPNnnKrfjAtJ0CZJiU7NbUbyFeRKi5euO/lqarEXMkLRjICZ89S+qvAvhUSQ9op4kOfgQyYLBh47pFJpoaHyODQJlEIAvZLRqwBkr7m/VxEMFDz+jA9RFfpBRfJmIXDh22lLqJbuCDL7Pp5KHgQDTIX7sTtpwteBdk3OQLLVAoXv6HpdAbLjSWRpiFoZ6MxJIYAIQs0RUpMzfE2g0W8iLdR29RJzRg== Received: from BN8NAM11FT060.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::48) by BN8NAM11HT202.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::306) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.16; Wed, 12 Aug 2020 03:39:21 +0000 Received: from DM5PR1001MB2105.namprd10.prod.outlook.com (2a01:111:e400:fc4b::44) by BN8NAM11FT060.mail.protection.outlook.com (2a01:111:e400:fc4b::467) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.16 via Frontend Transport; Wed, 12 Aug 2020 03:39:21 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:61E14F470DA1F4CFE32B0419A0E39BF93C0DFC097A5CEB316F7C19930BFA63C5; UpperCasedChecksum:5F2AD04321E02D45597C7B39E29E4C70F7E60EB55906951AD2112B9E5DDED46A; SizeAsReceived:7535; Count:49 Received: from DM5PR1001MB2105.namprd10.prod.outlook.com ([fe80::cc1a:65a6:d74d:52f4]) by DM5PR1001MB2105.namprd10.prod.outlook.com ([fe80::cc1a:65a6:d74d:52f4%6]) with mapi id 15.20.3283.015; Wed, 12 Aug 2020 03:39:21 +0000 From: Morgan.J.Smith@outlook.com Date: Tue, 11 Aug 2020 23:38:41 -0400 Message-ID: X-Mailer: git-send-email 2.28.0 In-Reply-To: <87r1sc98m8.fsf@nckx> References: <87r1sc98m8.fsf@nckx> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YTOPR0101CA0009.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::22) To DM5PR1001MB2105.namprd10.prod.outlook.com (2603:10b6:4:2b::24) X-Microsoft-Original-Message-ID: <20200812033842.99352-1-Morgan.J.Smith@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from workarch.localdomain (184.164.26.34) by YTOPR0101CA0009.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15 via Frontend Transport; Wed, 12 Aug 2020 03:39:20 +0000 X-Mailer: git-send-email 2.28.0 X-Microsoft-Original-Message-ID: <20200812033842.99352-1-Morgan.J.Smith@outlook.com> X-TMN: [wFjK68Zclxlx8qKvKRxqMRRWq42ZJJr4] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4cceeb06-bc9e-4df3-4c49-08d83e714c4a X-MS-Exchange-SLBlob-MailProps: 79Jo46q8hhC0JQTTD4CjH08I0IOG8GQi+/h4BvnJH7bQ2OZFbaGAq5EFWWScoQYy+sBfg1nLHo7QSPdul0+pPLvS6dsuc7nHBv7y4ZaDlwfkouX6LGaWr+/3K36G0NjLdPgjqbzEJtvRMRQfiVrSQOmDCgaxqJRhLiXFubvBpNx9sjw6H/p/fkslSz/JQNYt71dWNCDD2z8ezwOu5XWNVedBbZYsaek87eoza1MbJd6G7lRd3i44o7wQstonMgCJfK1M2QvFKEp3ENt3hHWWjOwkZbvHpvHs4DrR0cvJrSXSwktrxLAWjqDEXjPM9C0eJrzCeScnGUYsTNmDlKU/yFnBEaVe01yvV0UjKQtzimiC62x9lavMfgLiFHYOW25QcyABHJFb4lA7MegubmrrQIlt4bqzNc/yNVewepxHtdm5CrZbbT2qEthsbsC+cq63yUO5pVGcve/MzwJC3x7sO7n3IyuCOG6uuuZXsbS1pYl0dTkiHpu/5rB9y61Rc1SG4FPTnAj+YNKKWaaV//ddzozToOUsXM2zlums0eg8Sb04B4ibWLahKI0gTMk1ZyelnYzfVrJgof/5y18nqI+NLFAIhqp8TCe3F4b+v227rmccZ5LmZKVWZ8VjVboc7rLdlshZLeubNGcOOX9EHb0Xt3F79HYPj4mWtNsPbKivyqiO2UXBoeRudaxT4a+bt6PZ X-MS-TrafficTypeDiagnostic: BN8NAM11HT202: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fpl/Qw9m6JKZfVh/X+c4gZ6y+ctY58gkzxV/v6XQT+xTiygqRISmUCjxgNnI5TAhyid0PJ7De3KScrzAwYbqyvG0lpqCqoZPqYQVPkSG4hyQexrf4he8gk98qJ4NMc+n61Em2jUhxV/qDKuMzurPqfENm+Yk+bbQzQgEFsrUEyhOds+ky2ArhqkQ6hd3V9JSWTrUTRZk8/2g1EowI1UBrA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR1001MB2105.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: AfPZCr5RdPWhqMr7xqzke70NzAVJcdUMeuphq+FrGSqaiGG+mIG0SXf4y4q2Jc7viVIhdeOYj0bewq4kPlmFzvIISyt90RynwUR9uwGvfjhKQ42I76TbrJUnTVS2iRsn7jrvfw9BowLLFUl0VG8pmg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cceeb06-bc9e-4df3-4c49-08d83e714c4a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2020 03:39:20.9556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT202 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=outlook.com header.s=selector1 header.b=TyB3RLlX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.59 X-TUID: N40rIgGkVm4X From: Morgan Smith These fixes allow the script to be run using the binaries found on Alpine Linux 3.12.0-x86_64. * etc/guix-install.sh (guix_get_bin_list): Change grep to use extended regex instead of perl regex. Grep using extended regex is POSIX while grep using perl regex is not. * etc/guix-install.sh (sys_create_store): Remove --warning flag as it is unavailable on Alpine Linux --- So for this change I had to learn perl regex. Then, once I understood exactly what it did I recreated it from scratch not realizing that it was almost the same as what was there before. I'm pretty sure there are no differences between [[:digit:]] and [0-9], I just tend to use [[:digit:]] because it's flashy etc/guix-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 72dc3839e8..06edbaaffd 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -212,7 +212,7 @@ guix_get_bin_list() | sort -Vu)") latest_ver="$(echo "$bin_ver_ls" \ - | grep -oP "([0-9]{1,2}\.){2}[0-9]{1,2}" \ + | grep -oE "([0-9]{1,2}\.){2}[0-9]{1,2}" \ | tail -n1)" default_ver="guix-binary-${latest_ver}.${ARCH_OS}" @@ -268,8 +268,7 @@ sys_create_store() _debug "--- [ $FUNCNAME ] ---" cd "$tmp_path" - tar --warning=no-timestamp \ - --extract \ + tar --extract \ --file "$pkg" && _msg "${PAS}unpacked archive" -- 2.28.0