From owner-svn-ports-all@freebsd.org Fri Dec 20 05:46:16 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9F7CD1CE006; Fri, 20 Dec 2019 05:46:16 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47fHmS3hd2z4X1N; Fri, 20 Dec 2019 05:46:16 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f51.google.com with SMTP id y19so6053782lfl.9; Thu, 19 Dec 2019 21:46:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8wxdyrgPGGW/WDH9rEaNdAKKF3CHemFkO3XCMJH7HKs=; b=ZsVPOLOOfKn5AjsS136zviNg4Vn23BYkvUuOvmLuue3ql2USQ/ufe8WocM7sVx/1J2 SGRDk9q9ytqUoWbB4Tt1hXRFpm6lyn0gSj0pF08aaYtyL2CT2xaPho/ZG7gSa/dD8Mux nNtWr237ktkeaM3HCyCNMErGO8PFXtG3QNB8hFMCjG1Q1JgPON4vjssmzTMMycoL8lw5 /jmi3UMLskJBcOi75eEuxiBz8Uq7GvvxgJ8d9iYCojJcMPSFnIMnVVIDTt+hPuqovL3m 94w50TRCTbn9lI3PTcAYIc6dWJP2wH2NK6Mi7ml3f/jKhulSa1c0QeuSJOXxarjGFlIo VcwQ== X-Gm-Message-State: APjAAAVuho7rp3GLdABnscCVBaNFliNz3MfNfcybTYiFwFeYhUfuathO 0o6Vcba2h8qn3U++koNqNC76ReUPYhRPTA== X-Google-Smtp-Source: APXvYqxN92+/XWRL+aqpljmdA/WPgxgu8w7Cr4K2ZfAG3F8JT3xex3h0tmUJ5RMWeOPEArcaBtzOjw== X-Received: by 2002:a19:7015:: with SMTP id h21mr7630605lfc.68.1576820774236; Thu, 19 Dec 2019 21:46:14 -0800 (PST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id i4sm4590831lji.0.2019.12.19.21.46.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 21:46:14 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id 9so6049632lfq.10; Thu, 19 Dec 2019 21:46:14 -0800 (PST) X-Received: by 2002:a19:f701:: with SMTP id z1mr7701297lfe.13.1576820773760; Thu, 19 Dec 2019 21:46:13 -0800 (PST) MIME-Version: 1.0 References: <201912200518.xBK5IHPq022253@repo.freebsd.org> In-Reply-To: <201912200518.xBK5IHPq022253@repo.freebsd.org> From: Gleb Popov Date: Fri, 20 Dec 2019 09:45:49 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r520468 - in head/sysutils: . cpuid2cpuflags To: Alexey Dokuchaev Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-Rspamd-Queue-Id: 47fHmS3hd2z4X1N X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2019 05:46:16 -0000 On Fri, Dec 20, 2019 at 9:18 AM Alexey Dokuchaev wrote: > Author: danfe > Date: Fri Dec 20 05:18:17 2019 > New Revision: 520468 > URL: https://svnweb.freebsd.org/changeset/ports/520468 > > Log: > The program attempts to obtain the identification and capabilities > of the currently used CPU, and print the matching set of CPU_FLAGS_* > flags for Gentoo Linux, but it could be useful for FreeBSD as well. > I wrote something similar for FreeBSD specifically: sysutils/hs-cputype > WWW: https://github.com/mgorny/cpuid2cpuflags > > Added: > head/sysutils/cpuid2cpuflags/ > head/sysutils/cpuid2cpuflags/Makefile (contents, props changed) > head/sysutils/cpuid2cpuflags/distinfo (contents, props changed) > head/sysutils/cpuid2cpuflags/pkg-descr (contents, props changed) > Modified: > head/sysutils/Makefile > > Modified: head/sysutils/Makefile > > ============================================================================== > --- head/sysutils/Makefile Fri Dec 20 05:15:15 2019 (r520467) > +++ head/sysutils/Makefile Fri Dec 20 05:18:17 2019 (r520468) > @@ -204,6 +204,7 @@ > SUBDIR += cpu-x > SUBDIR += cpuburn > SUBDIR += cpuid > + SUBDIR += cpuid2cpuflags > SUBDIR += cpulimit > SUBDIR += cpupdate > SUBDIR += cramfs > > Added: head/sysutils/cpuid2cpuflags/Makefile > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/sysutils/cpuid2cpuflags/Makefile Fri Dec 20 05:18:17 2019 > (r520468) > @@ -0,0 +1,28 @@ > +# Created by: Alexey Dokuchaev > +# $FreeBSD$ > + > +PORTNAME= cpuid2cpuflags > +PORTVERSION= 8 > +DISTVERSIONPREFIX= v > +CATEGORIES= sysutils > + > +MAINTAINER= danfe@FreeBSD.org > +COMMENT= Tool to generate CPU_FLAGS_* for your CPU > + > +LICENSE= BSD2CLAUSE > + > +USES= autoreconf > +USE_GITHUB= yes > +GH_ACCOUNT= mgorny > +GNU_CONFIGURE= yes > + > +PLIST_FILES= bin/${PORTNAME} > +PORTDOCS= README > + > +OPTIONS_DEFINE= DOCS > + > +post-install-DOCS-on: > + @${MKDIR} ${STAGEDIR}${DOCSDIR} > + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} > + > +.include > > Added: head/sysutils/cpuid2cpuflags/distinfo > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/sysutils/cpuid2cpuflags/distinfo Fri Dec 20 05:18:17 2019 > (r520468) > @@ -0,0 +1,3 @@ > +TIMESTAMP = 1568752858 > +SHA256 (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = > c768a3a8e8028b35e9695fceef2cdbc9f8c5e2dcfd43349d9326884fb25d1faf > +SIZE (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = 10065 > > Added: head/sysutils/cpuid2cpuflags/pkg-descr > > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/sysutils/cpuid2cpuflags/pkg-descr Fri Dec 20 05:18:17 2019 > (r520468) > @@ -0,0 +1,15 @@ > +The program attempts to obtain the identification and capabilities > +of the currently used CPU, and print the matching set of CPU_FLAGS_* > +flags for Gentoo Linux, but it could be useful for FreeBSD as well. > + > +The output format is compatible both with Portage (package.use) and > +Paludis (use.conf/options.conf). > + > +On x86 platforms, the program issues the CPUID instruction to obtain > +processor capabilities. > + > +On ARM platforms, the userspace processes are not allowed to obtain > +processor information directly. Instead, the program is relying on > +kernel identification of the CPU provided via the system interfaces. > + > +WWW: https://github.com/mgorny/cpuid2cpuflags >