From nobody Sun Mar 03 01:22:45 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TnPG11L9Hz5DL8y for ; Sun, 3 Mar 2024 01:22:49 +0000 (UTC) (envelope-from hubert.tournier@gmail.com) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TnPG06Cjdz50Vc for ; Sun, 3 Mar 2024 01:22:48 +0000 (UTC) (envelope-from hubert.tournier@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-412d691c4cdso3149295e9.1 for ; Sat, 02 Mar 2024 17:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709428965; x=1710033765; darn=freebsd.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=RmQLMUMgi0wu+eNFnMrvPP0gdSaC8hAGmFWFojL6luM=; b=D0aqlXkwQN32TgmU/EMR5/HCuXgJb22YaLJZ7BqLamyo4S4RavNxz+OSrrEdHi9/U9 wEpqKIOnBIyRLOwPrR5KHRw1hbuVAeeZB51cTdAxcMcJOO7dzaaRnLcgcF/Weqfa1dCz ZhuNgBhXWc+612ADfp/0f9vlmXr+yqVshEH+IoT/ZcFK67Hln+VixL0oqWnbmuN1Y3iZ NbOfVJ+vVnoz0C6I4u6aAxiQOkaPq4zcOXIgjd05MlMSsI90k8wN1mr5IIe4uealV6/V RfBOKpwLTsx9qdlh38kU80BIyMrKTBqBw9qaGGlhg2dSxR6/jK5vgVhhFs+ycWsKt+Y0 BK6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709428965; x=1710033765; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=RmQLMUMgi0wu+eNFnMrvPP0gdSaC8hAGmFWFojL6luM=; b=exnfZqJ6pYxMCbh9iGXWddJmLPZygd2d4HysyrQGE4XrZgqMloxbaax9GTeu4BCUF2 WvzfEc0mkRAOKH32SWHEMSBv1pkVzBtBjv2AyWjg8HAOlqrcT4x2oVjN3YwQbFIcSAwS pRv6lkgdvERWECrterYA/O9MG4j0OzBKXlSURY3eJrBEQkaXzzRlJgvzFo9VOeqG7h3i mH9ZP58UBqAv/sl9E5Sa/X05VjufpcNny1BJ2BrVTfbZ1Um8+gLDxhYT2XXJ2q6F8YO2 TyCB3ub8bQBgDUNhBHK1Q+5+O+2BKOGQe5O4/PN8EzRHwgej48LLBMtm4NVdbhfGEOAv 5BUA== X-Gm-Message-State: AOJu0Yx6+3gPBq7Uv4QRgx969EU5kRbz4yYVi5mfkE9wnH8/7QCfpWEI fCiHnXuUwgtKpDvtkbX0Am7c8jZzHTtYwYnr0rB//0KbgMWfgQ+w X-Google-Smtp-Source: AGHT+IH3IsEMaNJxGYOuoptHQzcIHbVRXys6ZG2kXWY7BDWwYip+4V6Mu3DkcMrfBH/SJR42Q+gKZw== X-Received: by 2002:a05:600c:4447:b0:412:dcf4:143c with SMTP id v7-20020a05600c444700b00412dcf4143cmr465411wmn.13.1709428965236; Sat, 02 Mar 2024 17:22:45 -0800 (PST) Received: from ?IPV6:2a01:e0a:80d:9d80:12d:1878:26dd:4881? ([2a01:e0a:80d:9d80:12d:1878:26dd:4881]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b004101f27737asm13428835wmq.29.2024.03.02.17.22.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Mar 2024 17:22:44 -0800 (PST) Content-Type: multipart/alternative; boundary="------------hv1zm9TpwJZZM9ePee3imeC0" Message-ID: <28d5cf8a-c3eb-419d-ba36-9594c829cad1@gmail.com> Date: Sun, 3 Mar 2024 02:22:45 +0100 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Port tree linter To: Alexander Leidinger Cc: freebsd-ports@freebsd.org References: <1d9568c9-b2b6-468e-8bc5-509d9aa4ed99@gmail.com> <46af7b220502ded8fb3848f279546da3@Leidinger.net> Content-Language: fr From: Hubert Tournier In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TnPG06Cjdz50Vc This is a multi-part message in MIME format. --------------hv1zm9TpwJZZM9ePee3imeC0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 02/03/2024 à 18:22, Alexander Leidinger a écrit : > > Am 2024-03-02 09:24, schrieb Hubert Tournier: > >> Now that this tool is a Python package, it's easier to use other >> Python libraries. >> > Maybe a check for ports which could be flavourized? Most PHP and > python packages could be flavourized. The issue may be false positives... > > PHP examples are baikal and tt-rss (for both I have patches, waiting a > bit before declaring maintainer timeout). > Unless there is a way to deduce that from a port's Makefile, I do not see how to implement it? For example, taking Python packages, it would require downloading the distfiles, analyzing their content (for example, sections [options.extras_require] in setup.cfg), and looking if there are corresponding port flavours (assuming they have been named similarly). But downloading all ports distfiles would be very long and would consume a lot of disk space (with a possible Denial of Service risk, should a file system be saturated!). If there's another simpler way, I would be happy to know about it. Best regards, Hubert --------------hv1zm9TpwJZZM9ePee3imeC0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Le 02/03/2024 à 18:22, Alexander Leidinger a écrit :

Am 2024-03-02 09:24, schrieb Hubert Tournier:

Now that this tool is a Python package, it's easier to use other Python libraries.

Maybe a check for ports which could be flavourized? Most PHP and python packages could be flavourized. The issue may be false positives...

PHP examples are baikal and tt-rss (for both I have patches, waiting a bit before declaring maintainer timeout).

Unless there is a way to deduce that from a port's Makefile, I do not see how to implement it?

For example, taking Python packages, it would require downloading the distfiles, analyzing their content (for example, sections [options.extras_require] in setup.cfg), and looking if there are corresponding port flavours (assuming they have been named similarly).

But downloading all ports distfiles would be very long and would consume a lot of disk space (with a possible Denial of Service risk, should a file system be saturated!).

If there's another simpler way, I would be happy to know about it.

Best regards,

Hubert


--------------hv1zm9TpwJZZM9ePee3imeC0--