From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iD97DUNhN2QCbQAASxT56A (envelope-from ) for ; Thu, 13 Apr 2023 03:56:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WIKMDENhN2QN6AAAG6o9tA (envelope-from ) for ; Thu, 13 Apr 2023 03:56:19 +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 F3A7ECFE8 for ; Thu, 13 Apr 2023 03:56:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmmBf-0003SB-GP; Wed, 12 Apr 2023 21:55:47 -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 1pmmBd-0003Rk-Cy for help-guix@gnu.org; Wed, 12 Apr 2023 21:55:45 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmmBb-0001XE-LB for help-guix@gnu.org; Wed, 12 Apr 2023 21:55:45 -0400 Received: by mail-qt1-x82b.google.com with SMTP id fv6so1425956qtb.9 for ; Wed, 12 Apr 2023 18:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681350941; x=1683942941; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ao/Ww8mqs8xveyMZpG0RvdyEd/2do7bopCm2wrtYH3k=; b=FOc6Ooc2fmnNSAM3JpY1ZGMJu0jKxiYwFmSjtGqQ6aWPaQ/Ym3a8QsFBaLGgFEgkdf Jz85zTsWZhVL7gIPUqGv82a/7HB6eRdM0oa2Ra+Zkal+1OgrtzboiwMhw/Q9a7LspxvO 0v5ag3I8/hgyQz6OfdlbdnEd3nKckYGGb7MLu07FVUubLlph3pIq4YlwuMDGQntivP9d NJp/eG0tf3QM7MUj/LuEiKrTQF62q9iPOsbbbm+ihebKQxknglUNb0oLPwCV8F2wRUTy LMCoocqta6Lz+nEDdsB8qcf8lgGezZrDzy0vTiPZjGUqqo0JSHbV9iN893vYXnhoPYXc V7Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681350941; x=1683942941; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ao/Ww8mqs8xveyMZpG0RvdyEd/2do7bopCm2wrtYH3k=; b=S7x/EMBEvmEQyM9YkF/ZwDi1nA9JBrls/zh+46PiURzCke38jVIFdZUgIqBKxkdJCd EjHJBryGA9U1+KLn7JZsc7wAB4kYSt5nEAawAOUvblJs5kQbg4NTx2qVn3on4ZUDPRcW 4KiJ9187UjkOt07H5y2yvgmyRHeAa839PRI9WVtr5lki5UuP2CVBYHlkuqlAZKPbCep9 GVxVnboNXbRDZUucB2CUkEt1tikf6sjMNdp210aKWjix8uZoo2KSB0Aj2gBVk3pov0RU 1QevwYWkdPqlXnk67uyv3sJCQ48ulkEbcc4nOUD6VUgKpqu5zTVo4FooOvAaYcQjRsfD 1jIA== X-Gm-Message-State: AAQBX9fqO3xdqz+Y5McNVrbHwIL3N7ht8+Mi64jc8bikeXc0Wehsh8mq DOzEIqnAUZDvR5jMy0vhjlpVX9pbAto= X-Google-Smtp-Source: AKy350awYVZhBSmebpFRFGHd8J7U7HB0YTNYeM/cuaf/my19LZiu3LAKUCM2HnpbufOZxUZMZAXGVg== X-Received: by 2002:a05:622a:14cc:b0:3bf:cc89:9c8f with SMTP id u12-20020a05622a14cc00b003bfcc899c8fmr911865qtx.68.1681350941520; Wed, 12 Apr 2023 18:55:41 -0700 (PDT) Received: from hurd (dsl-152-224.b2b2c.ca. [66.158.152.224]) by smtp.gmail.com with ESMTPSA id e4-20020ac81304000000b003e38d6c013dsm149530qtj.60.2023.04.12.18.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 18:55:41 -0700 (PDT) From: Maxim Cournoyer To: Rodrigo Morales Cc: help-guix@gnu.org Subject: Re: Most used and least used build-system in Guix packages References: Date: Wed, 12 Apr 2023 21:55:39 -0400 In-Reply-To: (Rodrigo Morales's message of "Wed, 12 Apr 2023 23:04:44 +0000") Message-ID: <878rewlf50.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82b.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681350979; a=rsa-sha256; cv=none; b=geGIYXrYmrwaQ+r9+GOpWmbANAoMj8L3i+Mfxkt6pL6YxlvjB2ERcapiimvZj2+s+jzZUn 0Yp8NjRwiZ37VNvDtDhfGIonDtfCesCdrNduEuxVyObcrMEDo3oEQEXIbVq3TdtryWeC2v r8qGoMpJFOosfZhXtXJY6hXRkAwKdKezkwe37VLIluhX4T99Qf6G8MpSCn7YBTWUr3S1SL lOC3tkoKmwkQ6JIKJaNkTF1tIu76PdXtnEkvgb8Zau6Ml4bMmCgdtCyUFkjFITVAHqwMMh zgjGkSM19cAfmi/wXtMSsosMK6O1cYq5Z/GyNENHd22AkhHPe3lU7hujX6vzYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=FOc6Ooc2; 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=1681350979; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ao/Ww8mqs8xveyMZpG0RvdyEd/2do7bopCm2wrtYH3k=; b=UernXRiCPwo5qIWcft4TCGfsbjnvJCn0ub/TSIehoy3NN5SrfUxuphXLPLfXvvLBEFlXfx rjz7m2gBedPXcd6GkuUmZQiUb7Q5K5pl8jpBj+UnbMFs/MZV0f3Gx4QQdXE5R1GxXlc/Ux tm+M0adEcyWf8vYiIxGIp9Gj63lyRCXN3Krz3FMdERk+6wlRpbQWwjuSri0kxESZ3AR428 48XO7wdfqHwKbdtmHICFLjaRpABCm7jelbEHZ6b9wE4BPm+hsHJi5ar7IPXMIn5SO8xaDL wiPQxP/x7MoIy6fweyn5dmDtA4aZG2UPHx5zIFd5bS0ZnyxGTZQfZLOWrZJEXg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.45 X-Spam-Score: -6.45 X-Migadu-Queue-Id: F3A7ECFE8 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=FOc6Ooc2; 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-TUID: Eg79VzxB/1Jz Hello, Rodrigo Morales writes: > Table of Contents > _________________ > > 1. TL; DR > 2. My findings > 3. The question > > > 1 TL; DR > ======== > > 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. > > > 2 My findings > ============= > > ,---- > | (car %load-path) > `---- > > ,---- > | > /gnu/store/zc7dzsd10dd3pw60hircphz4vh1wlki0-guix-module-union/share/guile/site/3.0 > `---- > > ,---- > | > dir="/gnu/store/zc7dzsd10dd3pw60hircphz4vh1wlki0-guix-module-union/share/guile/site/3.0" > | path="$dir/gnu/packages" > | grep -hREo '[a-zo-]+-build-system' $path | sort | uniq -c | sort -nr > `---- > > ,---- > | 3893 gnu-build-system > | 2717 python-build-system [...] > 3 The question > ============== > > Does anyone know if there's a more accurate way of finding out this > information? I'm asking because my method also counts build systems > that are mentioned in comments. For example, if a file contains > comments that mention build systems, they are also counted. Guix provides an API, so you could use it from the comfort of the 'guix repl' REPL to query it, using fold-packages. The following repo will surely provide some clues as to how to do that; the following is an example querying all the packages that make use of the emacs-build-system [0] [0] https://notabug.org/apteryx/guix-api-examples/src/master/emacs-packages-manifest.scm Have fun! -- Thanks, Maxim