From nobody Thu Oct 14 13:43:12 2021 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 CCAE617F928C for ; Thu, 14 Oct 2021 13:44:08 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HVVxN5P3Yz3hnH; Thu, 14 Oct 2021 13:44:08 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Received: from localhost (gate.home.utahime.org [183.180.29.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 5E6B02D78; Thu, 14 Oct 2021 13:44:07 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Thu, 14 Oct 2021 22:43:12 +0900 (JST) Message-Id: <20211014.224312.1851469902312960663.yasu@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: Adding CPE information From: Yasuhiro Kimura In-Reply-To: <07c45bce-fa7a-2577-4e56-d3e88a8b46e4@madpilot.net> References: <20211014.200731.1708218659985202223.yasu@FreeBSD.org> <07c45bce-fa7a-2577-4e56-d3e88a8b46e4@madpilot.net> X-Mailer: Mew version 6.8 on Emacs 29.0.50 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 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N From: Guido Falsi Subject: Re: Adding CPE information Date: Thu, 14 Oct 2021 14:58:04 +0200 >> It seems recently some committers are working to add CPE information >> to many ports. I don't know why it started. But if it is intended to >> add CPE information to all (or most of ) ports, isn't it better to >> modify ports framework so CPE intormation is added to each ports by >> default? >> > > AFAIK that's already in the tree. The framework tries to extrapolate > CPE information from PORTNAME and other variables. Yes, but it isn't enabled by default. You need to add 'USES=cpe` to Makefile if you want to add CPE information to specific port. What I proposed is to change framework so CPE information is added to all ports without adding 'USES=cpe' to Makefile of each port. > Unluckily most of the time it is actually impossible to get correct > information and some other variables with the correct details, which > are not necessarily logical or in any way connected with the > information already present) need to be added by hand after manual > discovery. I understand manual work is required to set the value of related variables correctly. But it is always necessary whether we add CPE information by changing framework of we do it by adding 'USES=cpe' to Makefile of each port. And assuming that it is intended to add CPE information to all ports, I think the former requires less work volume than the latter. --- Yasuhiro Kimura