From patchwork Fri Apr 5 10:03:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 42018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B532CC67861 for ; Fri, 5 Apr 2024 10:04:16 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by mx.groups.io with SMTP id smtpd.web11.7339.1712311454121801096 for ; Fri, 05 Apr 2024 03:04:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DS2AvPSe; spf=pass (domain: bootlin.com, ip: 217.70.183.198, mailfrom: joaomarcos.costa@bootlin.com) Received: by mail.gandi.net (Postfix) with ESMTPSA id A0B77C0004; Fri, 5 Apr 2024 10:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712311452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cVDwgu7r9HbioqPx0SK4U59cmm/UphmWBHbrHSKwS1g=; b=DS2AvPSeTD9m9q4aHRISLWpk4yhxohm12j5JPSfCexMPzryQ2xOtUZGuklR+H3x5CsCv+t Y5N4AMgX04VFUsux5/MeTKxb2NaKXsD8wRDSo5BhcjDxNB+3ts2yDuhJOGGLyxYWDx6VaA YIoQBgDG8uN0Bo0XZqU0UKl4AURs1i4whSvzmCm9lcUbMTdo5JMv2ZmlevV7Bd57PUIJfk 59P2UDMuG01xUPuRVQcrGWrgjuiefumQFTzSzVhIAsMVvhN80k28bqnST0P+x6bms9aDLw n6wxF6xzK67WaVnRaae0fbFUoUqvrQscRZdJbzg+i7zvpAm7+vU0wvTMhFepGg== From: joaomarcos.costa@bootlin.com To: docs@lists.yoctoproject.org Cc: thomas.petazzoni@bootlin.com, michael.opdenacker@bootlin.com, Joao Marcos Costa Subject: [PATCH v1 1/3] classes: document new go-vendor class Date: Fri, 5 Apr 2024 12:03:52 +0200 Message-ID: <20240405100355.2268926-2-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> References: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: joaomarcos.costa@bootlin.com List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 05 Apr 2024 10:04:16 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/5069 From: Joao Marcos Costa A reference to this class in the release notes will be added in a follow-up commit. Signed-off-by: Joao Marcos Costa Reviewed-by: Michael Opdenacker --- documentation/ref-manual/classes.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 8612128f7..272df0dfb 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -939,6 +939,19 @@ The :ref:`ref-classes-go-mod` class allows to use Go modules, and inherits the See the associated :term:`GO_WORKDIR` variable. +.. _ref-classes-go-vendor: + +``go-vendor`` +============= + +The :ref:`ref-classes-go-vendor` class implements support to offline builds, +also known as Go vendoring. In such scenario, the module dependencias are +downloaded during fetch task rather than when modules are imported, thus being +coherent with Yocto's concept of fetching every source beforehand. + +The dependencies are unpacked into the modules' ``vendor`` directory, where a +manifest file is generated. + .. _ref-classes-gobject-introspection: ``gobject-introspection`` From patchwork Fri Apr 5 10:03:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 42017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 902F5CD1296 for ; Fri, 5 Apr 2024 10:04:16 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by mx.groups.io with SMTP id smtpd.web10.7369.1712311455434624951 for ; Fri, 05 Apr 2024 03:04:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VAuWmkxc; spf=pass (domain: bootlin.com, ip: 217.70.183.198, mailfrom: joaomarcos.costa@bootlin.com) Received: by mail.gandi.net (Postfix) with ESMTPSA id DE3D3C0009; Fri, 5 Apr 2024 10:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712311454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=km7miWmkZxGhmMhtwi6hRh80ehh1/1+AGvrEknxljNo=; b=VAuWmkxcEEZuoiB68JG6bj1iAOV6hdfbQ1OCGuTV3rpIMylDS9Ox85qRvHLmGFiUig3yEL aIXRoe+NviUoitey4T+Rn0KJzInLPDZ7qdEXXbGmRtsjNgzd3r8KE1ueDymbY4uLEzgIK4 hjvS0tGbyM2fpheXWTffML/lduNWTw2BnXL8f8VDl5v15HTsLOHOw/vn+BNiZJ4y4yKpO7 P9EZURiaEXm9G5RnpDjsmihr3Dm5hC6YpJB92Kslcttskq/QGPiGbLjEEW0FOWGCfLyd4J biyU31lVsVuJz1uSdQRiSx2RK9bYC8Wg5/yrx/lLHl11C8nUzqWuNZ6+GSrKkQ== From: joaomarcos.costa@bootlin.com To: docs@lists.yoctoproject.org Cc: thomas.petazzoni@bootlin.com, michael.opdenacker@bootlin.com, Joao Marcos Costa Subject: [PATCH v1 2/3] release-notes: add changes to Go language Date: Fri, 5 Apr 2024 12:03:53 +0200 Message-ID: <20240405100355.2268926-3-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> References: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: joaomarcos.costa@bootlin.com List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 05 Apr 2024 10:04:16 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/5070 From: Joao Marcos Costa Mention the new class 'go-vendor' in 'Miscellaneous changes'. Signed-off-by: Joao Marcos Costa --- documentation/migration-guides/release-notes-5.0.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/migration-guides/release-notes-5.0.rst b/documentation/migration-guides/release-notes-5.0.rst index fa18afe39..8df95ca21 100644 --- a/documentation/migration-guides/release-notes-5.0.rst +++ b/documentation/migration-guides/release-notes-5.0.rst @@ -64,6 +64,10 @@ New Features / Enhancements in 5.0 - ``systemd-boot`` can, from now on, be compiled as ``native``, thus providing ``ukify`` tool to build UKI images. + - The :ref:`ref-classes-go-vendor` class was added to support offline builds + (i.e., vendoring). It can also handle modules from the same repository, + taking into account their versions. + Known Issues in 5.0 ~~~~~~~~~~~~~~~~~~~ From patchwork Fri Apr 5 10:03:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 42019 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72E43CD11C2 for ; Fri, 5 Apr 2024 10:04:26 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by mx.groups.io with SMTP id smtpd.web10.7370.1712311456337904285 for ; Fri, 05 Apr 2024 03:04:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TmwP0A3n; spf=pass (domain: bootlin.com, ip: 217.70.183.198, mailfrom: joaomarcos.costa@bootlin.com) Received: by mail.gandi.net (Postfix) with ESMTPSA id C7493C0002; Fri, 5 Apr 2024 10:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712311455; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VdGfexjqYpB3XiYTa0uKJDzyW1Tpby2InGYH++9ZzMU=; b=TmwP0A3nU20ufsNYxwYZrqrSs44gAfgI4hpPAV7055Z4KgxCH0yQiJNOw578J3w+drT54c hXdmLhYmYL6IXEcnsmLQELd2WKUIi9UlAPc5DnELZAPExbimyDAsR1B/uOv211BoPbF+VC PMejbhxRzIEPqkyy8spV9Lp8zVd4Cqv7wfEW/1wGZG6mWFbwvyMjEHE8ntwJx9TsZQ7cau fyboydLTFYFUW6kUt1E3fG21rXxVE6GT1qVxUCWvRTMFroeJ4AqSCttkP9CEcFy05V/Yed tYDH3ZCshVAAxVVomKYIXL84aKS5zIWsCRw0HfEJT8/9SVj/SovdFizhKh2eKQ== From: joaomarcos.costa@bootlin.com To: docs@lists.yoctoproject.org Cc: thomas.petazzoni@bootlin.com, michael.opdenacker@bootlin.com, Joao Marcos Costa Subject: [PATCH v1 3/3] migration: add Go language changes Date: Fri, 5 Apr 2024 12:03:54 +0200 Message-ID: <20240405100355.2268926-4-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> References: <20240405100355.2268926-1-joaomarcos.costa@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: joaomarcos.costa@bootlin.com List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 05 Apr 2024 10:04:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/5071 From: Joao Marcos Costa Signed-off-by: Joao Marcos Costa --- documentation/migration-guides/migration-5.0.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/migration-guides/migration-5.0.rst b/documentation/migration-guides/migration-5.0.rst index a9075c298..902cc11bf 100644 --- a/documentation/migration-guides/migration-5.0.rst +++ b/documentation/migration-guides/migration-5.0.rst @@ -52,6 +52,10 @@ See :ref:`all supported distributions `. Go language changes ~~~~~~~~~~~~~~~~~~~ +The ``linkmode`` flag was dropped from ``GO_LDFLAGS`` for ``nativesdk`` and +``cross-canadian``. Also, dynamic linking was disabled for the whole set of +(previously) supported architectures in the ``goarch`` class. + .. _migration-5.0-systemd-changes: systemd changes