Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from buildroot:master #356

Merged
merged 8 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .checkpackageignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ board/lego/ev3/post-image.sh Shellcheck
board/lemaker/bananapro/patches/linux/0001-arch-arm-boot-dts-sun7i-a20-bananapro.dts-disable-00.patch lib_patch.Upstream
board/lemaker/bananapro/post-build.sh Shellcheck
board/lemaker/bananapro/post-image.sh Shellcheck
board/mender/x86_64/post-image-efi.sh lib_shellscript.ConsecutiveEmptyLines
board/minnowboard/post-build.sh Shellcheck
board/nexbox/a95x/post-build.sh Shellcheck
board/nexbox/a95x/post-image.sh Shellcheck
Expand Down
8 changes: 4 additions & 4 deletions board/mender/x86_64/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
DEVICE_TYPE="buildroot-x86_64"
ARTIFACT_NAME="1.0"

function parse_args {
parse_args() {
local o O opts
o='a:o:d:'
O='artifact-name:,data-part-size:,device-type:'
Expand All @@ -28,8 +28,8 @@ function parse_args {
done
}

# Create a persistent directory to mount the data partition at.
function mender_fixup {
# Create a persistent directory to mount the data partition at.
mender_fixup() {
pushd "${TARGET_DIR}"
if [[ -L var/lib/mender ]]; then
rm var/lib/mender
Expand All @@ -44,7 +44,7 @@ function mender_fixup {
popd
}

function main {
main() {
parse_args "${@}"
mender_fixup
echo "device_type=${DEVICE_TYPE}" > "${TARGET_DIR}/etc/mender/device_type"
Expand Down
13 changes: 5 additions & 8 deletions board/mender/x86_64/post-image-efi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ DATA_PART_SIZE="32M"
DEVICE_TYPE="buildroot-x86_64"
ARTIFACT_NAME="1.0"


# Parse arguments.
function parse_args {
parse_args() {
local o O opts
o='a:o:d:'
O='artifact-name:,data-part-size:,device-type:'
Expand All @@ -32,7 +31,7 @@ function parse_args {
}

# Create the data partition
function make_data_partition {
make_data_partition() {
"${HOST_DIR}/sbin/mkfs.ext4" \
-F \
-r 1 \
Expand All @@ -42,9 +41,8 @@ function make_data_partition {
"${BINARIES_DIR}/data-part.ext4" "${DATA_PART_SIZE}"
}


# Create a mender image.
function generate_mender_image {
generate_mender_image() {
echo "Creating ${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender"
"${HOST_DIR}/bin/mender-artifact" \
--compression lzma \
Expand All @@ -55,13 +53,12 @@ function generate_mender_image {
-o "${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender"
}


function generate_image {
generate_image() {
sh support/scripts/genimage.sh -c "${BOARD_DIR}/genimage-efi.cfg"
}

# Main function.
function main {
main() {
parse_args "${@}"
make_data_partition
generate_image
Expand Down
5 changes: 4 additions & 1 deletion package/bluez5_utils/bluez5_utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ BLUEZ5_UTILS_CONF_OPTS = \
--disable-lsan \
--disable-ubsan \
--disable-pie \
--disable-asha \
--with-dbusconfdir=/etc

ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_OBEX),y)
Expand Down Expand Up @@ -68,15 +67,19 @@ endif
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO),y)
BLUEZ5_UTILS_CONF_OPTS += \
--enable-a2dp \
--enable-asha \
--enable-avrcp \
--enable-bap \
--enable-bass \
--enable-mcp \
--enable-vcp
else
BLUEZ5_UTILS_CONF_OPTS += \
--disable-a2dp \
--disable-asha \
--disable-avrcp \
--disable-bap \
--disable-bass \
--disable-mcp \
--disable-vcp
endif
Expand Down
2 changes: 1 addition & 1 deletion package/git/git.hash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From: https://www.kernel.org/pub/software/scm/git/sha256sums.asc
sha256 7f123462a28b7ca3ebe2607485f7168554c2b10dfc155c7ec46300666ac27f95 git-2.46.0.tar.xz
sha256 1ce114da88704271b43e027c51e04d9399f8c88e9ef7542dae7aebae7d87bc4e git-2.47.0.tar.xz
# Locally calculated
sha256 5b2198d1645f767585e8a88ac0499b04472164c0d2da22e75ecf97ef443ab32e COPYING
sha256 1922f45d2c49e390032c9c0ba6d7cac904087f7cec51af30c2b2ad022ce0e76a LGPL-2.1
2 changes: 1 addition & 1 deletion package/git/git.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

GIT_VERSION = 2.46.0
GIT_VERSION = 2.47.0
GIT_SOURCE = git-$(GIT_VERSION).tar.xz
GIT_SITE = $(BR2_KERNEL_MIRROR)/software/scm/git
GIT_LICENSE = GPL-2.0, LGPL-2.1+
Expand Down
14 changes: 7 additions & 7 deletions package/go/go-bin/go-bin.hash
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# sha256 checksum from https://go.dev/dl/
sha256 66432d87d85e0cfac3edffe637d5930fc4ddf5793313fe11e4a0f333023c879f go1.22.7.src.tar.gz
sha256 810e4d9f3f2f03b2f11471a9c7a32302968fc09d51f666cecacedb1055f2f873 go1.22.7.linux-386.tar.gz
sha256 fc5d49b7a5035f1f1b265c17aa86e9819e6dc9af8260ad61430ee7fbe27881bb go1.22.7.linux-amd64.tar.gz
sha256 ed695684438facbd7e0f286c30b7bc2411cfc605516d8127dc25c62fe5b03885 go1.22.7.linux-arm64.tar.gz
sha256 0fd55519819922f51d13503f2c9b1294730be7ffa0ead8dd36c0e540c2a27508 go1.22.7.linux-armv6l.tar.gz
sha256 a6441d5da40a961039ec22b0aadbc8b513f52b31bb8919c359a7e2c3c5bcf26a go1.22.7.linux-ppc64le.tar.gz
sha256 08dc28de0dafb175501b9d1623c9b11a9b734eb4b3a35c9c658cc91d4dfce3f3 go1.22.7.linux-s390x.tar.gz
sha256 df12c23ebf19dea0f4bf46a22cbeda4a3eca6f474f318390ce774974278440b8 go1.22.8.src.tar.gz
sha256 0c8e9f824bf443f51e06ac017b9ae402ea066d761b309d880dbb2ca5793db8a2 go1.22.8.linux-386.tar.gz
sha256 5f467d29fc67c7ae6468cb6ad5b047a274bae8180cac5e0b7ddbfeba3e47e18f go1.22.8.linux-amd64.tar.gz
sha256 5c616b32dab04bb8c4c8700478381daea0174dc70083e4026321163879278a4a go1.22.8.linux-arm64.tar.gz
sha256 5191e87a51a85d88edddc028ab30dfbfa2d7c37cf35d536655e7a063bfb2c9d2 go1.22.8.linux-armv6l.tar.gz
sha256 c546f27866510bf8e54e86fe6f58c705af0e894341e5572c91f197a734152c27 go1.22.8.linux-ppc64le.tar.gz
sha256 fabb3adc241474e28ae151a00e1421983deb35184d31cc76e90025b1b389f6bf go1.22.8.linux-s390x.tar.gz
sha256 2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067 LICENSE
2 changes: 1 addition & 1 deletion package/go/go-src/go-src.hash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# From https://go.dev/dl
sha256 66432d87d85e0cfac3edffe637d5930fc4ddf5793313fe11e4a0f333023c879f go1.22.7.src.tar.gz
sha256 df12c23ebf19dea0f4bf46a22cbeda4a3eca6f474f318390ce774974278440b8 go1.22.8.src.tar.gz
sha256 2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067 LICENSE
2 changes: 1 addition & 1 deletion package/go/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

GO_VERSION = 1.22.7
GO_VERSION = 1.22.8

HOST_GO_GOPATH = $(HOST_DIR)/share/go-path
HOST_GO_HOST_CACHE = $(HOST_DIR)/share/host-go-cache
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
From c8310afa42dfa598097eb0e003cef7965b5ed7be Mon Sep 17 00:00:00 2001
From: Christoph Reiter <[email protected]>
Date: Wed, 28 Aug 2024 21:26:02 +0200
Subject: [PATCH] giscanner: remove dependency on distutils.msvccompiler

It was removed with setuptools 74.0.0. Since we still depend on the
MSVCCompiler class use new_compiler() to get it some other way.

Remove any reference to MSVC9Compiler, which was for Visual Studio 2008
which we no longer support anyway.

Fixes #515

Signed-off-by: James Hilliard <[email protected]>
Upstream: https://gitlab.gnome.org/GNOME/gobject-introspection/-/commit/a2139dba59eac283a7f543ed737f038deebddc19
---
giscanner/ccompiler.py | 7 +++----
giscanner/msvccompiler.py | 14 +++++++-------
2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 2912fe0e..766c9a36 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -26,7 +26,6 @@ import tempfile
import sys
import distutils

-from distutils.msvccompiler import MSVCCompiler
from distutils.unixccompiler import UnixCCompiler
from distutils.cygwinccompiler import Mingw32CCompiler
from distutils.sysconfig import get_config_vars
@@ -167,7 +166,7 @@ class CCompiler(object):
# Now, create the distutils ccompiler instance based on the info we have.
if compiler_name == 'msvc':
# For MSVC, we need to create a instance of a subclass of distutil's
- # MSVC9Compiler class, as it does not provide a preprocess()
+ # MSVCCompiler class, as it does not provide a preprocess()
# implementation
from . import msvccompiler
self.compiler = msvccompiler.get_msvc_compiler()
@@ -453,7 +452,7 @@ class CCompiler(object):
return self.compiler.linker_exe

def check_is_msvc(self):
- return isinstance(self.compiler, MSVCCompiler)
+ return self.compiler.compiler_type == "msvc"

# Private APIs
def _set_cpp_options(self, options):
@@ -479,7 +478,7 @@ class CCompiler(object):
# macros for compiling using distutils
# get dropped for MSVC builds, so
# escape the escape character.
- if isinstance(self.compiler, MSVCCompiler):
+ if self.check_is_msvc():
macro_value = macro_value.replace('\"', '\\\"')
macros.append((macro_name, macro_value))
elif option.startswith('-U'):
diff --git a/giscanner/msvccompiler.py b/giscanner/msvccompiler.py
index 0a543982..e333a80f 100644
--- a/giscanner/msvccompiler.py
+++ b/giscanner/msvccompiler.py
@@ -19,30 +19,30 @@
#

import os
-import distutils
+from typing import Type

from distutils.errors import DistutilsExecError, CompileError
-from distutils.ccompiler import CCompiler, gen_preprocess_options
+from distutils.ccompiler import CCompiler, gen_preprocess_options, new_compiler
from distutils.dep_util import newer

# Distutil's MSVCCompiler does not provide a preprocess()
# Implementation, so do our own here.


+DistutilsMSVCCompiler: Type = type(new_compiler(compiler="msvc"))
+
+
def get_msvc_compiler():
return MSVCCompiler()


-class MSVCCompiler(distutils.msvccompiler.MSVCCompiler):
+class MSVCCompiler(DistutilsMSVCCompiler):

def __init__(self, verbose=0, dry_run=0, force=0):
- super(distutils.msvccompiler.MSVCCompiler, self).__init__()
+ super(DistutilsMSVCCompiler, self).__init__()
CCompiler.__init__(self, verbose, dry_run, force)
self.__paths = []
self.__arch = None # deprecated name
- if os.name == 'nt':
- if isinstance(self, distutils.msvc9compiler.MSVCCompiler):
- self.__version = distutils.msvc9compiler.VERSION
self.initialized = False
self.preprocess_options = None
if self.check_is_clang_cl():
--
2.34.1

12 changes: 4 additions & 8 deletions package/mender-grubenv/mender-grubenv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ MENDER_GRUBENV_LICENSE_FILES = LICENSE
# Grub2 must be built first so this package can overwrite the config files
# provided by grub.
MENDER_GRUBENV_DEPENDENCIES = grub2 util-linux
MENDER_GRUBENV_INSTALL_IMAGES = YES

MENDER_GRUBENV_MAKE_ENV = \
$(TARGET_CONFIGURE_OPTS) \
Expand All @@ -34,12 +33,13 @@ MENDER_GRUBENV_MAKE_ENV += BOOT_DIR=/boot

define MENDER_GRUBENV_INSTALL_I386_CFG
mkdir -p $(BINARIES_DIR)/boot-part/grub
cp -dpfr $(@D)/mender_grub.cfg \
cp -dpfr $(MENDER_GRUBENV_BUILDDIR)/mender_grub.cfg \
$(TARGET_DIR)/boot/grub/grub.cfg
cp -dpfr $(TARGET_DIR)/boot/grub/grub.cfg \
$(TARGET_DIR)/boot/grub-mender-grubenv \
$(BINARIES_DIR)/boot-part/
endef
MENDER_GRUBENV_TARGET_FINALIZE_HOOKS += MENDER_GRUBENV_INSTALL_I386_CFG
endif # BR2_TARGET_GRUB2_HAS_LEGACY_BOOT

ifeq ($(BR2_TARGET_GRUB2_HAS_EFI_BOOT),y)
Expand All @@ -51,13 +51,14 @@ MENDER_GRUBENV_MAKE_ENV += BOOT_DIR=/boot/EFI/BOOT

define MENDER_GRUBENV_INSTALL_EFI_CFG
mkdir -p $(BINARIES_DIR)/efi-part/EFI/BOOT
cp -dpfr $(@D)/mender_grub.cfg \
cp -dpfr $(MENDER_GRUBENV_BUILDDIR)/mender_grub.cfg \
$(TARGET_DIR)/boot/EFI/BOOT/grub.cfg
cp -dpfr $(TARGET_DIR)/boot/EFI/BOOT/grub.cfg \
$(BINARIES_DIR)/efi-part/EFI/BOOT
cp -dpfr $(TARGET_DIR)/boot/EFI/BOOT/grub-mender-grubenv \
$(BINARIES_DIR)/efi-part/
endef
MENDER_GRUBENV_TARGET_FINALIZE_HOOKS += MENDER_GRUBENV_INSTALL_EFI_CFG
endif # BR2_TARGET_GRUB2_HAS_EFI_BOOT

ifeq ($(BR2_PACKAGE_MENDER_GRUBENV)$(BR_BUILDING),yy)
Expand Down Expand Up @@ -86,9 +87,4 @@ define MENDER_GRUBENV_INSTALL_TARGET_CMDS
echo 'ENV_DIR=/boot/grub-mender-grubenv' > $(TARGET_DIR)/etc/mender_grubenv.config
endef

define MENDER_GRUBENV_INSTALL_IMAGES_CMDS
$(MENDER_GRUBENV_INSTALL_I386_CFG)
$(MENDER_GRUBENV_INSTALL_EFI_CFG)
endef

$(eval $(generic-package))
7 changes: 5 additions & 2 deletions package/wine/wine.hash
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# From:
# https://dl.winehq.org/wine/source/9.x/sha512sums.asc
sha512 530219c6a337f2996eac92d644ab603528b82cc6136cc37c1e6aa736d418f33c6f4b0d54f3537b04bceaf4487d84abcf926a2f5e9536ed4e966c4fe63c5b6ddd wine-9.19.tar.xz
# Locally calculated after checking pgp signature
sha256 6ec8fb6f2c72d576cb11f52b2f8d59af64404802154651d122b98466d91dc847 wine-8.0.2.tar.xz
sha256 2c13a0c3f31f25a54d415d86785a1ad46ef8a07ae973b6b699345a45206ac015 wine-9.19.tar.xz
# Locally calculated
sha256 e237fa56668030e928551ddd60f05df5fe957f75eab874bbd017e085ed722e7c COPYING.LIB
sha256 793d045546467c8f49e35fbd6e02859e57e78f8bb53571e8200bffd0e966dfa8 LICENSE
sha256 51433d87540ee2f30e3cff986e00e1477880002bf993106a13775ed60d4e0af4 LICENSE
Loading