From nobody Wed Mar 20 09:48:01 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 4V03g84cr7z5F7WK for ; Wed, 20 Mar 2024 09:48:04 +0000 (UTC) (envelope-from hubert.tournier@gmail.com) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 4V03g739pmz4T5M for ; Wed, 20 Mar 2024 09:48:03 +0000 (UTC) (envelope-from hubert.tournier@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="nY+EU/i2"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of hubert.tournier@gmail.com designates 2a00:1450:4864:20::432 as permitted sender) smtp.mailfrom=hubert.tournier@gmail.com Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33ec8f13c62so4813662f8f.0 for ; Wed, 20 Mar 2024 02:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710928081; x=1711532881; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=kB5ZCPRRBAsP0mtrNy36pZRkbMVgLy2AE7S2DCN1Bng=; b=nY+EU/i2Ayiye2cIIJf2kmmzTWLsgJBUzqhgsUo+OyCViitf5RYaUDN1pS+57tF6J3 A19IdoaVZy1bcGnMXj7PZom8GzhnrGK/vT4xYPwYZqDcE6pBa1+I28ybadzYPJOITWTo fXd8k1Hs01mah2HjNtk6YuSTr7OS1vl+Qf5pJF7ZymkMwwddcKWX0Z3tw/3rd0wUgRIR q2AMOnYGmnsou7r4yZZQ/HMJ2LkxyRHnY2XqW6liEl8rKeHcm8RUZg8bY8yWjQ/+wJoO MCCNyP168+dGPIjq/ZQ6H1D3R9v8VOgloMEtg0+7emXhP49b2Pq/aE1DUGT1I6ICVhZN ljOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710928081; x=1711532881; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kB5ZCPRRBAsP0mtrNy36pZRkbMVgLy2AE7S2DCN1Bng=; b=HCZ6flgr1Tlsd8Z3XnI6SE/r8bYvhOphmHAiKbNvCF0u5vuEgWazJEJpAC0EoANOSX K2sGspgkFP4QvNGETEvFZ1zp0vLLdK6+P2WYnPiWlfFRg7JDAsxUnARNFlmBHc8mU5HB AB+ICuJMwbgQhqwqM5UgvcayhAQ+3HlfMnXOw1YVLyu3PzKmmCUNl83cpRoHV0mSqn+v 18QhrRRc/mAHJZRrOSpNLsfpv4646LSlly+e4M1oE/X9heifUKO3fC7AqMbJPXSLE/z2 drzQgeXjqL9FfeO7cJwyHXXttkSZFB2xlgAzMfPtQaI4ByBNORWhsO0H4qTzMscikFuv Xm/A== X-Gm-Message-State: AOJu0YxKXdMUqwHdq09Q5QzdmdkWkdLMMtfTCzKs3asexVmiLKWgCCf5 Wv34EW5WT/D1sacYeAfO+DK2/iaq4FuiJ6uOh8pxaf31GrjGQouGJiVbjIywkAY= X-Google-Smtp-Source: AGHT+IH/C87mBTDnFuGTsWnxB2v/tuNCnouZ4GU37hhvLCFyVv9ws7PHOY0ZkWSxs2WFIIrkcPJSgQ== X-Received: by 2002:a5d:49ca:0:b0:33e:c924:5486 with SMTP id t10-20020a5d49ca000000b0033ec9245486mr11292589wrs.46.1710928081353; Wed, 20 Mar 2024 02:48:01 -0700 (PDT) Received: from ?IPV6:2a01:e0a:80d:9d80:9bf:6ffc:bed7:ed17? ([2a01:e0a:80d:9d80:9bf:6ffc:bed7:ed17]) by smtp.gmail.com with ESMTPSA id x11-20020a5d60cb000000b0033eca2cee1asm14383659wrt.92.2024.03.20.02.48.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 02:48:00 -0700 (PDT) Message-ID: Date: Wed, 20 Mar 2024 10:48:01 +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 From: Hubert Tournier Subject: Re: Port tree linter To: freebsd-ports@freebsd.org References: <1d9568c9-b2b6-468e-8bc5-509d9aa4ed99@gmail.com> <46af7b220502ded8fb3848f279546da3@Leidinger.net> Content-Language: fr, en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.02 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.03)[-0.032]; XM_UA_NO_VERSION(0.01)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::432:from] X-Rspamd-Queue-Id: 4V03g739pmz4T5M Hello there! I would like to announce the availability of PortsTreeLint (portstreelint or ptlint or ptl for short) in the ports tree under ports-mgmt/py-pnu-portstreelint This tool checks the FreeBSD ports tree Index and some parts of the ports' Makefiles for errors and warnings. By default it will scan the whole port tree, but you can select a subset of the ports by specifying lists of categories, maintainers and ports names. It is possible to generate a CSV delimited file with the per-maintainer findings. This would allow automated processing of the results, such as sending warning emails, storing results and displaying only diffs since previous run... You can install it with: "cd /usr/ports/ports-mgmt/py-pnu-portstreelint ; make install clean". The project's documentation is available on https://github.com/HubTou/portstreelint (or through "man portstreelint"). You can report issues at: https://github.com/HubTou/portstreelint/issues You can view the possible roadmap for evolutions at: https://github.com/HubTou/portstreelint/blob/main/TODO.md And you can propose your own ideas at: https://github.com/HubTou/portstreelint/discussions Even better, you can propose your own code extensions in Python. The source code is quite modular and I believe that it would be easy to add new checks just by looking at the existing ones. Last but by no means least, I would like to thank Emanuel Haupt for contributing to the code and Nuno Teixeira for his gentle mentoring and reactivity in helping port this tool to FreeBSD. Thank you guys, you rock! Best regards, Hubert PS: as a dependency bonus, you also get the security/py-pnu-vuxml tool to query the VuXML "database" of vulnerable FreeBSD ports in a user-friendly way.