From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 05 15:06:23 2019 Received: (at 38408) by debbugs.gnu.org; 5 Dec 2019 20:06:23 +0000 Received: from localhost ([127.0.0.1]:45248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icxOI-0002lB-Nj for submit@debbugs.gnu.org; Thu, 05 Dec 2019 15:06:22 -0500 Received: from mx1.riseup.net ([198.252.153.129]:45842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icxOF-0002kz-41 for 38408@debbugs.gnu.org; Thu, 05 Dec 2019 15:06:19 -0500 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47TRY96q4KzFcn9 for <38408@debbugs.gnu.org>; Thu, 5 Dec 2019 12:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575576378; bh=0DDz489qFqrxg3fuhPxV6PBmAl3mnLNJZNfP1HUeGl4=; h=From:To:Cc:Subject:Date:From; b=N192jYrjW1hElaZEHXgIU3+5LoC/yx7as3wbCV+eirUSpKHfmCcLZxTyeIPTwLui/ 1vOKJ6jtEnb9A2pSkQc3QA70FRgJ/eUGhKFpmmhUR4XbWLj5DMrPRIEvQeMEWhE9Ik DCu88sx8C8tNgbqkd6j8jyPY7p0f8V9bDuF3bfdM= X-Riseup-User-ID: 433B8AFB6F03371F5C827A0825F9C93691D6120A3DAF9BDC0B429FF017E89216 Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 47TRY92FZLz8tYt; Thu, 5 Dec 2019 12:05:49 -0800 (PST) From: Martin Becze To: 38408@debbugs.gnu.org Subject: [PATCH v2 0/5] Semantic version aware recusive importer for crates Date: Thu, 5 Dec 2019 15:05:30 -0500 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38408 Cc: Martin Becze X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This version just builds a bit on the prevouse version (https://issues.guix.gnu.org/issue/38408#0) I found while testing some crates have build-dependencies and nor dependencies that are the same. While in guix build and normal dependiences are treated the same way (ie source only). So the recusive importer was importing the duplicates so here we dedup the deps. Please let me know if there are any problems! -Martin Martin Becze (5): gnu: added new function, find-packages-by-name*/direct gnu: added new procedure, recusive-import-semver Rewrote some of guix/import/crate.scm to use recursive-import-semver and updated script and test. added "#:skip-build? #t" to the output of (make-crate-sexp). Most the the packages imported will be libaries and won't need to build. The top level package will build them though. guix: crate: Depublicated build and normal dependencies gnu/packages.scm | 41 ++++++++ guix/import/crate.scm | 188 +++++++++++++++++++--------------- guix/import/utils.scm | 181 ++++++++++++++++++++++++++++++-- guix/scripts/import/crate.scm | 9 +- tests/crate.scm | 5 +- tests/import-utils.scm | 162 +++++++++++++++++++++++++++++ tests/packages.scm | 13 +++ 7 files changed, 501 insertions(+), 98 deletions(-) -- 2.24.0