From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 20 Apr 2025 18:19:09 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u6XNt-003Fh4-1b for lore@lore.pengutronix.de; Sun, 20 Apr 2025 18:19:09 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1u6XNt-0002gQ-65; Sun, 20 Apr 2025 18:19:09 +0200 Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1u6XNZ-0002gG-Lu for ptxdist@pengutronix.de; Sun, 20 Apr 2025 18:18:50 +0200 Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-6ef9b8b4f13so26328837b3.2 for ; Sun, 20 Apr 2025 09:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745165928; x=1745770728; darn=pengutronix.de; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nJzoCak963neY7YMBFfrtyQcXAsjtObcRUIwxGONqp0=; b=WlsyzPBhIaFSAnKWbVLMwIgNhlJOfkkgNhS2UuFWIqZ+meDVGGBesnmNIBUQCLTr58 YwMATBCzoFHkPzuW7vXwQIKBVYpQGQy6xGzl7f+yPCQ0wCa/xEnkz7w1wIhtjMtCAVJ7 l8QVEhj3TzFaQDJPAdPH48IS5W26d9OCE6E2snA4Dj9ZBuSY6FVaTzpqCsuWV3WW2MWi QUUFPiUxAVUHF90OLrzyxzbmUB+Mr0ahC5P5VJtPeFD/O0soPiEL/sakAXK7fIgfy5mB yXkWzmKbvZyTiJ+d861d02042dt1qd53VFJOpf8ApoVC18rwHKy7T5Flq9CDt8VWJKF6 +4Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745165928; x=1745770728; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nJzoCak963neY7YMBFfrtyQcXAsjtObcRUIwxGONqp0=; b=QAIBSUxVXlYji2dPo+slQ/X/x+DjtoVXBBPqJOUGVDBVo3pW0tBFEi8W1Gwji1y8+0 NRoV6Ku0Qqtglciu3DvyFLBveQox0FxPODgj9dJw4OomSp00q+P53AngMIoZjc2qS9ep F8zDlLA/Uw7ui4EEnETwtuTqatZR3gA04xczwECi3opERsqWOFjRXC6kNSOKFtqM/hvK DSnrvoEalvT+wtvsMfOaN9Py57PnIa7NbZBaNmNJR63JgamJTrz8Of6+e42U+aZ46hXN 8JmE1T5VzCK8JjEsDITGBVt/gwcd4g0KkRRcIF2dA1G0/aK29SezjKh5IxUpjBB2vp1p hTbg== X-Gm-Message-State: AOJu0Yz1DoFmuGp7l1aPiRTSXw0k9hezVFrIlgzWIKgaJOV3qvRHZjFh UyRH7W/tYqs7Fbtqj7cNPC/iFi7dckI5bbmzY+RvhXwQ0V5YPun1F9leo3kzhOGbJAAntAcyirD lb0yaUApGDOk5ldnZXDRO0r98qsc= X-Gm-Gg: ASbGncvqj1EyIDR1E2kEimtPyQf0mQMETCl04drSILvYbuIl91+rDIoytDPQgzSJ9qF YbdJgrR+1V52gbKfQ4YDtsWwtWNAb6xs22JLsr7VaD+0lWaTCwwVQlQ92RU4XIU4BYH3iRTa/ao waeFBodBn+DugVMCFLitQTmQ== X-Google-Smtp-Source: AGHT+IHG39TZat6S2nphyazidYyn+0TO5UUieehhVkCeeSYWL/JijOcz+cs0b3Zu0qHJjGp/ga8X4nSEAqeam1QGqgA= X-Received: by 2002:a05:690c:600f:b0:701:fa3e:83f5 with SMTP id 00721157ae682-706cdbbd228mr127554287b3.35.1745165928246; Sun, 20 Apr 2025 09:18:48 -0700 (PDT) MIME-Version: 1.0 References: <20250418113357.23654-1-bruno.thomsen@gmail.com> In-Reply-To: From: Bruno Thomsen Date: Sun, 20 Apr 2025 18:18:32 +0200 X-Gm-Features: ATxdqUE75Hw_hoOz8LVjhS-3xHmfetS0dsxz-8PgXrUL7a25HJZB5jApH0anhEM Message-ID: To: Ladislav Michl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [RFC PATCH] ptxdist: add repology sub command X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Den s=C3=B8n. 20. apr. 2025 kl. 10.41 skrev Ladislav Michl : > > On Sat, Apr 19, 2025 at 11:10:47PM +0200, Ladislav Michl wrote: > > On Fri, Apr 18, 2025 at 01:33:57PM +0200, Bruno Thomsen wrote: > > > +ptx/repology =3D \ > > > + $(call ptx/env) \ > > > + ptx_dgen_rulesfiles_make=3D"$(PTX_DGEN_RULESFILES_MAKE)" \ > > > + ptxd_make_world_repology > > > > Here would be probably better to pass $(PTX_PACKAGES_INSTALL) and possi= bly sort it. > > Actually tried that with $(PTX_PACKAGES_ALL) and it does not seem to be v= iable > solution. Too much has to be set up just to generate JSON report. Now try= ing to > model it similar way ptxdist-lint target is made. Hi I also started with ptxdist-lint but might have removed a little too much of the makefile and relied too much on the bash script part :) It would be nice if we could run more makefile to get dynamic versions and licenses resolved before handoff to bash script. Or maybe we should do it more like spdx sbom in Python. The sorting and indentation is currently done externally by jq, but that could be moved inside ptxd_make_world_repology script function. Also I am a bit unsure if this cross rule variable access is actually more of a bug then a feature. $ rg XORG_LIB_X11_LICENSE rules/libx11-locale.make 24:LIBX11_LOCALE_LICENSE =3D $(XORG_LIB_X11_LICENSE) rules/xorg-lib-X11.make 24:XORG_LIB_X11_LICENSE :=3D MIT Ladislav you can find latest development version of this repology support h= ere: https://github.com/baxeno/ptxdist/tree/repology_support (you can send PR directly if you wish) Output from RFC PATCH have at least 19 issues with "$(": https://github.com/baxeno/ptxdist-repology/blob/main/repology.json /Bruno > > l.