From patchwork Sun Aug 28 13:18:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 42038 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7CBDA27BBEA; Sun, 28 Aug 2022 14:21:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EBA6027BBE9 for ; Sun, 28 Aug 2022 14:21:27 +0100 (BST) Received: from localhost ([::1]:48462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSIEB-0005kh-2t for patchwork@mira.cbaines.net; Sun, 28 Aug 2022 09:21:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSIDm-00055R-WF for guix-patches@gnu.org; Sun, 28 Aug 2022 09:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSIDm-0002rB-N4 for guix-patches@gnu.org; Sun, 28 Aug 2022 09:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSIDm-00071o-ID for guix-patches@gnu.org; Sun, 28 Aug 2022 09:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57460] [PATCH 20/20] TEMP REMOVE Add test-script for refesh-with-version Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Aug 2022 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57460 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57460@debbugs.gnu.org Received: via spool by 57460-submit@debbugs.gnu.org id=B57460.166169282026927 (code B ref 57460); Sun, 28 Aug 2022 13:21:02 +0000 Received: (at 57460) by debbugs.gnu.org; 28 Aug 2022 13:20:20 +0000 Received: from localhost ([127.0.0.1]:57833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSID6-00070E-3n for submit@debbugs.gnu.org; Sun, 28 Aug 2022 09:20:20 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:51091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSICT-0006vW-K2 for 57460@debbugs.gnu.org; Sun, 28 Aug 2022 09:19:42 -0400 Received: from hermia.goebel-consult.de ([46.87.137.46]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M1aQN-1oPFvX06jD-0039Hq for <57460@debbugs.gnu.org>; Sun, 28 Aug 2022 15:19:36 +0200 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9918965A57; Sun, 28 Aug 2022 15:18:56 +0200 (CEST) From: Hartmut Goebel Date: Sun, 28 Aug 2022 15:18:46 +0200 Message-Id: <62dad0b7bef5982202eb8c512e15271355e0db86.1661691695.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.4 In-Reply-To: References: MIME-Version: 1.0 X-Provags-ID: V03:K1:xV2OJ6mk7B/9PSC6/VyKutPwRhUbarPh+hcucVm+cjMPnnVkMX3 uI2FuPAISqtV4rlLAQiopUK07lRwElzPeK3fvv9jOyZdwlID/80Qfqvr7Whc4v15sbVWL10 clpQzyaNw3wTG1ALIprI7TFFTo0lQ3NIs1qjPGDHJ8qLxbws9qflUmgR2NHMsdxZJnV6Uta BaoOnxKQTLRBZc2keJfZQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ghyOvxdCUCk=:NqSfoa8sR9vNKQw9xMSf+e I49w7ks8eS5wIbJdgnm1fgYqvC4Wj9LMVWfjYpOQTnw5LBQgYgP88iS7UUDez/k4ZhCKoltw1 tLlxOOsLs5rmFC/2NYmTMWb9TbbQugmjHuK7HFctwwHnfqQZR+Z+JtLgC0d+mt+mB/6B8MV3d JzzmmnGMQpqKBMqbe3E8U9eZrJRrzWCZkEKKeyersImB8F++RoQNs9PrwPYe/TD12ruKPXt59 7CQ7IEz7vBwWe8GOtA6Y7is42ItcT6HqaYwTavRjN2cHvhXzF7Z+bxpjsJaBYVVL13M9p/s/E NAjKzeg7McRpEUZ3Jfj1BeIIhXrEHKOgqMjZBQZos2uArRXbSw32AL/ZFaDArwjDv/ZfDUnEc v14VA57I5F8AiLkIn3+Y8kDf6PH3DqjJzSA9UDOANUkUYqHWxdfSew+CUfCi/r2DqqZrvdsHC seyWAWChLh7pqQFiBVexCV6IWq/17GsGxTZERdzsg3GVTP6HATBAZz+0fgKGIrXzm7EL10dSl Ie0FT94rwmeA5hji3V4VefL9PI177uVY436MY71vafaO1H0tmxFajV2SzCYN1CKlqOq8ihpGw Ig8t5uHqFAaL53ER4arMcMN2WEd9hiYVwb3hIUP1Hikx2BXGs4fRkeslezt9DHwHH5NNfkOpL 5Hh+4ixoTbitQfb8qDDupY+h6AEcLvZ2D+MVSrxb5C+e1sUDvj+UeQpmYELJIEyCUe0vy8MmB ENZQLCSZbLKxBPT2tVPqw0QpRxh2r8w8XEmBjXAMmEVHatxR5YcGIGXdVOs= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This commit will be dropped and not be committed to the main branch! --- test-import-with-version.sh | 98 +++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 test-import-with-version.sh diff --git a/test-import-with-version.sh b/test-import-with-version.sh new file mode 100644 index 0000000000..3aa09dda68 --- /dev/null +++ b/test-import-with-version.sh @@ -0,0 +1,98 @@ +echo -n "Number of importers: " +ls guix/import/*.scm | wc -l + +echo -n "Number of updaters : " +grep upstream-updater guix/import/*.scm | wc -l + +echo + +PKGS=() +# chicken see below +PKGS+=("crate rust-sequoia-openpgp@1.7.0") +PKGS+=("generic-git remmina@1.4.25") # (import/git) +PKGS+=("generic-html xclock@1.1.0") # (gnu-maintenance) +PKGS+=("github libwacom@1.12") # +PKGS+=("gnome gtranslator@41.0") +PKGS+=("gnu help2man@1.49.1") # (gnu-maintenance) +PKGS+=("gnu-ftp libgpg-error@1.43") # (gnu-maintenance) +# hexpm see below +PKGS+=("kde plasma-framework@5.96.0") +PKGS+=("kernel.org iw@5.3") # (gnu-maintenance) = html +PKGS+=("launchpad soundconverter@4.0.0") # will fail due to changed archive filename +PKGS+=("pypi trytond-party@6.4.0") +PKGS+=("savannah libpipeline@1.5.4") # (gnu-maintenance) = html +PKGS+=("xorg libxi@1.7.99.2") # (gnu-maintenance) = ftp + + +for pkg in "${PKGS[@]}" ; do + echo "------------------------------------------" $pkg + pkg=${pkg//* } + nv=${pkg%@*} + ./pre-inst-env guix refresh $nv + ./pre-inst-env guix refresh -u $pkg + make make-go 2> /dev/null # avoid "source file newer" messages +done + +echo +echo +echo +echo "==============================================" +echo 'For these packages there is no newer version between the current one in guix' +echo 'and the later one available upstream. Thus we need to "downgrade" the' +echo 'version first. And to show that I specific version will be fetched, we' +echo '"refresh" to an older version.' +echo "---------------------------------------------" +echo + +PKGS=() +PKGS+=("egg chicken-srfi-13@0.3") +PKGS+=("hexpm erlang-relx@4.5.0") +# HACK +sed -i -e s/"0\.3\.2"/"0.0.0"/ gnu/packages/chicken.scm +sed -i -e s/"4\.6\.0"/"0.0.0"/ gnu/packages/erlang.scm +make make-go 2> /dev/null # avoid "source file newer" messages + +for pkg in "${PKGS[@]}" ; do + echo "---------------------------------------------" $pkg + pkg=${pkg//* } + nv=${pkg%@*} + ./pre-inst-env guix refresh -u $pkg + ./pre-inst-env guix refresh $nv + make make-go 2> /dev/null # avoid "source file newer" messages +done + +function try_fail () { + pkg=$1 ; shift + repo=$1 ; shift + echo "---------------------------------------------" $repo $pkg + echo -- " shall fail since" $repo $1 + ./pre-inst-env guix refresh -u $pkg + echo +} + +echo +echo +echo "==============================================" +echo 'These updates issue an error when trying to update to a specific version:' +try_fail r-tximeta@1.5.4 'bioconductor (cran.scm)' 'repo supports latest version only' +try_fail r-sungeo@0.2.290 'cran' 'repo supports latest version only' +try_fail perl-socket-msghdr@0.10 'cpan' 'importer does not support version' +try_fail emacs-vertico-posframe@0.5.9 'elpa' 'importer does not support version' +try_fail ruby-commander@4.5.0 'gem' 'importer does not support version' +try_fail ghc-singleton-bool@0.2.3 'hackage' 'importer does not support version' +try_fail minetest-advtrains@2.5.0 'minetest' 'importer does not support version' +try_fail ocaml-cudf@0.11 'opam' 'importer does not support version' +try_fail xplanet@1.4.0 'sourceforge (gnu-maintenance)' 'to complicated to implement' + +echo +echo +echo "==============================================" +echo 'These importers do not have an updater:' +echo -- ' - json -- n/a' +echo -- ' - elm -- has no updater and "elm-package-origin" sources are hosted at github' +# try_fail elm-http@2.0.0 elm 'has no updater' +try_fail texlive-sourcecodepro@60101 'texlive' 'has no updater' +echo +echo "==============================================" +echo 'For these importers the updater is not yet implemented:' +echo -- ' - stackage --- unclear how to handle LTS version'