From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CPnCHZTTN2T2JgAASxT56A (envelope-from ) for ; Thu, 13 Apr 2023 12:04:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0GbOHZTTN2SPNAAA9RJhRA (envelope-from ) for ; Thu, 13 Apr 2023 12:04:04 +0200 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 4E86FC703 for ; Thu, 13 Apr 2023 12:04:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmtn5-0002CV-7N; Thu, 13 Apr 2023 06:02:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmtn3-0002Au-OO for help-guix@gnu.org; Thu, 13 Apr 2023 06:02:53 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmtn2-0007cu-21 for help-guix@gnu.org; Thu, 13 Apr 2023 06:02:53 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f0ad695487so77225e9.0 for ; Thu, 13 Apr 2023 03:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681380170; x=1683972170; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CweDZ58Co6eZ3o6Fot8fjunRE/t5p36AVJ78Om1hx30=; b=WgaOKOWoUmAt4SA8zfBGSvlJO9ahitxr4ZMHUs/PtDx5wIY7pWZV5g3n6qBhGOeDoU DRllFAtErR5UCqRS62l+UHE//fL7zIh/gqnoNEWvkfMSkDrdFoz1eb7ESC75X4/g3FgP GdaSw3adilUrXHlxqSnU50QjlGnZCNowqLkNBeeXKYc+MAy5tPYSrwy9YCk+0/ZUB7R/ d2BMjSQ2CKOgQa4aUHo2HoShp4fuPA/tj+Wqy9mb3Pp5g3Xu6CBzumzNdr29ohS3Fuq+ n91csJzQc1UboRVVhGxlSzVohRPo5DiO1EbBP/XpYGbLwNSffkBQG+NwkJZGAeIBQu/V hMFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681380170; x=1683972170; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=CweDZ58Co6eZ3o6Fot8fjunRE/t5p36AVJ78Om1hx30=; b=CLk2S50pjq0j9OJEnVge9R1cOnjSuXM8bT66gl6ZjkqSTnvRtpqS9kfaIbu8K+jPGt B2orEkzcRPaBh3DursiLJmA7alUkUycvHQMyGJtjIofkMgpDhmxed8IPhDUHbccPnoSR OuvCRbgcu5aVWo5JDyib6UZlpTYtGm8zNx90C2/M2t47i+NpiR2hA304/CLcyD/qaA2J FEoAPZ1LY80gk5F6eI1TE+BYUJ+ssGMgk+JFiXgG4rIUYVANijmItzA9l/3iBA/alIFo MXRJR22x110zCqNf/9imFa9zoUbMD2cuXAyXWXolFPG0CxaUbGConOZjjM5zDLUTuf2m oF7w== X-Gm-Message-State: AAQBX9f+kRElrmnpbhNB6J7bMpECfb9syDsS9ZJYQ7fhcY4EqIL/4GCZ 8FUoocxdkAx2b0bKq23qrJJ/08SRhj8= X-Google-Smtp-Source: AKy350ZgVJsRHgwCDVNjwQVKPr51C0YhunB3IBFhPfvjhM0JwRCYOcUOIpdq4AfRsbJpVV9xXzXlXg== X-Received: by 2002:a05:600c:3b27:b0:3f0:a192:44ea with SMTP id m39-20020a05600c3b2700b003f0a19244eamr1559322wms.0.1681380170172; Thu, 13 Apr 2023 03:02:50 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id k7-20020a05600c1c8700b003ee1acdaf95sm5083894wms.36.2023.04.13.03.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 03:02:49 -0700 (PDT) From: Simon Tournier To: Rodrigo Morales , help-guix@gnu.org Subject: Re: Most used and least used build-system in Guix packages In-Reply-To: References: Date: Thu, 13 Apr 2023 11:40:30 +0200 Message-ID: <863554t90x.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681380244; a=rsa-sha256; cv=none; b=HaNHYZ6dYWg8OKrhgfl+j6wl+L2QYmFrEN/1QqHKBVoLVnynTy3NND82oAteGV+sOeB/37 ytZsBOWNXgn9hN4FpCMBAjJHxwZxL9nYhKdpT4ytLWReN5MHwElTGBcM8L2sYvI0qaofuV 491N0LPtJXJbSsw7nKwWwdyUTHBZF1luDPcgAdAp/4iAxLOjlIuouSLme9TP3On41axSoQ 2xgnpkfGfIUgEfPHB/bxmI4mvuNXBl1F+s3ioA8sHG3yyrFKLXPjD29xlrnw+EYsXCKTdQ GIrgPtlMeqyHMEVrxGSsrh22C2/n6QqkqF6Mn7mZoa4xy9vSrV1BizOw5iHyqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WgaOKOWo; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681380244; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CweDZ58Co6eZ3o6Fot8fjunRE/t5p36AVJ78Om1hx30=; b=cUw3iutn0cyq7NV5D1dcCAQDxLHsywetuqlMtTvHd9bVO+7LFC9i6XwjsJtNcaUJzZI9w8 DrIZvHwJZu+2H4wYDzQRA/hVrBmhA+Y9Z+kwwNMrOSg0zwrTb60NjetOvmXr+SbMZE2kBu f2CstbtMhs1pFEDnluU/UlrrBAMa3Vl/kIxj6ZjwimXFcUA8tpNg6qN4XPX6GrR6SluBcd 4v2YM6oJIdYsWjkxNtfYZCAFmcltWQFJAyzjMBWqmhSpHqzeEt8eP+aX1rCBSybExCbmIC H8wSSiefN97yOjVt9dEM3J2KmLEvAoCbEzeW4cxcyWpRGHGklJDv0id9tYwQrg== X-Migadu-Queue-Id: 4E86FC703 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WgaOKOWo; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.55 X-Spam-Score: -11.55 X-TUID: ekL/dLS09HM3 Hi, On Wed, 12 Apr 2023 at 23:04, Rodrigo Morales wrote: > Today, I was wondering what the most used build system and the least > one are. The most used build system is `gnu-build-system'. The least > used build system is `dub-build-system'. Here's how I found that out. Please give a look at: https://issues.guix.gnu.org/msgid/Y0ZgY7ifJg0vkZxB@bluewin.ch (Argh I am so late for completing the review of this!) It comes from: where some examples traverse all the packages and collect build system by build system if the modify the field =E2=80=99arguments=E2=80=99. Well, here an example to list the most used methods in =E2=80=99origin=E2= =80=99 field. --8<---------------cut here---------------start------------->8--- $ cat sources.scm (use-modules (guix) (guix git-download) (guix hg-download) (guix svn-download) (guix cvs-download) (guix bzr-download) (gnu) (ice-9 match) (srfi srfi-1) (srfi srfi-26)) (define packages-with-source (fold-packages (lambda (package result) (if (origin? (package-source package)) (cons package result) result)) '())) (map (lambda (package) (let* ((origin (package-source package)) (method (origin-method origin)) (str (cond ((or (eq? method url-fetch) (eq? method url-fetch/tarbomb) (eq? method url-fetch/zipbomb)) "url-fetch") ((eq? method git-fetch) "git-fetch") ((eq? method hg-fetch) "hg-fetch") ((or (eq? method svn-fetch) (eq? method svn-multi-fetch)) "svn-fetch") ((eq? method cvs-fetch) "cvs-fetch") ((eq? method bzr-fetch) "bzr-fetch") (else "other")))) (format #t (string-append str "~%")))) packages-with-source) $ guix repl -- sources.scm | sort | uniq -c | sort -rn 13600 url-fetch 8047 git-fetch 458 svn-fetch 38 other 32 hg-fetch 5 bzr-fetch 2 cvs-fetch --8<---------------cut here---------------end--------------->8--- Hope that helps. Cheers, simon