From nobody Thu Oct 14 13:39:07 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 0713F17F6280 for ; Thu, 14 Oct 2021 13:39:24 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4HVVqv6YRJz3QZN for ; Thu, 14 Oct 2021 13:39:23 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: decke) by smtp.freebsd.org (Postfix) with ESMTPSA id BD23330C8 for ; Thu, 14 Oct 2021 13:39:23 +0000 (UTC) (envelope-from decke@freebsd.org) Received: by mail-io1-f44.google.com with SMTP id 188so3748077iou.12 for ; Thu, 14 Oct 2021 06:39:23 -0700 (PDT) X-Gm-Message-State: AOAM532/eZBwCwtwJn8RSxowm8r4rdurv5rkDoMlV4lDjscznch3qfvX R2K1q7bH2TQyaI27MkzMaEHsWwm1cVLloPEUCscUqg== X-Google-Smtp-Source: ABdhPJwOxZjZUyrapYojSLXDoM9DEvmX7vFn+Ho+St6pw+55x3TUiuLmM9RQJOUNDWNKm4gcpcG0wKMPVRe0cupo2hY= X-Received: by 2002:a05:6602:158a:: with SMTP id e10mr2474482iow.157.1634218762940; Thu, 14 Oct 2021 06:39:22 -0700 (PDT) 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 References: <20211014.200731.1708218659985202223.yasu@FreeBSD.org> <31a01109-99db-0806-7b5c-bb4603315a44@FreeBSD.org> In-Reply-To: <31a01109-99db-0806-7b5c-bb4603315a44@FreeBSD.org> From: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= Date: Thu, 14 Oct 2021 15:39:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Adding CPE information To: Guido Falsi Cc: Yasuhiro Kimura , freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-ThisMailContainsUnwantedMimeParts: N On Thu, Oct 14, 2021 at 3:24 PM Guido Falsi wrote: > > On 14/10/21 13:07, Yasuhiro Kimura wrote: > > Hello, > > > > 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. > > > 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. That's correct. The CPE support in the portstree is in Mk/Uses/cpe.mk since 2014. The current attempt (chkcpe) is to add CPE_VENDOR and if needed CPE_PRODUCT to as many ports as possible. The problem is that CPE_VENDOR is a non deterministic value and often multiple choice. So when you see a commit that adds CPE_VENDOR then this is only the last part of the whole workflow. http://github.com/decke/chkcpe -- Bernhard Froehlich http://www.bluelife.at/