From nobody Wed Aug 16 17:06:52 2023 X-Original-To: dev-commits-ports-main@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 4RQvgd0dhPz4qrry; Wed, 16 Aug 2023 17:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQvgd0KJCz3NrZ; Wed, 16 Aug 2023 17:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692205613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GGeLfksWjzlaCfaMo4ilA3IG+H1Iu8LD8X4Y+P9b9R4=; b=pcCe7gyWyhhoG1GguI27yCTHzaaxf5Q1nteQ4q/XYhDprtL7zMqDaiRS1vr1sgM0CsNaVY xUMAgjyCUud1mn3W2Mi6yEsVWysXLMRh+4JIE2PkMZ1JhBVaBSX7GUYRuAR+NJ4eZ0rXhC Rs3tgyLtOa223GGUyUHyOJHdKxWmjLO7cEjvsf6oUrO2b4Yor7UZ7oMK22C6BsWj9faVSC MIzVUJwP5IJ5VEBrESh09vCnbn7p6UQrlzjD7d4QRGYvpbmFdRuj+ymAtVaYdMBbPYcas8 V1+CWNeny2ohfzBdyBGrl73U66Sx7NrjQEHrsT/czLl/MqvLasxH96KXyG2kKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692205613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GGeLfksWjzlaCfaMo4ilA3IG+H1Iu8LD8X4Y+P9b9R4=; b=KtNFO70/pbXta4qVdDMglabk9OHVltR9wpXiU1CdcNqfbZG7zlMqvAA0TusTOJmb5NBFyG DWSrolEFjyD5ABAZks+9vkhrHRtiUxyRnbELwYxYSw1yDBZFZHSWYAIt0a9nKSD+d/4fVg feTC2Dx8/wAWsG8wPElYl7HMHJS3r44Cq4uIN+3lVSPFghdFwsRMPBl8HVF5DAPZxsgeeC BrUDeP96e2ztTfvNlSwD0IrLuYTsADhEMV6AGoWOchwFqUbSFDEAnNW2lKmmZjMkb8APas jtKyPzVNIC2jUAp+KUUhMT5dgmVYKE4HFj0STHZjiWayQk+UnH9VUAQj+sxtLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692205613; a=rsa-sha256; cv=none; b=b4jFW0aceaKgtv7+tpf9iiW3Ws/sR6Jj+wW0a4xvbxXV0DVKf6LC2FjFNUnT1TOp7K4/5F ZCol2ptvwbstGaHk/iolz571S4fVkJBVR4cXkaNcFr4qjQouqrQTDQTJeC91blMbhx/JXH edi2TYpzkxoAtep+0bLmMzPiu42xHIvxTum1qn8i6wseTwiJsT8H7j/ou+dMmFFgDfchqM gYtFTZ+ikb87KVMoZfb1TCrtl3gJmjoW0qfJqeag68lYEX+xCDDwJE8opL4s9Iisqt6PRx uBHl90rdxcOWSdG5ghLLaB0RinHs3epf+cQgd0yuOza/DbU0hpdrIywtuDkE0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RQvgc6TcTz10Qd; Wed, 16 Aug 2023 17:06:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37GH6qru075933; Wed, 16 Aug 2023 17:06:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GH6q6Q075930; Wed, 16 Aug 2023 17:06:52 GMT (envelope-from git) Date: Wed, 16 Aug 2023 17:06:52 GMT Message-Id: <202308161706.37GH6q6Q075930@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Joseph Mingrone Subject: git: bc7829212d15 - main - sysutils/cpu-microcode-*: Reorganize CPU microcode ports List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc7829212d153aeff69b439d08e2e3001ef88ba3 Auto-Submitted: auto-generated The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc7829212d153aeff69b439d08e2e3001ef88ba3 commit bc7829212d153aeff69b439d08e2e3001ef88ba3 Author: Joseph Mingrone AuthorDate: 2023-08-10 16:57:31 +0000 Commit: Joseph Mingrone CommitDate: 2023-08-16 17:06:40 +0000 sysutils/cpu-microcode-*: Reorganize CPU microcode ports Prior to this update, sysutils/devcpu-data, which only contained an RC script, had run dependencies on the AMD and Intel microcode ports. This made it cumbersome to have just the AMD or just the Intel microcode ports installed. With this change, the microcode ports now depend on the RC script. Other changes: - Use more intuitive port names: cpu-microcode, cpu-microcode-amd, cpu-microcode-intel, and cpu-microcode-rc. - Add the metaport, cpu-microcode, which pulls in all related ports. - Pet portclippy/portfmt Reviewed by: lwhsu, markj Approved by: sbruno (maintainer) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41406 --- MOVED | 3 ++ sysutils/Makefile | 7 ++-- .../Makefile | 10 +++--- sysutils/cpu-microcode-amd/distinfo | 11 +++++++ .../files/LICENSE.amd-ucode | 0 .../pkg-descr | 0 sysutils/cpu-microcode-amd/pkg-message | 8 +++++ .../Makefile | 6 ++-- .../distinfo | 0 .../files/LICENSE | 0 .../files/Makefile | 0 .../files/ucode-split.c | 0 .../pkg-descr | 0 sysutils/cpu-microcode-intel/pkg-message | 8 +++++ .../pkg-plist | 0 sysutils/cpu-microcode-rc/Makefile | 27 ++++++++++++++++ .../files/microcode_update.in | 0 .../files/pkg-message.in | 19 ++++++----- .../{devcpu-data => cpu-microcode-rc}/pkg-descr | 0 sysutils/cpu-microcode/Makefile | 16 ++++++++++ sysutils/cpu-microcode/pkg-descr | 4 +++ sysutils/devcpu-data-amd/distinfo | 11 ------- sysutils/devcpu-data-amd/pkg-message | 7 ---- sysutils/devcpu-data-intel/pkg-message | 7 ---- sysutils/devcpu-data/Makefile | 37 ---------------------- sysutils/devcpu-data/distinfo | 1 - 26 files changed, 100 insertions(+), 82 deletions(-) diff --git a/MOVED b/MOVED index f89d5f3491ce..09dc63705d9b 100644 --- a/MOVED +++ b/MOVED @@ -7781,3 +7781,6 @@ lang/go118||2023-08-04|Upstream support ended devel/hhdate|devel/date|2023-08-05|Dedup library x11-toolkits/wlinfo||2023-08-10|Redundant with wayland-info from graphics/wayland-utils www/bareos18-webui|www/bareos19-webui|2023-08-16|Has expired +sysutils/devcpu-data-amd|sysutils/cpu-microcode-amd|2023-08-16|Reorganize CPU microcode ports +sysutils/devcpu-data-intel|sysutils/cpu-microcode-intel|2023-08-16|Reorganize CPU microcode ports +sysutils/devcpu-data|sysutils/cpu-microcode-rc|2023-08-16|Reorganize CPU microcode ports diff --git a/sysutils/Makefile b/sysutils/Makefile index 34fb475d7f03..95fdf00d8e58 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -234,6 +234,10 @@ SUBDIR += coreos-ct SUBDIR += coreutils SUBDIR += cpdup + SUBDIR += cpu-microcode + SUBDIR += cpu-microcode-amd + SUBDIR += cpu-microcode-intel + SUBDIR += cpu-microcode-rc SUBDIR += cpu-x SUBDIR += cpuburn SUBDIR += cpufetch @@ -275,9 +279,6 @@ SUBDIR += deltup SUBDIR += desktop-installer SUBDIR += detox - SUBDIR += devcpu-data - SUBDIR += devcpu-data-amd - SUBDIR += devcpu-data-intel SUBDIR += devctl-jail-kmod SUBDIR += devd-mount SUBDIR += devedeng diff --git a/sysutils/devcpu-data-amd/Makefile b/sysutils/cpu-microcode-amd/Makefile similarity index 87% rename from sysutils/devcpu-data-amd/Makefile rename to sysutils/cpu-microcode-amd/Makefile index d92dae02950d..6c9cf47fb999 100644 --- a/sysutils/devcpu-data-amd/Makefile +++ b/sysutils/cpu-microcode-amd/Makefile @@ -1,8 +1,8 @@ -PORTNAME= data +PORTNAME= microcode PORTVERSION= 20230724 CATEGORIES= sysutils MASTER_SITES= https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/ -PKGNAMEPREFIX= devcpu- +PKGNAMEPREFIX= cpu- PKGNAMESUFFIX= -amd DISTFILES= microcode_amd.bin?id=${_REV} \ microcode_amd_fam15h.bin?id=${_REV} \ @@ -12,7 +12,7 @@ DISTFILES= microcode_amd.bin?id=${_REV} \ DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} MAINTAINER= sbruno@FreeBSD.org -COMMENT= AMD CPUs microcode updates +COMMENT= AMD CPU microcode updates LICENSE= EULA LICENSE_NAME= Advanced Micro Devices License Agreement @@ -21,13 +21,15 @@ LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 i386 +RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/microcode_update:sysutils/cpu-microcode-rc + +DATADIR= ${PREFIX}/share/cpucontrol EXTRACT_CMD= ${CP} EXTRACT_BEFORE_ARGS= # empty EXTRACT_AFTER_ARGS= . NO_ARCH= yes NO_BUILD= yes -DATADIR= ${PREFIX}/share/cpucontrol NO_WRKSUBDIR= yes PLIST_FILES= ${DISTFILES:S/^/${DATADIR}\//g:C/\?.*//} diff --git a/sysutils/cpu-microcode-amd/distinfo b/sysutils/cpu-microcode-amd/distinfo new file mode 100644 index 000000000000..63bc387788f3 --- /dev/null +++ b/sysutils/cpu-microcode-amd/distinfo @@ -0,0 +1,11 @@ +TIMESTAMP = 1691693284 +SHA256 (cpu-microcode-amd/microcode_amd.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 8a9d9e8b788e31e61cddc03cb1eeab5db99e0f667128943ff0780e6437d2e43e +SIZE (cpu-microcode-amd/microcode_amd.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 12684 +SHA256 (cpu-microcode-amd/microcode_amd_fam15h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 9d4a668410e72a4bdb86dc23e4261eca04daa83456ada02504115223f356981a +SIZE (cpu-microcode-amd/microcode_amd_fam15h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 7876 +SHA256 (cpu-microcode-amd/microcode_amd_fam16h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = e02ad653b39c975d6c52674b50f23727bb6706bab7b4e5b391a4ce229e7ff121 +SIZE (cpu-microcode-amd/microcode_amd_fam16h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 3510 +SHA256 (cpu-microcode-amd/microcode_amd_fam17h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 1eeaf4c86fb72a0f0e9d4ff28d3213d264ecb47a8dce8bcbd85addd0cfd999bb +SIZE (cpu-microcode-amd/microcode_amd_fam17h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 12924 +SHA256 (cpu-microcode-amd/microcode_amd_fam19h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 2e503e1381154297e30f7fdc83a639d81b02196ff965f63427652709423fdcc4 +SIZE (cpu-microcode-amd/microcode_amd_fam19h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 16804 diff --git a/sysutils/devcpu-data-amd/files/LICENSE.amd-ucode b/sysutils/cpu-microcode-amd/files/LICENSE.amd-ucode similarity index 100% rename from sysutils/devcpu-data-amd/files/LICENSE.amd-ucode rename to sysutils/cpu-microcode-amd/files/LICENSE.amd-ucode diff --git a/sysutils/devcpu-data-amd/pkg-descr b/sysutils/cpu-microcode-amd/pkg-descr similarity index 100% rename from sysutils/devcpu-data-amd/pkg-descr rename to sysutils/cpu-microcode-amd/pkg-descr diff --git a/sysutils/cpu-microcode-amd/pkg-message b/sysutils/cpu-microcode-amd/pkg-message new file mode 100644 index 000000000000..a7d69e95a216 --- /dev/null +++ b/sysutils/cpu-microcode-amd/pkg-message @@ -0,0 +1,8 @@ +[ +{ type: install + message: < diff --git a/sysutils/devcpu-data/files/microcode_update.in b/sysutils/cpu-microcode-rc/files/microcode_update.in similarity index 100% rename from sysutils/devcpu-data/files/microcode_update.in rename to sysutils/cpu-microcode-rc/files/microcode_update.in diff --git a/sysutils/devcpu-data/files/pkg-message.in b/sysutils/cpu-microcode-rc/files/pkg-message.in similarity index 65% rename from sysutils/devcpu-data/files/pkg-message.in rename to sysutils/cpu-microcode-rc/files/pkg-message.in index c2860f035372..8984694e5476 100644 --- a/sysutils/devcpu-data/files/pkg-message.in +++ b/sysutils/cpu-microcode-rc/files/pkg-message.in @@ -1,15 +1,14 @@ [ { type: install message: < diff --git a/sysutils/cpu-microcode/pkg-descr b/sysutils/cpu-microcode/pkg-descr new file mode 100644 index 000000000000..c33ddc2e7b1e --- /dev/null +++ b/sysutils/cpu-microcode/pkg-descr @@ -0,0 +1,4 @@ +The cpu-microcode meta-package depends on microcode update packages +available for all CPU vendors. Users who wish to install CPU microcode +updates from a specific vendor can directly install cpu-microcode-amd or +cpu-microcode-intel. diff --git a/sysutils/devcpu-data-amd/distinfo b/sysutils/devcpu-data-amd/distinfo deleted file mode 100644 index ce7f67a2e0d0..000000000000 --- a/sysutils/devcpu-data-amd/distinfo +++ /dev/null @@ -1,11 +0,0 @@ -TIMESTAMP = 1690217806 -SHA256 (devcpu-data-amd/microcode_amd.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 8a9d9e8b788e31e61cddc03cb1eeab5db99e0f667128943ff0780e6437d2e43e -SIZE (devcpu-data-amd/microcode_amd.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 12684 -SHA256 (devcpu-data-amd/microcode_amd_fam15h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 9d4a668410e72a4bdb86dc23e4261eca04daa83456ada02504115223f356981a -SIZE (devcpu-data-amd/microcode_amd_fam15h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 7876 -SHA256 (devcpu-data-amd/microcode_amd_fam16h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = e02ad653b39c975d6c52674b50f23727bb6706bab7b4e5b391a4ce229e7ff121 -SIZE (devcpu-data-amd/microcode_amd_fam16h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 3510 -SHA256 (devcpu-data-amd/microcode_amd_fam17h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 1eeaf4c86fb72a0f0e9d4ff28d3213d264ecb47a8dce8bcbd85addd0cfd999bb -SIZE (devcpu-data-amd/microcode_amd_fam17h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 12924 -SHA256 (devcpu-data-amd/microcode_amd_fam19h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 2e503e1381154297e30f7fdc83a639d81b02196ff965f63427652709423fdcc4 -SIZE (devcpu-data-amd/microcode_amd_fam19h.bin?id=0bc3126c9cfa0b8c761483215c25382f831a7c6f) = 16804 diff --git a/sysutils/devcpu-data-amd/pkg-message b/sysutils/devcpu-data-amd/pkg-message deleted file mode 100644 index 8d00883e6b4f..000000000000 --- a/sysutils/devcpu-data-amd/pkg-message +++ /dev/null @@ -1,7 +0,0 @@ -[ -{ type: install - message: < diff --git a/sysutils/devcpu-data/distinfo b/sysutils/devcpu-data/distinfo deleted file mode 100644 index 50bdb09a4d73..000000000000 --- a/sysutils/devcpu-data/distinfo +++ /dev/null @@ -1 +0,0 @@ -TIMESTAMP = 1644363016