Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nm66L-0004tk-B3 for mharc-grub-devel@gnu.org; Tue, 03 May 2022 23:54:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm66K-0004tb-0O for grub-devel@gnu.org; Tue, 03 May 2022 23:54:56 -0400 Received: from ionic.de ([145.239.234.145]:55241 helo=mail.ionic.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm66H-0001Mn-Ji for grub-devel@gnu.org; Tue, 03 May 2022 23:54:55 -0400 Authentication-Results: root24.eu; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=ionic.de (client-ip=178.162.222.165; helo=178.162.222.165.adsl.inet-telecom.org; envelope-from=ionic@ionic.de; receiver=) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ionic.de; s=default; t=1651636490; bh=1YKmZKCFeKYYKtktE61eewej/jlQSvWk6Kvzn/+33eQ=; h=To:References:From:Subject:Date:In-Reply-To:From; b=O4YTGbkL61c1FLBn+JUWLSshEiwKY5hE55J6NaynT6/vjv/PUpMwbFFWbnRlh3vpi 7pRqgLEB3hJVPwpbwSdTpY8dicEjr9758ySLkMGM/72DJmSKOeQNX+DOUmHJWlmYL7 +VErlYrp15ckD6yg1oUvC4d/EB8YN+9EgT1etNu0= Received: from [172.22.111.213] (178.162.222.165.adsl.inet-telecom.org [178.162.222.165]) by mail.ionic.de (Postfix) with ESMTPSA id C50DE14883B8 for ; Wed, 4 May 2022 05:54:50 +0200 (CEST) To: grub-devel@gnu.org References: <20220502141454.706429-1-mathieu.desnoyers@efficios.com> <49a4713d-8101-7bac-bdc8-79146d0072f2@molgen.mpg.de> <285878595.44472.1651588937097.JavaMail.zimbra@efficios.com> From: Mihai Moldovan Subject: Re: [PATCH] grub-mkconfig linux: Fix quadratic algorithm for sorting menu items Message-ID: <241ce191-b1b1-33ae-1733-7000283cebc6@ionic.de> Date: Wed, 4 May 2022 05:54:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L9zuwlUjSLyBtZgKWwYW6KrA7k1LumEyi" Received-SPF: pass client-ip=145.239.234.145; envelope-from=ionic@ionic.de; helo=mail.ionic.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 03:54:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --L9zuwlUjSLyBtZgKWwYW6KrA7k1LumEyi Content-Type: multipart/mixed; boundary="tZAxAoSBzZ85s9SyQD1y4ydjdzckSZpne"; protected-headers="v1" From: Mihai Moldovan To: grub-devel@gnu.org Message-ID: <241ce191-b1b1-33ae-1733-7000283cebc6@ionic.de> Subject: Re: [PATCH] grub-mkconfig linux: Fix quadratic algorithm for sorting menu items References: <20220502141454.706429-1-mathieu.desnoyers@efficios.com> <49a4713d-8101-7bac-bdc8-79146d0072f2@molgen.mpg.de> <285878595.44472.1651588937097.JavaMail.zimbra@efficios.com> In-Reply-To: --tZAxAoSBzZ85s9SyQD1y4ydjdzckSZpne Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable * On 5/4/22 2:54 AM, Oskari Pirhonen wrote: > The existing `version_sort()` function in grub-mkconfig_lib.in uses the= > same logic for detecting the existence of `sort -V` with a fallback to > `sort -n`. I don't think it adds any new hidden dependencies. Right, there are fallbacks in both places for sort versions not supportin= g the version sort extension, so that's probably fine then. Nevermind. Mihai --tZAxAoSBzZ85s9SyQD1y4ydjdzckSZpne-- --L9zuwlUjSLyBtZgKWwYW6KrA7k1LumEyi Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEbhHQj3UzgcdE8cg8H9Yu2W4lOocFAmJx+QoFAwAAAAAACgkQH9Yu2W4lOoeL +xAAlXPyatOOJIxpCqP7ZTNulYPsJt5paVwDpMhJZJWm7Txpri4dMsIUhRm/9h9uG1CRLllrnz7d StOCkcCOepU+TR+4VOpMIsZ7p1qr8iAnjuWPKOjv/KM9o9/d6yGRJm+E+5gB1V01dMKAYQiUorEd QGtljlCvDGVblaV9tfHPvm2Yms/G0hFYzY91tkoPAsVmsp5uNvs4s8GkoUNstVZ/p5IH+pdlbfct R1IF+9LA1CqH236FZ83A72IiJ299RwlLGtfRT5I4xcw2+fNJ+OheNUQqrr0Pzx/YyNTXEmJZs4m+ 9/ghcVOT+myqJSHt9uhF7pbp3LWdLkC8GQPhlvdd9zCCastkO6B9+zQhC/3t3m0xlei+OPgOm3ci +ZhxeUrXeLD//0MVBpCJpwpJ5aR6ZjIrhLA54l9gWhrBwHMn1AWsiJNqw7J4U2HTBBuJoFF40NJS MyIuNFvqjkVshoAfMXKhw/yFncwPwlcgJOc+L7gWsF2AJso0p1WBwM5G6dmqyhQAet4Ok6+k+Dpd 6w95GYS/aqOWLHdseJUE9QiJkIU8KU0d3nTD98QMwxrbl5vPENliyo4oNbAxisuQBcWAvi9zWYiD Tjx/Uk3H6j1hDrleJuMlUccrWrjULmX3Aoa95hFOYcGT6hQHP7oXYVXsYwFky+eXHyIxg/N8U9l7 WE4= =50bW -----END PGP SIGNATURE----- --L9zuwlUjSLyBtZgKWwYW6KrA7k1LumEyi--