Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
563852c436 | ||
|
|
bb5b5055ee | ||
|
|
ab80a90f62 | ||
|
|
4ff38fd598 | ||
|
|
2bf7b3d1dc | ||
|
|
3e34505ce0 | ||
|
|
6c8de012ae | ||
|
|
49568ff31a | ||
|
|
6c47fca27e | ||
|
|
02f38f4bab | ||
|
|
b831b53878 | ||
|
|
9ad5e23c76 | ||
|
|
ddd2738e01 | ||
|
|
284efa0c16 | ||
|
|
cd0e1ef28d | ||
|
|
63e6f819b9 | ||
|
|
552ba600ee | ||
|
|
a41d3d1807 | ||
|
|
a5bf4d7b80 | ||
|
|
b015ce70f5 | ||
|
|
2afda6a821 | ||
|
|
e0232509ec | ||
|
|
79723c8058 | ||
|
|
6db6c6edfd | ||
|
|
8472776a87 | ||
|
|
02e27152e6 | ||
|
|
73f2172fd6 | ||
|
|
bec0de73ac | ||
|
|
4f2555ecc5 | ||
|
|
5f79065db5 | ||
|
|
4d1a858552 | ||
|
|
8c3836ac8f | ||
|
|
6195a3db77 | ||
|
|
8943a028d0 | ||
|
|
845a663f99 | ||
|
|
130f0ce286 | ||
|
|
fa3c41f3c9 | ||
|
|
c61c662693 | ||
|
|
44ebe8ee2b | ||
|
|
cd42b188bf | ||
|
|
8952252da7 | ||
|
|
0b26c8012e | ||
|
|
48e79150ba | ||
|
|
f35c5ad48c | ||
|
|
ed2f4b2add | ||
|
|
5001c63d7f | ||
|
|
625d8b8706 | ||
|
|
1b73bbbf71 | ||
|
|
e21e65d49e | ||
|
|
d5b713c266 | ||
|
|
59256d02f8 | ||
|
|
1e0b9fb7cb | ||
|
|
7babcd8937 | ||
|
|
985d126cd7 | ||
|
|
687de602f5 | ||
|
|
f956d40c81 | ||
|
|
d81cd0b488 | ||
|
|
9a3670d7d8 | ||
|
|
91dcb8210c | ||
|
|
ae27b61496 | ||
|
|
d04f68826f | ||
|
|
22e818e66b | ||
|
|
6239e449d1 | ||
|
|
8e382f9070 | ||
|
|
60973b0e52 | ||
|
|
026ad00c99 | ||
|
|
ab3491e02e | ||
|
|
673e83b117 | ||
|
|
f15c0686ee | ||
|
|
d184ae6720 | ||
|
|
9ffb14ced9 | ||
|
|
35069b0ab5 |
+4
-10
@@ -45,7 +45,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
|
||||
@@ -282,12 +281,11 @@ package/am33x-cm3/0004-Makefile-add-fno-builtin.patch lib_patch.Upstream
|
||||
package/am33x-cm3/S93-am335x-pm-firmware-load lib_sysv.Variables
|
||||
package/android-tools/0001-Fix-makefiles-for-out-of-tree-build.patch lib_patch.Upstream
|
||||
package/android-tools/0002-Fix-adbd-for-non-Ubuntu-systems.patch lib_patch.Upstream
|
||||
package/android-tools/0003-Fix-build-issue-with-uclibc.patch lib_patch.Upstream
|
||||
package/android-tools/0004-Fix-build-issue-with-musl.patch lib_patch.Upstream
|
||||
package/android-tools/0005-Use-pkgconf-to-get-libs-deps.patch lib_patch.Upstream
|
||||
package/android-tools/0006-fix-big-endian-build.patch lib_patch.Upstream
|
||||
package/android-tools/0007-include-cdefs-h-when-needed.patch lib_patch.Upstream
|
||||
package/android-tools/0008-Include-sysmacros.h-to-compile-with-glibc-2.28.patch lib_patch.Sob lib_patch.Upstream
|
||||
package/android-tools/0005-makefiles-use-pkgconf-to-get-libs-deps.patch lib_patch.Upstream
|
||||
package/android-tools/0006-Fix-build-on-big-endian-systems.patch lib_patch.Upstream
|
||||
package/android-tools/0007-Include-cdefs.h-wherever-it-is-needed.patch lib_patch.Upstream
|
||||
package/android-tools/0008-usb_linux.c-fix-minor-major-build-failure-due-to-gli.patch lib_patch.Upstream
|
||||
package/android-tools/0009-Fix-makefiles-for-out-of-tree-ext4_utils-build.patch lib_patch.Upstream
|
||||
package/android-tools/0010-adb-added-patch-for-openssl-1.1.0-compatibility.patch lib_patch.Upstream
|
||||
package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch lib_patch.Upstream
|
||||
@@ -455,8 +453,6 @@ package/dvdrw-tools/0002-Include-sysmacros.h-to-compile-with-newer-gcc.patch lib
|
||||
package/earlyoom/0001-main.c-fix-build-with-kernel-4.3.patch lib_patch.Upstream
|
||||
package/earlyoom/S02earlyoom Shellcheck lib_sysv.Indent
|
||||
package/ebtables/0001-replace-ebtables-save-perl-script-with-bash.patch lib_patch.Upstream
|
||||
package/ebtables/0002-ebtables.h-restore-KERNEL_64_USERSPACE_32-checks.patch lib_patch.Upstream
|
||||
package/ebtables/0003-configure.ac-add-option-enable-kernel-64-userland-32.patch lib_patch.Upstream
|
||||
package/ecryptfs-utils/0001-musl.patch lib_patch.Upstream
|
||||
package/ecryptfs-utils/0002-openssl110.patch lib_patch.Upstream
|
||||
package/ecryptfs-utils/0003-fix-parallel-build-issue.patch lib_patch.Upstream
|
||||
@@ -1396,8 +1392,6 @@ package/x11r7/xdriver_xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-ser
|
||||
package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch lib_patch.Upstream
|
||||
package/x11r7/xserver_xorg-server/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream
|
||||
package/x11r7/xserver_xorg-server/S40xorg Shellcheck lib_sysv.Variables
|
||||
package/x11vnc/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch lib_patch.Upstream
|
||||
package/x11vnc/0002-scan-limit-access-to-shared-memory-segments-to-current-user.patch lib_patch.Upstream
|
||||
package/xen/0001-9pfs-include-linux-limits.h-for-XATTR_SIZE_MAX.patch lib_patch.Upstream
|
||||
package/xen/0002-Fix-build-with-64-bits-time_t.patch lib_patch.Upstream
|
||||
package/xen/0003-libs-light-fix-tv_sec-printf-format.patch lib_patch.Upstream
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
2024.08.3, released December 8th, 2024
|
||||
|
||||
Important / security related fixes.
|
||||
|
||||
Defconfigs: fix mender_x86_64_efi_defconfig build on setups
|
||||
where /bin/sh is not bash.
|
||||
|
||||
Updated/fixed packages: alsa-lib, android-tools, bats-core,
|
||||
bluez-alsa, bmap-tools, boost, checksec, ebtables, expat, fbv,
|
||||
ffmpeg, foot, frr, gnuplot, gnutls, intel-microcode, irssi,
|
||||
libcurl, libgit2, libkrb5, libmodbus, libpng, libvpl,
|
||||
linux-pam, linux-tools, lmbench, mbedtls, mosquitto, musl,
|
||||
musl-compat-headers, nfs-utils, ntp, php, picotool,
|
||||
postgresql, procps-ng, python-psycopg2, python-sip, qt6base,
|
||||
quagga, rt-tests, sexpect, sshguard, systemd, tiff, x11vnc
|
||||
|
||||
Issues resolved:
|
||||
- procps-ng: builderror in 2024.08
|
||||
https://gitlab.com/buildroot.org/buildroot/-/issues/38
|
||||
- fbv package download link is broken in long term support branch
|
||||
https://gitlab.com/buildroot.org/buildroot/-/issues/73
|
||||
|
||||
2024.08.2, released November 14th, 2024
|
||||
|
||||
Important / security related fixes.
|
||||
|
||||
@@ -963,7 +963,7 @@ config BR2_FORTIFY_SOURCE_2
|
||||
# gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164
|
||||
depends on !BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_GCC_AT_LEAST_6
|
||||
help
|
||||
This option sets _FORTIFY_SOURCES to 2 and some more
|
||||
This option sets _FORTIFY_SOURCE to 2 and some more
|
||||
checking is added, but some conforming programs might fail.
|
||||
Also adds checks at run-time (detected buffer overflow
|
||||
terminates the program)
|
||||
@@ -972,7 +972,7 @@ config BR2_FORTIFY_SOURCE_3
|
||||
bool "Extended"
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_12
|
||||
help
|
||||
This option sets _FORTIFY_SOURCES to 3 and even more
|
||||
This option sets _FORTIFY_SOURCE to 3 and even more
|
||||
checking is added compared to level 2. Extends checks at
|
||||
run-time that can introduce an additional performance
|
||||
overhead.
|
||||
|
||||
+3
-66
@@ -278,18 +278,6 @@ F: package/python-bottle/
|
||||
F: package/sqlcipher/
|
||||
F: package/stress/
|
||||
|
||||
N: Asaf Kahlon <asafka7@gmail.com>
|
||||
F: package/collectd/
|
||||
F: package/libfuse3/
|
||||
F: package/libuv/
|
||||
F: package/python*
|
||||
F: package/snmpclitools/
|
||||
F: package/spdlog/
|
||||
F: package/uftp/
|
||||
F: package/uftrace/
|
||||
F: package/uvw/
|
||||
F: package/zeromq/
|
||||
|
||||
N: Ash Charles <ashcharles@gmail.com>
|
||||
F: package/pru-software-support/
|
||||
F: package/ti-cgt-pru/
|
||||
@@ -1821,6 +1809,7 @@ F: support/testing/tests/package/test_acpica/
|
||||
F: support/testing/tests/package/test_apache.py
|
||||
F: support/testing/tests/package/test_attr.py
|
||||
F: support/testing/tests/package/test_audio_codec_base.py
|
||||
F: support/testing/tests/package/test_audit.py
|
||||
F: support/testing/tests/package/test_bc.py
|
||||
F: support/testing/tests/package/test_bcc.py
|
||||
F: support/testing/tests/package/test_bcc/
|
||||
@@ -1941,6 +1930,7 @@ F: support/testing/tests/package/test_python_spake2.py
|
||||
F: support/testing/tests/package/test_python_sympy.py
|
||||
F: support/testing/tests/package/test_rdma_core.py
|
||||
F: support/testing/tests/package/test_rdma_core/
|
||||
F: support/testing/tests/package/test_rrdtool.py
|
||||
F: support/testing/tests/package/test_rt_tests.py
|
||||
F: support/testing/tests/package/test_screen.py
|
||||
F: support/testing/tests/package/test_sed.py
|
||||
@@ -2082,11 +2072,6 @@ F: package/python-huepy/
|
||||
F: package/python-tqdm/
|
||||
F: package/rtl8189es/
|
||||
|
||||
N: Louis-Paul Cordier <lpdev@cordier.org>
|
||||
F: package/intel-gmmlib/
|
||||
F: package/intel-mediadriver/
|
||||
F: package/intel-mediasdk/
|
||||
|
||||
N: Luca Ceresoli <luca.ceresoli@bootlin.com>
|
||||
F: board/olimex/a20_olinuxino/
|
||||
F: board/zynq/
|
||||
@@ -2475,7 +2460,7 @@ F: package/dbus-broker/
|
||||
F: package/systemd/
|
||||
F: package/tcf-agent/
|
||||
|
||||
N: Yu Chien Peter Lin <peterlin@andestech.com>
|
||||
N: Leo Yu-Chi Liang <ycliang@andestech.com>
|
||||
F: board/andes
|
||||
F: configs/andes_ae350_45_defconfig
|
||||
F: package/kmon/
|
||||
@@ -3309,54 +3294,6 @@ F: package/casync/
|
||||
F: package/gloox/
|
||||
F: package/tpm2-pkcs11/
|
||||
|
||||
N: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
F: fs/squashfs/
|
||||
F: package/asterisk/
|
||||
F: package/cegui/
|
||||
F: package/dahdi-linux/
|
||||
F: package/dahdi-tools/
|
||||
F: package/dbus-broker/
|
||||
F: package/dtc/
|
||||
F: package/dtv-scan-tables/
|
||||
F: package/freerdp/
|
||||
F: package/keyutils/
|
||||
F: package/libbsd/
|
||||
F: package/libedit/
|
||||
F: package/libgsm/
|
||||
F: package/libiberty/
|
||||
F: package/libinput/
|
||||
F: package/libiscsi/
|
||||
F: package/libpri/
|
||||
F: package/libseccomp/
|
||||
F: package/libss7/
|
||||
F: package/linux-firmware/
|
||||
F: package/linux-tools/
|
||||
F: package/matchbox*
|
||||
F: package/mesa3d-headers/
|
||||
F: package/nbd/
|
||||
F: package/nut/
|
||||
F: package/nvidia-driver/
|
||||
F: package/python-pyparsing/
|
||||
F: package/pkg-download.mk
|
||||
F: package/pkg-waf.mk
|
||||
F: package/slirp/
|
||||
F: package/snappy/
|
||||
F: package/spice/
|
||||
F: package/spice-protocol/
|
||||
F: package/systemd/
|
||||
F: package/systemd-bootchart/
|
||||
F: package/tmux/
|
||||
F: package/tvheadend/
|
||||
F: package/usbredir/
|
||||
F: package/vde2/
|
||||
F: package/w_scan/
|
||||
F: package/wayland/
|
||||
F: package/weston/
|
||||
F: package/wtfutil/
|
||||
F: package/zisofs-tools/
|
||||
F: support/download/
|
||||
F: support/testing/tests/graphics_base.py
|
||||
|
||||
N: Yann E. MORIN <yann.morin@orange.com>
|
||||
F: .editorconfig
|
||||
F: package/gpsd/
|
||||
|
||||
@@ -92,9 +92,9 @@ all:
|
||||
.PHONY: all
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2024.08.2
|
||||
export BR2_VERSION := 2024.08.3
|
||||
# Actual time the release is cut (for reproducible builds)
|
||||
BR2_VERSION_EPOCH = 1729431000
|
||||
BR2_VERSION_EPOCH = 1733673000
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
@@ -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:'
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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:'
|
||||
@@ -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 \
|
||||
@@ -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 \
|
||||
@@ -55,13 +53,12 @@ function generate_mender_image {
|
||||
-o "${BINARIES_DIR}/${DEVICE_TYPE}-${ARTIFACT_NAME}.mender"
|
||||
}
|
||||
|
||||
|
||||
function generate_image {
|
||||
sh support/scripts/genimage.sh -c "${BOARD_DIR}/genimage-efi.cfg"
|
||||
generate_image() {
|
||||
support/scripts/genimage.sh -c "${BOARD_DIR}/genimage-efi.cfg"
|
||||
}
|
||||
|
||||
# Main function.
|
||||
function main {
|
||||
main() {
|
||||
parse_args "${@}"
|
||||
make_data_partition
|
||||
generate_image
|
||||
|
||||
+2
-2
@@ -42,8 +42,8 @@ Emulation in qemu (BIOS)
|
||||
1. Edit grub-bios.cfg
|
||||
|
||||
Since the driver will show up in the virtual machine as /dev/vda,
|
||||
change board/pc/grub-bios.cfg to use root=/dev/vda2 instead of
|
||||
root=/dev/sda2. Then rebuild grub2 and the image.
|
||||
change board/pc/grub-bios.cfg to use root=/dev/vda1 instead of
|
||||
root=/dev/sda1. Then rebuild grub2 and the image.
|
||||
|
||||
2. Run the emulation with:
|
||||
|
||||
|
||||
@@ -101,12 +101,14 @@ Flashing boot.bin:
|
||||
|
||||
KD240 / KR260 Flashing Instructions:
|
||||
Flashing u-boot.itb:
|
||||
$ usb start
|
||||
$ sf probe
|
||||
$ fatload usb 0 0x1000000 u-boot.itb
|
||||
$ sf erase 0x280000 +$filesize
|
||||
$ sf write 0x1000000 0x280000 $filesize
|
||||
|
||||
Flashing boot.bin:
|
||||
$ usb start
|
||||
$ sf probe
|
||||
$ fatload usb 0 0x1000000 boot.bin
|
||||
$ sf erase 0x200000 +$filesize
|
||||
|
||||
+15
-15
@@ -10,20 +10,20 @@ Notes on using Grub2 for BIOS-based platforms
|
||||
is enough free space *before* the first partition to
|
||||
store Grub2. Leaving 1 MB of free space is safe.
|
||||
3. Setup loop device and loop partitions
|
||||
sudo losetup -f disk.img
|
||||
sudo partx -a /dev/loop0
|
||||
loop_dev=$(sudo losetup -f disk.img)
|
||||
sudo partx -a "$loop_dev"
|
||||
4. Prepare the root partition
|
||||
sudo mkfs.ext3 -L root /dev/loop0p1
|
||||
sudo mount /dev/loop0p1 /mnt
|
||||
sudo mkfs.ext3 -L root "${loop_dev}p1"
|
||||
sudo mount "${loop_dev}p1" /mnt
|
||||
sudo tar -C /mnt -xf output/images/rootfs.tar
|
||||
sudo umount /mnt
|
||||
5. Install Grub2
|
||||
sudo ./output/host/sbin/grub-bios-setup \
|
||||
-b ./output/host/lib/grub/i386-pc/boot.img \
|
||||
-c ./output/images/grub.img -d . /dev/loop0
|
||||
-c ./output/images/grub.img -d . "$loop_dev"
|
||||
6. Cleanup loop device
|
||||
sudo partx -d /dev/loop0
|
||||
sudo losetup -d /dev/loop0
|
||||
sudo partx -d "$loop_dev"
|
||||
sudo losetup -d "$loop_dev"
|
||||
7. Your disk.img is ready!
|
||||
|
||||
Using genimage
|
||||
@@ -65,22 +65,22 @@ Notes on using Grub2 for x86/x86_64 EFI-based platforms
|
||||
- Create a second partition, type 8300, for the root
|
||||
filesystem.
|
||||
3. Setup loop device and loop partitions
|
||||
sudo losetup -f disk.img
|
||||
sudo partx -a /dev/loop0
|
||||
loop_dev=$(sudo losetup -f disk.img)
|
||||
sudo partx -a "$loop_dev"
|
||||
4. Prepare the boot partition
|
||||
sudo mkfs.vfat -n boot /dev/loop0p1
|
||||
sudo mount /dev/loop0p1 /mnt
|
||||
sudo mkfs.vfat -n boot "${loop_dev}p1"
|
||||
sudo mount "${loop_dev}p1" /mnt
|
||||
sudo cp -a output/images/efi-part/* /mnt/
|
||||
sudo cp output/images/bzImage /mnt/
|
||||
sudo umount /mnt
|
||||
5. Prepare the root partition
|
||||
sudo mkfs.ext3 -L root /dev/loop0p2
|
||||
sudo mount /dev/loop0p2 /mnt
|
||||
sudo mkfs.ext3 -L root "${loop_dev}p2"
|
||||
sudo mount "${loop_dev}p2" /mnt
|
||||
sudo tar -C /mnt -xf output/images/rootfs.tar
|
||||
sudo umount /mnt
|
||||
6 Cleanup loop device
|
||||
sudo partx -d /dev/loop0
|
||||
sudo losetup -d /dev/loop0
|
||||
sudo partx -d "$loop_dev"
|
||||
sudo losetup -d "$loop_dev"
|
||||
7. Your disk.img is ready!
|
||||
|
||||
To test your i386/x86-64 EFI image in Qemu
|
||||
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 55e5bcbc68d66776fc46896291f0a24844beb57817345a854d65e3d055fa423e linux-6.10.14.tar.xz
|
||||
sha256 e7df81e588d70fab5ec3ec3bb04ac53d51f0860fc3b1ec45e0a4167a026899db linux-6.6.58.tar.xz
|
||||
sha256 2286e4a02ea2fbe65023dbf779f20aa994ba2b8d37ed559049378089451aa256 linux-6.1.114.tar.xz
|
||||
sha256 d1054ab4803413efe2850f50f1a84349c091631ec50a1cf9e891d1b1f9061835 linux-6.6.63.tar.xz
|
||||
sha256 aecdaf39d0a844a81ce4c67d9daff8979e938bb690df4f679fbbb494fe423278 linux-6.1.119.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
|
||||
sha256 e618c6d845fd1bc89477508e8d084bbe791fc88bf7623adee2deb6ecb2275370 linux-5.15.169.tar.xz
|
||||
sha256 76cc8d7f1528f87902e38697229661d0617a7d6ab86166be9f3ef9a613b17b72 linux-5.10.228.tar.xz
|
||||
sha256 77221ab9aebeac746915c755ec3b7d320f85cd219c63d9c501820fbca1e3b32b linux-5.4.284.tar.xz
|
||||
sha256 8a4b2a47ccc9b208b2b6ed9a216ea1a5eb12852c723bec1a04de9e671a1d7da8 linux-5.15.173.tar.xz
|
||||
sha256 cd1850ef3b771886df4e0b4c4eb07033864abab2bb553a20fd9e3cdc23584b47 linux-5.10.230.tar.xz
|
||||
sha256 180754f3df0e8d7f206625255b3f5a6e1f441feec83336df42613ca8f6b1887c linux-5.4.286.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc
|
||||
sha256 4e27cdf999359876a0ff489bff6ece7ba5798ff37c2289db0c9e9422a9014162 linux-4.19.322.tar.xz
|
||||
sha256 607bed7de5cda31a443df4c8a78dbe5e8a9ad31afde2a4d28fe99ab4730e8de1 linux-4.19.325.tar.xz
|
||||
# Locally computed
|
||||
sha256 fb0edc3c18e47d2b6974cb0880a0afb5c3fa08f50ee87dfdf24349405ea5f8ae linux-cip-5.10.162-cip24.tar.gz
|
||||
sha256 b5539243f187e3d478d76d44ae13aab83952c94b885ad889df6fa9997e16a441 linux-cip-5.10.162-cip24-rt10.tar.gz
|
||||
|
||||
@@ -69,6 +69,7 @@ config BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
config BR2_PACKAGE_ALSA_LIB_UCM
|
||||
bool "ucm"
|
||||
default y
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_ALISP
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
[PATCH] Fix makefiles for out-of-tree build
|
||||
From 1fe49c34aa3e32e801af5c56293ec71ff6e7e2bc Mon Sep 17 00:00:00 2001
|
||||
From: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
Date: Sun, 1 Dec 2024 15:43:17 +0100
|
||||
Subject: [PATCH] Fix makefiles for out-of-tree build
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
@@ -158,5 +161,5 @@ index 9e8b751..94a069b 100644
|
||||
LIBS+= -lz -lselinux
|
||||
|
||||
--
|
||||
2.5.1
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
[PATCH] Fix adbd for non-Ubuntu systems
|
||||
From d433d5c340f3b36de58ea8550fd140dbdaea13b4 Mon Sep 17 00:00:00 2001
|
||||
From: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
Date: Sun, 1 Dec 2024 15:43:33 +0100
|
||||
Subject: [PATCH] Fix adbd for non-Ubuntu systems
|
||||
|
||||
Remove glib/dbus dependencies and partially restore services.c to be
|
||||
closer to the original source code in order to run on systems without
|
||||
@@ -7,7 +10,7 @@ sudo.
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
core/adbd/adb.c | 1 -
|
||||
core/adbd/services.c | 160 ++++-------------------------------------------
|
||||
core/adbd/services.c | 160 +++------------------------------------
|
||||
debian/makefiles/adbd.mk | 4 +-
|
||||
3 files changed, 14 insertions(+), 151 deletions(-)
|
||||
|
||||
@@ -260,5 +263,5 @@ index 49dab8c..22c1816 100644
|
||||
OBJS= $(patsubst %, %.o, $(basename $(SRCS)))
|
||||
|
||||
--
|
||||
2.5.1
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
From 946dbb00fe4b2a75c688a470fc0c3924aa018a24 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 11:39:49 +0200
|
||||
Subject: [PATCH] Adjust base64 function handling
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
In order to support libcs that do not provide b64_pton(), one of the
|
||||
Debian patches adds a copy of b64_pton() and b64_ntop(). However, no
|
||||
prototype is added for those functions, causing an "implicit
|
||||
declaration" warning... or error depending on the compiler version
|
||||
used:
|
||||
|
||||
core/adbd/adb_auth_client.c:75:15: error: implicit declaration of function ‘b64_pton’ [-Wimplicit-function-declaration]
|
||||
|
||||
This patch adds appropriate prototypes, but while at it, also renames
|
||||
the internal copy of b64_*() functions to have an adb_ prefix in order
|
||||
to clarify things and not clash with definitions potentially coming
|
||||
from the C library.
|
||||
|
||||
Upstream: N/A, we're too far from upstream
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
core/adb/adb_auth_client.c | 3 ++-
|
||||
core/adbd/adb_auth_client.c | 3 ++-
|
||||
core/adbd/base64.c | 4 ++--
|
||||
3 files changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/core/adb/adb_auth_client.c b/core/adb/adb_auth_client.c
|
||||
index 0b4913e..25b9828 100644
|
||||
--- a/core/adb/adb_auth_client.c
|
||||
+++ b/core/adb/adb_auth_client.c
|
||||
@@ -45,6 +45,7 @@ static char *key_paths[] = {
|
||||
static fdevent listener_fde;
|
||||
static int framework_fd = -1;
|
||||
|
||||
+extern int adb_b64_pton(char const *src, u_char *target, size_t targsize);
|
||||
|
||||
static void read_keys(const char *file, struct listnode *list)
|
||||
{
|
||||
@@ -72,7 +73,7 @@ static void read_keys(const char *file, struct listnode *list)
|
||||
if (sep)
|
||||
*sep = '\0';
|
||||
|
||||
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
+ ret = adb_b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
if (ret != sizeof(key->key)) {
|
||||
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
||||
free(key);
|
||||
diff --git a/core/adbd/adb_auth_client.c b/core/adbd/adb_auth_client.c
|
||||
index 0b4913e..25b9828 100644
|
||||
--- a/core/adbd/adb_auth_client.c
|
||||
+++ b/core/adbd/adb_auth_client.c
|
||||
@@ -45,6 +45,7 @@ static char *key_paths[] = {
|
||||
static fdevent listener_fde;
|
||||
static int framework_fd = -1;
|
||||
|
||||
+extern int adb_b64_pton(char const *src, u_char *target, size_t targsize);
|
||||
|
||||
static void read_keys(const char *file, struct listnode *list)
|
||||
{
|
||||
@@ -72,7 +73,7 @@ static void read_keys(const char *file, struct listnode *list)
|
||||
if (sep)
|
||||
*sep = '\0';
|
||||
|
||||
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
+ ret = adb_b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
if (ret != sizeof(key->key)) {
|
||||
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
||||
free(key);
|
||||
diff --git a/core/adbd/base64.c b/core/adbd/base64.c
|
||||
index 7270703..91fc1b2 100644
|
||||
--- a/core/adbd/base64.c
|
||||
+++ b/core/adbd/base64.c
|
||||
@@ -134,7 +134,7 @@ static const char Pad64 = '=';
|
||||
*/
|
||||
|
||||
int
|
||||
-b64_ntop(src, srclength, target, targsize)
|
||||
+adb_b64_ntop(src, srclength, target, targsize)
|
||||
u_char const *src;
|
||||
size_t srclength;
|
||||
char *target;
|
||||
@@ -212,7 +212,7 @@ b64_ntop(src, srclength, target, targsize)
|
||||
*/
|
||||
|
||||
int
|
||||
-b64_pton(src, target, targsize)
|
||||
+adb_b64_pton(src, target, targsize)
|
||||
char const *src;
|
||||
u_char *target;
|
||||
size_t targsize;
|
||||
--
|
||||
2.47.0
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
[PATCH] Fix build issue with uclibc
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
core/adbd/adb_auth_client.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/adb/adb_auth_client.c b/core/adb/adb_auth_client.c
|
||||
index 0b4913e..068d837 100644
|
||||
--- a/core/adb/adb_auth_client.c
|
||||
+++ b/core/adb/adb_auth_client.c
|
||||
@@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
|
||||
if (sep)
|
||||
*sep = '\0';
|
||||
|
||||
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
+ ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
if (ret != sizeof(key->key)) {
|
||||
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
||||
free(key);
|
||||
diff --git a/core/adbd/adb_auth_client.c b/core/adbd/adb_auth_client.c
|
||||
index 0b4913e..068d837 100644
|
||||
--- a/core/adbd/adb_auth_client.c
|
||||
+++ b/core/adbd/adb_auth_client.c
|
||||
@@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
|
||||
if (sep)
|
||||
*sep = '\0';
|
||||
|
||||
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
+ ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
||||
if (ret != sizeof(key->key)) {
|
||||
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
||||
free(key);
|
||||
--
|
||||
2.6.1
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
[PATCH] Fix build issue with musl
|
||||
From d14ca3e3362448590adaebacb76d4d8046f9b556 Mon Sep 17 00:00:00 2001
|
||||
From: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
Date: Sun, 1 Dec 2024 15:44:16 +0100
|
||||
Subject: [PATCH] Fix build issue with musl
|
||||
|
||||
arpa/nameser.h doesn't use the same macro name to avoid several
|
||||
inclusions.
|
||||
@@ -8,19 +11,12 @@ TEMP_FAILURE_RETRY macro.
|
||||
|
||||
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
||||
---
|
||||
core/adbd/arpa_nameser.h | 12 +++++++++---
|
||||
core/adbd/base64.c | 1 -
|
||||
core/adbd/framebuffer_service.c | 1 +
|
||||
core/adbd/qemu_pipe.h | 1 -
|
||||
core/include/cutils/android_reboot.h | 8 ++++++--
|
||||
core/include/cutils/bitops.h | 10 ++++++----
|
||||
core/include/cutils/partition_utils.h | 8 ++++++--
|
||||
extras/ext4_utils/sha1.c | 3 ---
|
||||
extras/ext4_utils/sha1.h | 13 ++++++-------
|
||||
9 files changed, 34 insertions(+), 23 deletions(-)
|
||||
core/adbd/arpa_nameser.h | 3 +++
|
||||
core/adbd/framebuffer_service.c | 1 +
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/core/adbd/arpa_nameser.h b/core/adbd/arpa_nameser.h
|
||||
index 438dc04..b2a28d6 100644
|
||||
index 438dc04..f3d2fee 100644
|
||||
--- a/core/adbd/arpa_nameser.h
|
||||
+++ b/core/adbd/arpa_nameser.h
|
||||
@@ -52,6 +52,8 @@
|
||||
@@ -32,7 +28,7 @@ index 438dc04..b2a28d6 100644
|
||||
|
||||
#define BIND_4_COMPAT
|
||||
|
||||
@@ -574,4 +579,5 @@ __END_DECLS
|
||||
@@ -574,4 +576,5 @@ __END_DECLS
|
||||
#define XLOG(...) do {} while (0)
|
||||
#endif
|
||||
|
||||
@@ -51,4 +47,5 @@ index 20c08d2..48e0241 100644
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
--
|
||||
2.6.1
|
||||
2.47.0
|
||||
|
||||
|
||||
+30
-17
@@ -1,4 +1,7 @@
|
||||
makefiles: use pkgconf to get libs deps
|
||||
From 10f3f6fb75da72f155e72794d6647e4fa21a87d0 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
Date: Sun, 1 Dec 2024 15:45:01 +0100
|
||||
Subject: [PATCH] makefiles: use pkgconf to get libs deps
|
||||
|
||||
LIBS lists library dependencies without taking into account static linking
|
||||
that need ordered listing and more libraries listed since differently from
|
||||
@@ -10,26 +13,36 @@ needed libraries are listed during linking.
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
---
|
||||
diff -urpN android-tools-4.2.2+git20130218.orig/debian/makefiles/adbd.mk android-tools-4.2.2+git20130218/debian/makefiles/adbd.mk
|
||||
--- android-tools-4.2.2+git20130218.orig/debian/makefiles/adbd.mk 2019-04-08 16:05:02.967710428 +0200
|
||||
+++ android-tools-4.2.2+git20130218/debian/makefiles/adbd.mk 2019-04-08 16:30:42.463084426 +0200
|
||||
@@ -44,7 +44,7 @@ CPPFLAGS+= -DADBD_NON_ANDROID
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/adbd
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/include
|
||||
debian/makefiles/adb.mk | 2 +-
|
||||
debian/makefiles/adbd.mk | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
-LIBS+= -lc -lpthread -lz -lcrypto -lcrypt
|
||||
+LIBS+= -lc -lpthread -lz `pkg-config --libs libcrypto` -lcrypt
|
||||
|
||||
OBJS= $(patsubst %, %.o, $(basename $(SRCS)))
|
||||
|
||||
diff -urpN android-tools-4.2.2+git20130218.orig/debian/makefiles/adb.mk android-tools-4.2.2+git20130218/debian/makefiles/adb.mk
|
||||
--- android-tools-4.2.2+git20130218.orig/debian/makefiles/adb.mk 2019-04-08 16:05:02.959701400 +0200
|
||||
+++ android-tools-4.2.2+git20130218/debian/makefiles/adb.mk 2019-04-08 16:31:06.529426250 +0200
|
||||
diff --git a/debian/makefiles/adb.mk b/debian/makefiles/adb.mk
|
||||
index 654b9f1..a03c93a 100644
|
||||
--- a/debian/makefiles/adb.mk
|
||||
+++ b/debian/makefiles/adb.mk
|
||||
@@ -41,7 +41,7 @@ CPPFLAGS+= -DHAVE_TERMIO_H
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/adb
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/include
|
||||
|
||||
|
||||
-LIBS+= -lc -lpthread -lz -lcrypto
|
||||
+LIBS+= -lc -lpthread -lz `pkg-config --libs libcrypto`
|
||||
|
||||
|
||||
OBJS= $(SRCS:.c=.o)
|
||||
|
||||
diff --git a/debian/makefiles/adbd.mk b/debian/makefiles/adbd.mk
|
||||
index 22c1816..a8eee3a 100644
|
||||
--- a/debian/makefiles/adbd.mk
|
||||
+++ b/debian/makefiles/adbd.mk
|
||||
@@ -44,7 +44,7 @@ CPPFLAGS+= -DADBD_NON_ANDROID
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/adbd
|
||||
CPPFLAGS+= -I$(SRCDIR)/core/include
|
||||
|
||||
-LIBS+= -lc -lpthread -lz -lcrypto -lcrypt
|
||||
+LIBS+= -lc -lpthread -lz `pkg-config --libs libcrypto` -lcrypt
|
||||
|
||||
OBJS= $(patsubst %, %.o, $(basename $(SRCS)))
|
||||
|
||||
--
|
||||
2.47.0
|
||||
|
||||
+15
-5
@@ -1,4 +1,7 @@
|
||||
Fix build on big endian systems
|
||||
From 8f7e9458dbfca969d3edc9cf409b3439e98f4c5a Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 1 Dec 2024 15:45:26 +0100
|
||||
Subject: [PATCH] Fix build on big endian systems
|
||||
|
||||
The usb_linux_client.c file defines cpu_to_le16/32 by using the C
|
||||
library htole16/32 function calls. However, cpu_to_le16/32 are used
|
||||
@@ -14,9 +17,13 @@ To solve this, we simply open-code cpu_to_le16/32 in a way that allows
|
||||
them to be used when initializing structures.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
core/adb/usb_linux_client.c | 11 +++++++++--
|
||||
core/adbd/usb_linux_client.c | 11 +++++++++--
|
||||
2 files changed, 18 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: b/core/adb/usb_linux_client.c
|
||||
===================================================================
|
||||
diff --git a/core/adb/usb_linux_client.c b/core/adb/usb_linux_client.c
|
||||
index fb1dad0..a981e96 100644
|
||||
--- a/core/adb/usb_linux_client.c
|
||||
+++ b/core/adb/usb_linux_client.c
|
||||
@@ -34,8 +34,15 @@
|
||||
@@ -37,8 +44,8 @@ Index: b/core/adb/usb_linux_client.c
|
||||
|
||||
struct usb_handle
|
||||
{
|
||||
Index: b/core/adbd/usb_linux_client.c
|
||||
===================================================================
|
||||
diff --git a/core/adbd/usb_linux_client.c b/core/adbd/usb_linux_client.c
|
||||
index 33875a8..0e4d200 100644
|
||||
--- a/core/adbd/usb_linux_client.c
|
||||
+++ b/core/adbd/usb_linux_client.c
|
||||
@@ -34,8 +34,15 @@
|
||||
@@ -59,3 +66,6 @@ Index: b/core/adbd/usb_linux_client.c
|
||||
|
||||
struct usb_handle
|
||||
{
|
||||
--
|
||||
2.47.0
|
||||
|
||||
+12
-6
@@ -1,4 +1,7 @@
|
||||
Include cdefs.h wherever it is needed
|
||||
From d3f0157bf2ac1afc9a810ccbe188110df724129d Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sun, 1 Dec 2024 15:46:15 +0100
|
||||
Subject: [PATCH] Include cdefs.h wherever it is needed
|
||||
|
||||
cdefs.h is included from within a lot of glibc headers, so it almost
|
||||
invariably and automagically gets pulled in with glibc.
|
||||
@@ -11,12 +14,12 @@ So we must include it when we are going to use macros it provides.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
---
|
||||
core/adbd/services.c | 1 +
|
||||
core/libcutils/android_reboot.c | 1 +
|
||||
2 files changed, 2 insertions(+), 0 deletion(-)
|
||||
core/adbd/services.c | 1 +
|
||||
core/libcutils/android_reboot.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/core/adbd/services.c b/core/adbd/services.c
|
||||
index 20c08d2..48e0241 100644
|
||||
index 5adcefe..6de1951 100644
|
||||
--- a/core/adbd/services.c
|
||||
+++ b/core/adbd/services.c
|
||||
@@ -20,6 +20,7 @@
|
||||
@@ -28,7 +31,7 @@ index 20c08d2..48e0241 100644
|
||||
#include "sysdeps.h"
|
||||
|
||||
diff --git a/core/libcutils/android_reboot.c b/core/libcutils/android_reboot.c
|
||||
index 20c08d2..48e0241 100644
|
||||
index 79c05f8..9386006 100644
|
||||
--- a/core/libcutils/android_reboot.c
|
||||
+++ b/core/libcutils/android_reboot.c
|
||||
@@ -23,6 +23,7 @@
|
||||
@@ -39,3 +42,6 @@ index 20c08d2..48e0241 100644
|
||||
|
||||
#include <cutils/android_reboot.h>
|
||||
|
||||
--
|
||||
2.47.0
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
usb_linux.c: fix minor()/major() build failure due to glibc 2.28
|
||||
|
||||
glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
|
||||
and therefore <sys/sysmacros.h> must be included explicitly when
|
||||
major()/minor() are used.
|
||||
|
||||
This commit adds a patch to directly include <sys/sysmacros.h> into
|
||||
all usb_linux.c files where minor() and major() macros are used.
|
||||
|
||||
diff -urpN host-android-tools-4.2.2+git20130218.orig/core/adb/usb_linux.c host-android-tools-4.2.2+git20130218/core/adb/usb_linux.c
|
||||
--- host-android-tools-4.2.2+git20130218.orig/core/adb/usb_linux.c 2013-02-18 15:49:03.000000000 +0100
|
||||
+++ host-android-tools-4.2.2+git20130218/core/adb/usb_linux.c 2018-09-09 11:47:16.476292546 +0200
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <dirent.h>
|
||||
diff -urpN host-android-tools-4.2.2+git20130218.orig/core/adbd/usb_linux.c host-android-tools-4.2.2+git20130218/core/adbd/usb_linux.c
|
||||
--- host-android-tools-4.2.2+git20130218.orig/core/adbd/usb_linux.c 2018-09-09 02:32:57.154503866 +0200
|
||||
+++ host-android-tools-4.2.2+git20130218/core/adbd/usb_linux.c 2018-09-09 11:47:28.148353880 +0200
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <dirent.h>
|
||||
diff -urpN host-android-tools-4.2.2+git20130218.orig/core/fastboot/usb_linux.c host-android-tools-4.2.2+git20130218/core/fastboot/usb_linux.c
|
||||
--- host-android-tools-4.2.2+git20130218.orig/core/fastboot/usb_linux.c 2013-02-18 15:49:03.000000000 +0100
|
||||
+++ host-android-tools-4.2.2+git20130218/core/fastboot/usb_linux.c 2018-09-09 11:46:53.028169154 +0200
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
@@ -0,0 +1,59 @@
|
||||
From 99c20bd08065d9c78d81ba7aa48a2a113ab28c26 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
Date: Sun, 1 Dec 2024 15:46:50 +0100
|
||||
Subject: [PATCH] usb_linux.c: fix minor()/major() build failure due to glibc
|
||||
2.28
|
||||
|
||||
glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
|
||||
and therefore <sys/sysmacros.h> must be included explicitly when
|
||||
major()/minor() are used.
|
||||
|
||||
This commit adds a patch to directly include <sys/sysmacros.h> into
|
||||
all usb_linux.c files where minor() and major() macros are used.
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
---
|
||||
core/adb/usb_linux.c | 1 +
|
||||
core/adbd/usb_linux.c | 1 +
|
||||
core/fastboot/usb_linux.c | 1 +
|
||||
3 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/core/adb/usb_linux.c b/core/adb/usb_linux.c
|
||||
index 7bf2057..f748267 100644
|
||||
--- a/core/adb/usb_linux.c
|
||||
+++ b/core/adb/usb_linux.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <dirent.h>
|
||||
diff --git a/core/adbd/usb_linux.c b/core/adbd/usb_linux.c
|
||||
index 7bf2057..f748267 100644
|
||||
--- a/core/adbd/usb_linux.c
|
||||
+++ b/core/adbd/usb_linux.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <dirent.h>
|
||||
diff --git a/core/fastboot/usb_linux.c b/core/fastboot/usb_linux.c
|
||||
index b7a9ca3..2dac62b 100644
|
||||
--- a/core/fastboot/usb_linux.c
|
||||
+++ b/core/fastboot/usb_linux.c
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
--
|
||||
2.47.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From d24abbec201975a5eb7f8589614cfb424b8c80b6 Mon Sep 17 00:00:00 2001
|
||||
From 3c4319da20fab4e48ec02e28f5b013b4a33b5fe4 Mon Sep 17 00:00:00 2001
|
||||
From: Alex Kaplan <kaplan2539@gmail.com>
|
||||
Date: Sat, 10 Nov 2018 19:50:51 -0800
|
||||
Subject: [PATCH] Fix makefiles for out-of-tree ext4_utils build
|
||||
@@ -44,5 +44,5 @@ index cb64916..c5904bf 100644
|
||||
LIBS+= -lz -lselinux
|
||||
|
||||
--
|
||||
2.7.4
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From bb3da0e32be4f2260940edf3ee0f88103dfd0dcc Mon Sep 17 00:00:00 2001
|
||||
From 79bf5cdee607241434e0d1c5b72e724eb1d20102 Mon Sep 17 00:00:00 2001
|
||||
From: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
||||
Date: Tue, 5 Feb 2019 01:12:19 +0200
|
||||
Subject: [PATCH] adb: added patch for openssl 1.1.0 compatibility
|
||||
@@ -43,5 +43,5 @@ index 9039d42..debd2ef 100644
|
||||
out:
|
||||
BN_free(n0inv);
|
||||
--
|
||||
2.14.1
|
||||
2.47.0
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
From 9724d78fda4eb023f83d2fd30e665b436d7a7f97 Mon Sep 17 00:00:00 2001
|
||||
From 6919b6619a9c744d2220f7af6e211c50662ba94b Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 11:41:10 +0200
|
||||
Subject: [PATCH] core/fastboot/fastboot.c: reorder functions to avoid implicit
|
||||
@@ -50,5 +50,5 @@ index 3de6d7d..9b2c86f 100644
|
||||
{
|
||||
if (match_fastboot_with_serial(info, NULL) == 0) {
|
||||
--
|
||||
2.45.2
|
||||
2.47.0
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
From 2812c2005cfa4bfc5741651c8310e36f28c0327e Mon Sep 17 00:00:00 2001
|
||||
From 72b9e79c81a237f1839afb4fdee680eafdd180d9 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 11:41:56 +0200
|
||||
Subject: [PATCH] core/libsparse/sparse_read.c: add missing output_file.h
|
||||
@@ -33,5 +33,5 @@ index 704bcfa..0a8f838 100644
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#define lseek64 lseek
|
||||
--
|
||||
2.45.2
|
||||
2.47.0
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
From 83f9bed233b86dd2bbf603611b13b673caeccb69 Mon Sep 17 00:00:00 2001
|
||||
From 01e86db8460d873aec15d658bfc717b026c0545f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 11:46:51 +0200
|
||||
Subject: [PATCH] extras/ext4_utils/make_ext4fs_main.c: disable
|
||||
@@ -50,5 +50,5 @@ index 17d3735..cb58011 100644
|
||||
if (!sehnd && mountpoint) {
|
||||
sehnd = selinux_android_file_context_handle();
|
||||
--
|
||||
2.45.2
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 2b5060146b0890f7f1a63ef891af1358b8cdf9bc Mon Sep 17 00:00:00 2001
|
||||
From 850fd3f4a0384ebe492a466a9b1149060619aacb Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 12:57:22 +0200
|
||||
Subject: [PATCH] core/adbd/adb.c: open code capset()
|
||||
@@ -48,5 +48,5 @@ index 7fe6445..98b1de1 100644
|
||||
D("Local port disabled\n");
|
||||
} else {
|
||||
--
|
||||
2.45.2
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c14070011e070d8674cf3578708cbae433090a47 Mon Sep 17 00:00:00 2001
|
||||
From 8f351150de38641c8ce2e9b7f9a5cba29ccd8f7e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 14 Jul 2024 13:00:02 +0200
|
||||
Subject: [PATCH] core/adbd/adb.c: include correct header for prctl()
|
||||
@@ -30,5 +30,5 @@ index 98b1de1..10f420b 100644
|
||||
#else
|
||||
#include "usb_vendors.h"
|
||||
--
|
||||
2.45.2
|
||||
2.47.0
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
From 5db9529436f13b8c073a0310da3a1107f84645da Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Wed, 4 Dec 2024 20:51:22 +0100
|
||||
Subject: [PATCH] extras/ext4_utils/make_ext4fs.c: define
|
||||
__SANE_USERSPACE_TYPES__
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The Debian patch ppc64el-ftbfs.patch is already defining
|
||||
__SANE_USERSPACE_TYPES__ in a few files to solve a conflict between
|
||||
kernel header definitions and local definition of some types, on
|
||||
powerpc64 and mips64.
|
||||
|
||||
However, the Debian patch lacks an update to ext4_utils.c, and has the
|
||||
definition too late in make_ext4fs.c. This commit therefore fixes
|
||||
those two remaining issues, fixing:
|
||||
|
||||
error: conflicting types for ‘u64’; have ‘long unsigned int’
|
||||
|
||||
Upstream: N/A, we're too far from upstream
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
extras/ext4_utils/ext4_utils.c | 5 ++++-
|
||||
extras/ext4_utils/make_ext4fs.c | 4 ++++
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/extras/ext4_utils/ext4_utils.c b/extras/ext4_utils/ext4_utils.c
|
||||
index e95f5cc..9f6836f 100644
|
||||
--- a/extras/ext4_utils/ext4_utils.c
|
||||
+++ b/extras/ext4_utils/ext4_utils.c
|
||||
@@ -14,6 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
+#if defined(__linux__)
|
||||
+#define __SANE_USERSPACE_TYPES__
|
||||
+#endif
|
||||
+
|
||||
#include "ext4_utils.h"
|
||||
#include "uuid.h"
|
||||
#include "allocate.h"
|
||||
@@ -36,7 +40,6 @@
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
-#define __SANE_USERSPACE_TYPES__
|
||||
#include <linux/fs.h>
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
#include <sys/disk.h>
|
||||
diff --git a/extras/ext4_utils/make_ext4fs.c b/extras/ext4_utils/make_ext4fs.c
|
||||
index 3124aed..332a213 100644
|
||||
--- a/extras/ext4_utils/make_ext4fs.c
|
||||
+++ b/extras/ext4_utils/make_ext4fs.c
|
||||
@@ -14,6 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
+#if defined(__linux__)
|
||||
+#define __SANE_USERSPACE_TYPES__
|
||||
+#endif
|
||||
+
|
||||
#include "make_ext4fs.h"
|
||||
#include "ext4_utils.h"
|
||||
#include "allocate.h"
|
||||
--
|
||||
2.47.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 aeff09fdc8b0c88b3087c99de00cf549356d7a2f6a69e3fcec5e0e861d2f9063 bats-core-1.11.0.tar.gz
|
||||
sha256 5c57ed9616b78f7fd8c553b9bae3c7c9870119edd727ec17dbd1185c599f79d9 bats-core-1.11.1.tar.gz
|
||||
|
||||
# License files
|
||||
sha256 55074b2b3b87809105034e1468e59076554d76a80c67bcc592000cc3d929852d LICENSE.md
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BATS_CORE_VERSION = 1.11.0
|
||||
BATS_CORE_VERSION = 1.11.1
|
||||
BATS_CORE_SITE = $(call github,bats-core,bats-core,v$(BATS_CORE_VERSION))
|
||||
BATS_CORE_LICENSE = MIT
|
||||
BATS_CORE_LICENSE_FILES = LICENSE.md
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
From ef85a335ad8919930f62d80ae99a74a5e766fc3b Mon Sep 17 00:00:00 2001
|
||||
From: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
|
||||
Date: Sun, 25 Aug 2024 08:42:39 +0200
|
||||
Subject: [PATCH] Fix compilation on strict POSIX platforms
|
||||
|
||||
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
|
||||
Upstream: https://github.com/arkq/bluez-alsa/commit/070ed35ac5cef8138ed4
|
||||
---
|
||||
src/main.c | 2 +-
|
||||
test/mock/mock.c | 2 +-
|
||||
utils/aplay/aplay.c | 1 +
|
||||
utils/cli/cli.c | 1 +
|
||||
utils/rfcomm/rfcomm.c | 1 +
|
||||
5 files changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index e93cb33..597ac01 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -13,12 +13,12 @@
|
||||
#endif
|
||||
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <time.h>
|
||||
|
||||
diff --git a/test/mock/mock.c b/test/mock/mock.c
|
||||
index 83a8ab5..b5bcedd 100644
|
||||
--- a/test/mock/mock.c
|
||||
+++ b/test/mock/mock.c
|
||||
@@ -16,12 +16,12 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
diff --git a/utils/aplay/aplay.c b/utils/aplay/aplay.c
|
||||
index 999d1ef..49b0d65 100644
|
||||
--- a/utils/aplay/aplay.c
|
||||
+++ b/utils/aplay/aplay.c
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
#include <math.h>
|
||||
#include <poll.h>
|
||||
#include <pthread.h>
|
||||
diff --git a/utils/cli/cli.c b/utils/cli/cli.c
|
||||
index d480ef1..299c44c 100644
|
||||
--- a/utils/cli/cli.c
|
||||
+++ b/utils/cli/cli.c
|
||||
@@ -13,6 +13,7 @@
|
||||
#endif
|
||||
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
diff --git a/utils/rfcomm/rfcomm.c b/utils/rfcomm/rfcomm.c
|
||||
index 9eba57f..20c1214 100644
|
||||
--- a/utils/rfcomm/rfcomm.c
|
||||
+++ b/utils/rfcomm/rfcomm.c
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
+#include <libgen.h>
|
||||
#include <poll.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_HOST_BMAP_TOOLS
|
||||
bool "host bmap-tools"
|
||||
select BR2_PACKAGE_HOST_PYTHON3 # runtime
|
||||
select BR2_PACKAGE_HOST_PYTHON_SIX # runtime
|
||||
help
|
||||
Tool to flash image files to block devices using the block map
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
BOOST_VERSION = 1.83.0
|
||||
BOOST_SOURCE = boost_$(subst .,_,$(BOOST_VERSION)).tar.bz2
|
||||
BOOST_SITE = https://boostorg.jfrog.io/artifactory/main/release/$(BOOST_VERSION)/source
|
||||
BOOST_SITE = https://archives.boost.io/release/$(BOOST_VERSION)/source
|
||||
BOOST_INSTALL_STAGING = YES
|
||||
BOOST_LICENSE = BSL-1.0
|
||||
BOOST_LICENSE_FILES = LICENSE_1_0.txt
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 eba0616f4033385d6093608a2a2aad3c2debb847d6778c87346f89c80946684f checksec-2.7.1.tar.gz
|
||||
sha256 59a351ac9b552a817329f2d2c1cd8ee76f6cf2ad8916e8eea56310154c0e31fc checksec-181cdfa84893a5d72695944efabfa5b56687379c.tar.gz
|
||||
sha256 55154b4be6dfcb3ff29d1e3648d0d07b3943a5fcc3af7c2e0e799b074734f722 LICENSE.txt
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CHECKSEC_VERSION = 2.7.1
|
||||
# git hash of 2.7.1 release.
|
||||
CHECKSEC_VERSION = 181cdfa84893a5d72695944efabfa5b56687379c
|
||||
CHECKSEC_SITE = $(call github,slimm609,checksec.sh,$(CHECKSEC_VERSION))
|
||||
CHECKSEC_LICENSE = BSD-3-Clause
|
||||
CHECKSEC_LICENSE_FILES = LICENSE.txt
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
From 7297a8ef3cab3b0faf1426622ee902a2144e2e89 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
||||
Date: Wed, 24 Mar 2021 11:27:14 +0100
|
||||
Subject: [PATCH] ebtables.h: restore KERNEL_64_USERSPACE_32 checks
|
||||
|
||||
Commit e6359eedfbf497e52d52451072aea4713ed80a88 replaced the file ebtables.h
|
||||
but removed the usage of KERNEL_64_USERSPACE_32. This breaks boards where
|
||||
such flag is relevant, with following messages:
|
||||
|
||||
[ 6364.971346] kernel msg: ebtables bug: please report to author: Standard target size too big
|
||||
|
||||
Unable to update the kernel. Two possible causes:
|
||||
1. Multiple ebtables programs were executing simultaneously. The ebtables
|
||||
userspace tool doesn't by default support multiple ebtables programs running
|
||||
concurrently. The ebtables option --concurrent or a tool like flock can be
|
||||
used to support concurrent scripts that update the ebtables kernel tables.
|
||||
2. The kernel doesn't support a certain ebtables extension, consider
|
||||
recompiling your kernel or insmod the extension.
|
||||
|
||||
Analysis shows that the structure 'ebt_replace' passed from userspace
|
||||
ebtables to the kernel, is too small, i.e 80 bytes instead of 120 in case of
|
||||
64-bit kernel.
|
||||
|
||||
Note that the ebtables build system seems to assume that 'sparc64' is the
|
||||
only case where KERNEL_64_USERSPACE_32 is relevant, but this is not true.
|
||||
This situation can happen on many architectures, especially in embedded
|
||||
systems. For example, an Aarch64 processor with kernel in 64-bit but
|
||||
userland build for 32-bit Arm. Or a 64-bit MIPS Octeon III processor, with
|
||||
userland running in the 'n32' ABI.
|
||||
|
||||
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
||||
Upstream-Status: http://patchwork.ozlabs.org/project/netfilter-devel/patch/20210518181730.13436-1-patrickdepinguin@gmail.com/
|
||||
---
|
||||
include/linux/netfilter_bridge/ebtables.h | 21 +++++++++++++++++++++
|
||||
1 file changed, 21 insertions(+)
|
||||
|
||||
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h
|
||||
index 5be75f2..3c2b61e 100644
|
||||
--- a/include/linux/netfilter_bridge/ebtables.h
|
||||
+++ b/include/linux/netfilter_bridge/ebtables.h
|
||||
@@ -49,12 +49,21 @@ struct ebt_replace {
|
||||
/* total size of the entries */
|
||||
unsigned int entries_size;
|
||||
/* start of the chains */
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ uint64_t hook_entry[NF_BR_NUMHOOKS];
|
||||
+#else
|
||||
struct ebt_entries *hook_entry[NF_BR_NUMHOOKS];
|
||||
+#endif
|
||||
/* nr of counters userspace expects back */
|
||||
unsigned int num_counters;
|
||||
/* where the kernel will put the old counters */
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ uint64_t counters;
|
||||
+ uint64_t entries;
|
||||
+#else
|
||||
struct ebt_counter *counters;
|
||||
char *entries;
|
||||
+#endif
|
||||
};
|
||||
|
||||
struct ebt_replace_kernel {
|
||||
@@ -129,6 +138,9 @@ struct ebt_entry_match {
|
||||
} u;
|
||||
/* size of data */
|
||||
unsigned int match_size;
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ unsigned int pad;
|
||||
+#endif
|
||||
unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
|
||||
};
|
||||
|
||||
@@ -142,6 +154,9 @@ struct ebt_entry_watcher {
|
||||
} u;
|
||||
/* size of data */
|
||||
unsigned int watcher_size;
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ unsigned int pad;
|
||||
+#endif
|
||||
unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
|
||||
};
|
||||
|
||||
@@ -155,6 +170,9 @@ struct ebt_entry_target {
|
||||
} u;
|
||||
/* size of data */
|
||||
unsigned int target_size;
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ unsigned int pad;
|
||||
+#endif
|
||||
unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
|
||||
};
|
||||
|
||||
@@ -162,6 +180,9 @@ struct ebt_entry_target {
|
||||
struct ebt_standard_target {
|
||||
struct ebt_entry_target target;
|
||||
int verdict;
|
||||
+#ifdef KERNEL_64_USERSPACE_32
|
||||
+ unsigned int pad;
|
||||
+#endif
|
||||
};
|
||||
|
||||
/* one entry */
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
From ebf0236270b977a62c522bc32810bc9f8edc72d1 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
||||
Date: Wed, 24 Mar 2021 13:40:14 +0100
|
||||
Subject: [PATCH] configure.ac: add option --enable-kernel-64-userland-32
|
||||
|
||||
The ebtables build system seems to assume that 'sparc64' is the
|
||||
only case where KERNEL_64_USERSPACE_32 is relevant, but this is not true.
|
||||
This situation can happen on many architectures, especially in embedded
|
||||
systems. For example, an Aarch64 processor with kernel in 64-bit but
|
||||
userland build for 32-bit Arm. Or a 64-bit MIPS Octeon III processor, with
|
||||
userland running in the 'n32' ABI.
|
||||
|
||||
While it is possible to set CFLAGS in the environment when calling the
|
||||
configure script, the caller would need to know to not only specify
|
||||
KERNEL_64_USERSPACE_32 but also the EBT_MIN_ALIGN value.
|
||||
|
||||
Instead, add a configure option. All internal details can then be handled by
|
||||
the configure script.
|
||||
|
||||
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
||||
Upstream-Status: http://patchwork.ozlabs.org/project/netfilter-devel/patch/20210518181730.13436-2-patrickdepinguin@gmail.com/
|
||||
---
|
||||
configure.ac | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index c24ede3..3e89c0c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -15,10 +15,17 @@ AS_IF([test "x$LOCKFILE" = x], [LOCKFILE="/var/lib/ebtables/lock"])
|
||||
|
||||
regular_CFLAGS="-Wall -Wunused"
|
||||
regular_CPPFLAGS=""
|
||||
+
|
||||
case "$host" in
|
||||
sparc64-*)
|
||||
- regular_CPPFLAGS="$regular_CPPFLAGS -DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32";;
|
||||
+ enable_kernel_64_userland_32=yes ;;
|
||||
esac
|
||||
+AC_ARG_ENABLE([kernel-64-userland-32],
|
||||
+ AC_HELP_STRING([--enable-kernel-64-userland-32], [indicate that ebtables will be built as a 32-bit application but run under a 64-bit kernel])
|
||||
+)
|
||||
+AS_IF([test "x$enable_kernel_64_userland_32" = xyes],
|
||||
+ [regular_CPPFLAGS="$regular_CPPFLAGS -DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32"]
|
||||
+)
|
||||
|
||||
AC_SUBST([regular_CFLAGS])
|
||||
AC_SUBST([regular_CPPFLAGS])
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
config BR2_PACKAGE_EBTABLES
|
||||
bool "ebtables"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# https://lore.kernel.org/all/20210518181730.13436-1-patrickdepinguin@gmail.com/
|
||||
depends on !BR2_KERNEL_64_USERLAND_32
|
||||
help
|
||||
Ethernet bridge frame table administration
|
||||
|
||||
|
||||
@@ -11,12 +11,6 @@ EBTABLES_LICENSE_FILES = COPYING
|
||||
EBTABLES_CPE_ID_VENDOR = netfilter
|
||||
EBTABLES_SELINUX_MODULES = iptables
|
||||
|
||||
# for 0003-configure.ac-add-option-enable-kernel-64-userland-32.patch
|
||||
EBTABLES_AUTORECONF = YES
|
||||
ifeq ($(BR2_KERNEL_64_USERLAND_32),y)
|
||||
EBTABLES_CONF_OPTS += --enable-kernel-64-userland-32
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EBTABLES_UTILS_SAVE),y)
|
||||
define EBTABLES_INSTALL_TARGET_UTILS_SAVE
|
||||
$(INSTALL) -m 0755 -D $(@D)/ebtables-save.sh $(TARGET_DIR)/usr/sbin/ebtables-legacy-save
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 274db254a6979bde5aad404763a704956940e465843f2a9bd9ed7af22e2c0efc expat-2.6.3.tar.xz
|
||||
sha256 a695629dae047055b37d50a0ff4776d1d45d0a4c842cf4ccee158441f55ff7ee expat-2.6.4.tar.xz
|
||||
sha256 122f2c27000472a201d337b9b31f7eb2b52d091b02857061a8880371612d9534 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EXPAT_VERSION = 2.6.3
|
||||
EXPAT_VERSION = 2.6.4
|
||||
EXPAT_SITE = https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(EXPAT_VERSION))
|
||||
EXPAT_SOURCE = expat-$(EXPAT_VERSION).tar.xz
|
||||
EXPAT_INSTALL_STAGING = YES
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
FBV_VERSION = 1.0b
|
||||
FBV_SITE = http://s-tech.elsat.net.pl/fbv
|
||||
|
||||
# upstream (http://s-tech.elsat.net.pl/fbv) dead
|
||||
FBV_SITE = http://sources.buildroot.net/fbv
|
||||
FBV_LICENSE = GPL-2.0
|
||||
FBV_LICENSE_FILES = COPYING
|
||||
|
||||
|
||||
@@ -529,6 +529,11 @@ else
|
||||
FFMPEG_CONF_OPTS += --disable-altivec
|
||||
endif
|
||||
|
||||
# Fix build failure on several missing assembly instructions
|
||||
ifeq ($(BR2_RISCV_32),y)
|
||||
FFMPEG_CONF_OPTS += --disable-rvv --disable-asm
|
||||
endif
|
||||
|
||||
# Uses __atomic_fetch_add_4
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
FFMPEG_CONF_OPTS += --extra-libs=-latomic
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 8060ec28cbf6e2e3d408665330da4bc48fd094d4f1265d7c58dc75c767463c29 1.16.2.tar.gz
|
||||
sha256 ff81bca86178ef326588176f8bdf817bb3e0fbc891d026960144f69c8a74eb4d foot-1.16.2-git4.tar.gz
|
||||
sha256 d534a23a31500a0ac958d9634b84f532bd73ff1aca1bb8f7debbcbebc16ff39a LICENSE
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
FOOT_VERSION = 1.16.2
|
||||
FOOT_SOURCE = $(FOOT_VERSION).tar.gz
|
||||
FOOT_SITE = https://codeberg.org/dnkl/foot/archive
|
||||
FOOT_SITE = https://codeberg.org/dnkl/foot.git
|
||||
FOOT_SITE_METHOD = git
|
||||
FOOT_LICENSE = MIT
|
||||
FOOT_LICENSE_FILES = LICENSE
|
||||
FOOT_DEPENDENCIES = \
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 7ae9d8bafc65bb5d0f21061ac61dbc6cf93b2b05a5dae9e5eec72ed42388551e frr-8.5.4.tar.gz
|
||||
sha256 5f3a32e66efdf2628548165d10327688847443c342788b31c4ea98368cfacbf8 frr-8.5.6.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FRR_VERSION = 8.5.4
|
||||
FRR_VERSION = 8.5.6
|
||||
FRR_SITE = $(call github,FRRouting,frr,frr-$(FRR_VERSION))
|
||||
FRR_LICENSE = GPL-2.0
|
||||
FRR_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 806641b5ef504488f871b5cbd9e5c356d67d0bd1 Mon Sep 17 00:00:00 2001
|
||||
From: Edgar Bonet <bonet@grenoble.cnrs.fr>
|
||||
Date: Tue, 24 Sep 2024 20:03:18 -0700
|
||||
Subject: [PATCH] check for defined(FE_UNDERFLOW)
|
||||
|
||||
According to fenv(3), the macro FE_UNDERFLOW is defined by fenv.h only
|
||||
if the implementation supports handling of the underflow exception. Do
|
||||
not assume the presence of fenv.h implies FE_UNDERFLOW is defined.
|
||||
|
||||
Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
|
||||
Upstream: https://sourceforge.net/p/gnuplot/gnuplot-main/ci/926d2c26d31f4b69feda372c76a28643ef45359d/
|
||||
Upstream: https://sourceforge.net/p/gnuplot/gnuplot-main/ci/806641b5ef504488f871b5cbd9e5c356d67d0bd1/
|
||||
---
|
||||
src/complexfun.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/complexfun.c b/src/complexfun.c
|
||||
index 7a5d9a13f..7ddb4ed60 100644
|
||||
--- a/src/complexfun.c
|
||||
+++ b/src/complexfun.c
|
||||
@@ -86,7 +86,7 @@
|
||||
int_error(NO_CARET, "%s: error present on entry (errno %d %s)", who, errno, strerror(errno));
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_FENV_H
|
||||
+#if defined (HAVE_FENV_H) && defined (FE_UNDERFLOW)
|
||||
#define handle_underflow( who, var ) \
|
||||
if (errno) { \
|
||||
if (fetestexcept(FE_UNDERFLOW)) { \
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.7.tar.xz.sig
|
||||
sha256 fe302f2b6ad5a564bcb3678eb61616413ed5277aaf8e7bf7cdb9a95a18d9f477 gnutls-3.8.7.tar.xz
|
||||
# https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.8.tar.xz.sig
|
||||
sha256 ac4f020e583880b51380ed226e59033244bc536cad2623f2e26f5afa2939d8fb gnutls-3.8.8.tar.xz
|
||||
# Locally calculated
|
||||
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 doc/COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 doc/COPYING.LESSER
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# When bumping, make sure *all* --without-libfoo-prefix options are in GNUTLS_CONF_OPTS
|
||||
GNUTLS_VERSION_MAJOR = 3.8
|
||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).7
|
||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).8
|
||||
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
||||
GNUTLS_SITE = https://www.gnupg.org/ftp/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
|
||||
GNUTLS_LICENSE = LGPL-2.1+ (core library)
|
||||
@@ -62,11 +62,11 @@ HOST_GNUTLS_CONF_OPTS = \
|
||||
--without-tpm \
|
||||
--without-tpm2 \
|
||||
--disable-openssl-compatibility \
|
||||
--without-libbrotli \
|
||||
--without-brotli \
|
||||
--without-idn \
|
||||
--without-p11-kit \
|
||||
--without-zlib \
|
||||
--without-libzstd
|
||||
--without-zstd
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS_OPENSSL),y)
|
||||
GNUTLS_LICENSE += , GPL-3.0+ (gnutls-openssl library)
|
||||
@@ -77,10 +77,10 @@ GNUTLS_CONF_OPTS += --disable-openssl-compatibility
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
GNUTLS_CONF_OPTS += --with-libbrotli
|
||||
GNUTLS_CONF_OPTS += --with-brotli
|
||||
GNUTLS_DEPENDENCIES += brotli
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-libbrotli
|
||||
GNUTLS_CONF_OPTS += --without-brotli
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
|
||||
@@ -110,10 +110,10 @@ GNUTLS_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
GNUTLS_CONF_OPTS += --with-libzstd
|
||||
GNUTLS_CONF_OPTS += --with-zstd
|
||||
GNUTLS_DEPENDENCIES += zstd
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-libzstd
|
||||
GNUTLS_CONF_OPTS += --without-zstd
|
||||
endif
|
||||
|
||||
# Provide a default CA cert location
|
||||
|
||||
@@ -36,7 +36,7 @@ config BR2_PACKAGE_GOBJECT_INTROSPECTION
|
||||
language bindings can read this metadata and automatically
|
||||
provide bindings to call into the C library.
|
||||
|
||||
https://wiki.gnome.org/action/show/Projects/GObjectIntrospection
|
||||
https://gi.readthedocs.io/
|
||||
|
||||
comment "gobject-introspection needs python3"
|
||||
depends on !BR2_PACKAGE_PYTHON3
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 8b7582eac7e9a691356e18b3bdcbc7b2db09494e040ec980a4a5fb6d0da261bf intel-microcode-20240910.tar.gz
|
||||
sha256 37246208ef68039be752438c72400a688a2238df13a7f5282497c80be2d8366d intel-microcode-20241112.tar.gz
|
||||
sha256 03efb1491c7e899feb2665fa299363e64035e5444c1b8bc1f6ebed30de964e12 license
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
INTEL_MICROCODE_VERSION = 20240910
|
||||
INTEL_MICROCODE_VERSION = 20241112
|
||||
INTEL_MICROCODE_SITE = $(call github,intel,Intel-Linux-Processor-Microcode-Data-Files,microcode-$(INTEL_MICROCODE_VERSION))
|
||||
INTEL_MICROCODE_LICENSE = PROPRIETARY
|
||||
INTEL_MICROCODE_LICENSE_FILES = license
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 fefe9ec8c7b1475449945c934a2360ab12693454892be47a6d288c63eb107ead irssi-1.4.4.tar.xz
|
||||
# Locally calculated after checking pgp signature with key
|
||||
# 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1
|
||||
sha256 72a951cb0ad622785a8962801f005a3a412736c7e7e3ce152f176287c52fe062 irssi-1.4.5.tar.xz
|
||||
# Locally calculated
|
||||
sha256 a1a27cb2ecee8d5378fbb3562f577104a445d6d66fee89286e16758305e63e2b COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
IRSSI_VERSION = 1.4.4
|
||||
IRSSI_VERSION = 1.4.5
|
||||
IRSSI_SOURCE = irssi-$(IRSSI_VERSION).tar.xz
|
||||
IRSSI_SITE = https://codeberg.org/irssi/irssi/releases/download/$(IRSSI_VERSION)
|
||||
IRSSI_LICENSE = GPL-2.0+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://curl.se/download/curl-8.10.1.tar.xz.asc
|
||||
# https://curl.se/download/curl-8.11.0.tar.xz.asc
|
||||
# signed with key 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2
|
||||
sha256 73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee curl-8.10.1.tar.xz
|
||||
sha256 db59cf0d671ca6e7f5c2c5ec177084a33a79e04c97e71cf183a5cdea235054eb curl-8.11.0.tar.xz
|
||||
sha256 adb1fc06547fd136244179809f7b7c2d2ae6c4534f160aa513af9b6a12866a32 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCURL_VERSION = 8.10.1
|
||||
LIBCURL_VERSION = 8.11.0
|
||||
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.xz
|
||||
LIBCURL_SITE = https://curl.se/download
|
||||
LIBCURL_DEPENDENCIES = host-pkgconf \
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 868810a5508d41dd7033d41bdc55312561f3f916d64f5b7be92bc1ff4dcae02a libgit2-1.8.3.tar.gz
|
||||
sha256 49d0fc50ab931816f6bfc1ac68f8d74b760450eebdb5374e803ee36550f26774 libgit2-1.8.4.tar.gz
|
||||
sha256 e3712465634e97cfd850822a4eb5ac7d2f8a10f753189366d5a2060046f28288 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGIT2_VERSION = 1.8.3
|
||||
LIBGIT2_VERSION = 1.8.4
|
||||
LIBGIT2_SITE = $(call github,libgit2,libgit2,v$(LIBGIT2_VERSION))
|
||||
LIBGIT2_LICENSE = \
|
||||
GPL-2.0 with linking exception, \
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 9560941a9d843c0243a71b17a7ac6fe31c7cebb5bce3983db79e52ae7e850491 krb5-1.21.2.tar.gz
|
||||
# from https://web.mit.edu/kerberos/dist/krb5/1.21/krb5-1.21.3.tar.gz.asc
|
||||
# with key C4493CB739F4A89F9852CBC20CBA08575F8372DF
|
||||
sha256 b7a4cd5ead67fb08b980b21abd150ff7217e85ea320c9ed0c6dadd304840ad35 krb5-1.21.3.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 0d5373486138cb176c063db98274b4c4ab6ef3518c4191360736384b780306c2 NOTICE
|
||||
sha256 7601361a275aadbe35c90185519323c28730d60c553683e56fd06cf9c5f749a6 NOTICE
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
LIBKRB5_VERSION_MAJOR = 1.21
|
||||
LIBKRB5_VERSION = $(LIBKRB5_VERSION_MAJOR).2
|
||||
LIBKRB5_VERSION = $(LIBKRB5_VERSION_MAJOR).3
|
||||
LIBKRB5_SITE = https://web.mit.edu/kerberos/dist/krb5/$(LIBKRB5_VERSION_MAJOR)
|
||||
LIBKRB5_SOURCE = krb5-$(LIBKRB5_VERSION).tar.gz
|
||||
LIBKRB5_SUBDIR = src
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 899be4e25ab7fe5799d43f9567510d6f063d2e8f56136dd726b6fd976f9b2253 libmodbus-3.1.10.tar.gz
|
||||
sha256 15b4b2e0f68122c2da9b195de5c330489a9c97d40b4a95d2822378dc14d780e7 libmodbus-3.1.11.tar.gz
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LESSER
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBMODBUS_VERSION = 3.1.10
|
||||
LIBMODBUS_VERSION = 3.1.11
|
||||
LIBMODBUS_SITE = https://github.com/stephane/libmodbus/releases/download/v$(LIBMODBUS_VERSION)
|
||||
LIBMODBUS_LICENSE = LGPL-2.1+
|
||||
LIBMODBUS_LICENSE_FILES = COPYING.LESSER
|
||||
|
||||
@@ -16,10 +16,12 @@ LIBPNG_DEPENDENCIES = host-pkgconf zlib
|
||||
HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib
|
||||
LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config
|
||||
LIBPNG_CONF_OPTS = --disable-tools
|
||||
LIBPNG_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_aarch64),y)
|
||||
LIBPNG_CONF_OPTS += --enable-arm-neon
|
||||
else ifeq ($(BR2_ARM_CPU_HAS_NEON):$(BR2_ARM_SOFT_FLOAT),y:)
|
||||
LIBPNG_CFLAGS += -mfpu=neon
|
||||
LIBPNG_CONF_OPTS += --enable-arm-neon
|
||||
else
|
||||
LIBPNG_CONF_OPTS += --disable-arm-neon
|
||||
@@ -31,5 +33,8 @@ else
|
||||
LIBPNG_CONF_OPTS += --disable-intel-sse
|
||||
endif
|
||||
|
||||
LIBPNG_CONF_ENV = \
|
||||
CFLAGS="$(LIBPNG_CFLAGS)"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
@@ -45,6 +45,7 @@ config BR2_PACKAGE_LIBVIRT_DAEMON
|
||||
bool "libvirtd"
|
||||
default y
|
||||
depends on BR2_INSTALL_LIBSTDCPP # nmap
|
||||
depends on !BR2_KERNEL_64_USERLAND_32 # ebtables
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
select BR2_PACKAGE_DNSMASQ
|
||||
select BR2_PACKAGE_EBTABLES
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_ARCH_IS_64
|
||||
default y if BR2_ARCH_IS_64 && !BR2_mips64 && !BR2_mips64el
|
||||
default y if BR2_arm
|
||||
|
||||
config BR2_PACKAGE_LIBVPL
|
||||
|
||||
@@ -423,12 +423,12 @@ endchoice
|
||||
|
||||
config BR2_DEFAULT_KERNEL_HEADERS
|
||||
string
|
||||
default "4.19.322" if BR2_KERNEL_HEADERS_4_19
|
||||
default "5.4.284" if BR2_KERNEL_HEADERS_5_4
|
||||
default "5.10.228" if BR2_KERNEL_HEADERS_5_10
|
||||
default "5.15.169" if BR2_KERNEL_HEADERS_5_15
|
||||
default "6.1.114" if BR2_KERNEL_HEADERS_6_1
|
||||
default "6.6.58" if BR2_KERNEL_HEADERS_6_6
|
||||
default "4.19.325" if BR2_KERNEL_HEADERS_4_19
|
||||
default "5.4.286" if BR2_KERNEL_HEADERS_5_4
|
||||
default "5.10.230" if BR2_KERNEL_HEADERS_5_10
|
||||
default "5.15.173" if BR2_KERNEL_HEADERS_5_15
|
||||
default "6.1.119" if BR2_KERNEL_HEADERS_6_1
|
||||
default "6.6.63" if BR2_KERNEL_HEADERS_6_6
|
||||
default "6.10.14" if BR2_KERNEL_HEADERS_6_10
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL
|
||||
|
||||
@@ -56,6 +56,10 @@ endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_PAM_LASTLOG),y)
|
||||
LINUX_PAM_CONF_OPTS += --enable-lastlog
|
||||
define LINUX_PAM_LASTLOG_PAMFILE_TWEAK
|
||||
$(SED) 's/^# \(.*pam_lastlog.so.*\)$$/\1/' \
|
||||
$(TARGET_DIR)/etc/pam.d/login
|
||||
endef
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += --disable-lastlog
|
||||
endif
|
||||
@@ -66,6 +70,7 @@ define LINUX_PAM_INSTALL_CONFIG
|
||||
$(TARGET_DIR)/etc/pam.d/login
|
||||
$(INSTALL) -m 0644 -D package/linux-pam/other.pam \
|
||||
$(TARGET_DIR)/etc/pam.d/other
|
||||
$(LINUX_PAM_LASTLOG_PAMFILE_TWEAK)
|
||||
$(LINUX_PAM_SELINUX_PAMFILE_TWEAK)
|
||||
endef
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ password required pam_unix.so nullok
|
||||
session required pam_limits.so
|
||||
session required pam_env.so
|
||||
session required pam_unix.so
|
||||
session optional pam_lastlog.so
|
||||
# session optional pam_lastlog.so
|
||||
# session required pam_selinux.so open
|
||||
|
||||
@@ -28,7 +28,8 @@ PERF_MAKE_FLAGS = \
|
||||
NO_LIBPERL=1 \
|
||||
NO_LIBPYTHON=1 \
|
||||
NO_LIBBIONIC=1 \
|
||||
NO_LIBTRACEEVENT=1
|
||||
NO_LIBTRACEEVENT=1 \
|
||||
NO_SHELLCHECK=1
|
||||
|
||||
# We need to pass an argument to ld for setting the emulation when
|
||||
# building for MIPS architecture, otherwise the default one will always
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From 2c7ff6989bc6161d8a2cc823d3aa7c9cb1deca80 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Wed, 4 Dec 2024 22:59:31 +0100
|
||||
Subject: [PATCH] scripts/build: make it possible to set LDLIBS
|
||||
|
||||
LDLIBS is currently unconditionnally set to '-lm', but doesn't allow
|
||||
the user to provide additional libraries to link with.
|
||||
|
||||
Upstream: dead, last release in 2006
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
scripts/build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/scripts/build b/scripts/build
|
||||
index 60b755c..4820d80 100755
|
||||
--- a/scripts/build
|
||||
+++ b/scripts/build
|
||||
@@ -18,7 +18,7 @@ done
|
||||
|
||||
trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15
|
||||
|
||||
-LDLIBS=-lm
|
||||
+LDLIBS="${LDLIBS} -lm"
|
||||
|
||||
# check for HP-UX's ANSI compiler
|
||||
echo "main(int ac, char *av[]) { int i; }" > ${BASE}$$.c
|
||||
--
|
||||
2.47.0
|
||||
|
||||
@@ -26,7 +26,6 @@ LMBENCH_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
|
||||
|
||||
define LMBENCH_CONFIGURE_CMDS
|
||||
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
||||
sed -i 's/LDLIBS=/LDLIBS+=/g' $(@D)/scripts/build
|
||||
sed -i '/cd .*doc/d' $(@D)/src/Makefile
|
||||
sed -i '/include/d' $(@D)/src/Makefile
|
||||
touch $@
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.8:
|
||||
sha256 241c68402cef653e586be3ce28d57da24598eb0df13fcdea9d99bfce58717132 mbedtls-2.28.8.tar.bz2
|
||||
# From https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.9:
|
||||
sha256 e85ea97aaf78dd6c0a5ba2e54dd5932ffa15f39abfc189c26beef7684630c02b mbedtls-2.28.9.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b LICENSE
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MBEDTLS_VERSION = 2.28.8
|
||||
MBEDTLS_SITE = https://github.com/Mbed-TLS/mbedtls/releases/download/v$(MBEDTLS_VERSION)
|
||||
MBEDTLS_VERSION = 2.28.9
|
||||
MBEDTLS_SITE = https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-$(MBEDTLS_VERSION)
|
||||
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION).tar.bz2
|
||||
MBEDTLS_CONF_OPTS = \
|
||||
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -std=c99" \
|
||||
|
||||
@@ -0,0 +1,390 @@
|
||||
From 18d41744338d6e291612e66e8baace4faaad7b2e Mon Sep 17 00:00:00 2001
|
||||
From: Peter Korsgaard <peter@korsgaard.com>
|
||||
Date: Fri, 6 Dec 2024 08:27:53 +0100
|
||||
Subject: [PATCH] Revert "Fix NetBSD build"
|
||||
|
||||
This reverts commit 88b7bb3521cc51cb1e80630395ae736040cc8ff8.
|
||||
|
||||
This unfortunately broke non-thread builds, so revert it until fixed
|
||||
upstream.
|
||||
|
||||
Upstream: https://github.com/eclipse-mosquitto/mosquitto/issues/3183
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
lib/dummypthread.h | 14 ++++++++++++
|
||||
lib/handle_pubackcomp.c | 4 ++--
|
||||
lib/mosquitto_internal.h | 6 +++++-
|
||||
lib/packet_mosq.c | 46 ++++++++++++++++++++--------------------
|
||||
lib/pthread_compat.h | 28 ------------------------
|
||||
lib/util_mosq.c | 32 ++++++++++++++--------------
|
||||
6 files changed, 60 insertions(+), 70 deletions(-)
|
||||
create mode 100644 lib/dummypthread.h
|
||||
delete mode 100644 lib/pthread_compat.h
|
||||
|
||||
diff --git a/lib/dummypthread.h b/lib/dummypthread.h
|
||||
new file mode 100644
|
||||
index 00000000..c0eb2c15
|
||||
--- /dev/null
|
||||
+++ b/lib/dummypthread.h
|
||||
@@ -0,0 +1,14 @@
|
||||
+#ifndef DUMMYPTHREAD_H
|
||||
+#define DUMMYPTHREAD_H
|
||||
+
|
||||
+#define pthread_create(A, B, C, D)
|
||||
+#define pthread_join(A, B)
|
||||
+#define pthread_cancel(A)
|
||||
+#define pthread_testcancel()
|
||||
+
|
||||
+#define pthread_mutex_init(A, B)
|
||||
+#define pthread_mutex_destroy(A)
|
||||
+#define pthread_mutex_lock(A)
|
||||
+#define pthread_mutex_unlock(A)
|
||||
+
|
||||
+#endif
|
||||
diff --git a/lib/handle_pubackcomp.c b/lib/handle_pubackcomp.c
|
||||
index d70d602d..4568bb40 100644
|
||||
--- a/lib/handle_pubackcomp.c
|
||||
+++ b/lib/handle_pubackcomp.c
|
||||
@@ -57,9 +57,9 @@ int handle__pubackcomp(struct mosquitto *mosq, const char *type)
|
||||
}
|
||||
}
|
||||
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgs_out.mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgs_out.mutex);
|
||||
util__increment_send_quota(mosq);
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgs_out.mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgs_out.mutex);
|
||||
|
||||
rc = packet__read_uint16(&mosq->in_packet, &mid);
|
||||
if(rc) return rc;
|
||||
diff --git a/lib/mosquitto_internal.h b/lib/mosquitto_internal.h
|
||||
index 31120258..ac71ffbf 100644
|
||||
--- a/lib/mosquitto_internal.h
|
||||
+++ b/lib/mosquitto_internal.h
|
||||
@@ -33,7 +33,11 @@ Contributors:
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
-#include <pthread_compat.h>
|
||||
+#if defined(WITH_THREADING) && !defined(WITH_BROKER)
|
||||
+# include <pthread.h>
|
||||
+#else
|
||||
+# include <dummypthread.h>
|
||||
+#endif
|
||||
|
||||
#ifdef WITH_SRV
|
||||
# include <ares.h>
|
||||
diff --git a/lib/packet_mosq.c b/lib/packet_mosq.c
|
||||
index b063eb71..fd716baf 100644
|
||||
--- a/lib/packet_mosq.c
|
||||
+++ b/lib/packet_mosq.c
|
||||
@@ -129,13 +129,13 @@ void packet__cleanup_all_no_locks(struct mosquitto *mosq)
|
||||
|
||||
void packet__cleanup_all(struct mosquitto *mosq)
|
||||
{
|
||||
- COMPAT_pthread_mutex_lock(&mosq->current_out_packet_mutex);
|
||||
- COMPAT_pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
|
||||
packet__cleanup_all_no_locks(mosq);
|
||||
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet)
|
||||
packet->to_process = packet->packet_length;
|
||||
|
||||
packet->next = NULL;
|
||||
- COMPAT_pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
|
||||
#ifdef WITH_BROKER
|
||||
if(db.config->max_queued_messages > 0 && mosq->out_packet_count >= db.config->max_queued_messages){
|
||||
@@ -174,7 +174,7 @@ int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet)
|
||||
}
|
||||
mosq->out_packet_last = packet;
|
||||
mosq->out_packet_count++;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
#ifdef WITH_BROKER
|
||||
# ifdef WITH_WEBSOCKETS
|
||||
if(mosq->wsi){
|
||||
@@ -232,8 +232,8 @@ int packet__write(struct mosquitto *mosq)
|
||||
if(!mosq) return MOSQ_ERR_INVAL;
|
||||
if(mosq->sock == INVALID_SOCKET) return MOSQ_ERR_NO_CONN;
|
||||
|
||||
- COMPAT_pthread_mutex_lock(&mosq->current_out_packet_mutex);
|
||||
- COMPAT_pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
if(mosq->out_packet && !mosq->current_out_packet){
|
||||
mosq->current_out_packet = mosq->out_packet;
|
||||
mosq->out_packet = mosq->out_packet->next;
|
||||
@@ -242,7 +242,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
}
|
||||
mosq->out_packet_count--;
|
||||
}
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
|
||||
#ifdef WITH_BROKER
|
||||
if(mosq->current_out_packet){
|
||||
@@ -252,7 +252,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
|
||||
state = mosquitto__get_state(mosq);
|
||||
if(state == mosq_cs_connect_pending){
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -274,10 +274,10 @@ int packet__write(struct mosquitto *mosq)
|
||||
|| errno == WSAENOTCONN
|
||||
#endif
|
||||
){
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
}else{
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
switch(errno){
|
||||
case COMPAT_ECONNRESET:
|
||||
return MOSQ_ERR_CONN_LOST;
|
||||
@@ -296,7 +296,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
if(((packet->command)&0xF6) == CMD_PUBLISH){
|
||||
G_PUB_MSGS_SENT_INC(1);
|
||||
#ifndef WITH_BROKER
|
||||
- COMPAT_pthread_mutex_lock(&mosq->callback_mutex);
|
||||
+ pthread_mutex_lock(&mosq->callback_mutex);
|
||||
if(mosq->on_publish){
|
||||
/* This is a QoS=0 message */
|
||||
mosq->in_callback = true;
|
||||
@@ -309,7 +309,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
mosq->on_publish_v5(mosq, mosq->userdata, packet->mid, 0, NULL);
|
||||
mosq->in_callback = false;
|
||||
}
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->callback_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->callback_mutex);
|
||||
}else if(((packet->command)&0xF0) == CMD_DISCONNECT){
|
||||
do_client_disconnect(mosq, MOSQ_ERR_SUCCESS, NULL);
|
||||
packet__cleanup(packet);
|
||||
@@ -321,7 +321,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
}
|
||||
|
||||
/* Free data and reset values */
|
||||
- COMPAT_pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_lock(&mosq->out_packet_mutex);
|
||||
mosq->current_out_packet = mosq->out_packet;
|
||||
if(mosq->out_packet){
|
||||
mosq->out_packet = mosq->out_packet->next;
|
||||
@@ -330,7 +330,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
}
|
||||
mosq->out_packet_count--;
|
||||
}
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->out_packet_mutex);
|
||||
|
||||
packet__cleanup(packet);
|
||||
mosquitto__free(packet);
|
||||
@@ -338,9 +338,9 @@ int packet__write(struct mosquitto *mosq)
|
||||
#ifdef WITH_BROKER
|
||||
mosq->next_msg_out = db.now_s + mosq->keepalive;
|
||||
#else
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
mosq->next_msg_out = mosquitto_time() + mosq->keepalive;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
#endif
|
||||
}
|
||||
#ifdef WITH_BROKER
|
||||
@@ -348,7 +348,7 @@ int packet__write(struct mosquitto *mosq)
|
||||
mux__remove_out(mosq);
|
||||
}
|
||||
#endif
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->current_out_packet_mutex);
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -536,9 +536,9 @@ int packet__read(struct mosquitto *mosq)
|
||||
#ifdef WITH_BROKER
|
||||
keepalive__update(mosq);
|
||||
#else
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
mosq->last_msg_in = mosquitto_time();
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
#endif
|
||||
}
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
@@ -571,9 +571,9 @@ int packet__read(struct mosquitto *mosq)
|
||||
#ifdef WITH_BROKER
|
||||
keepalive__update(mosq);
|
||||
#else
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
mosq->last_msg_in = mosquitto_time();
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
diff --git a/lib/pthread_compat.h b/lib/pthread_compat.h
|
||||
deleted file mode 100644
|
||||
index ca1f27dc..00000000
|
||||
--- a/lib/pthread_compat.h
|
||||
+++ /dev/null
|
||||
@@ -1,28 +0,0 @@
|
||||
-#ifndef PTHREAD_COMPAT_
|
||||
-#define PTHREAD_COMPAT_
|
||||
-
|
||||
-#if defined(WITH_THREADING) && !defined(WITH_BROKER)
|
||||
-# include <pthread.h>
|
||||
-
|
||||
-# define COMPAT_pthread_create(A, B, C, D) pthread_create((A), (B), (C), (D))
|
||||
-# define COMPAT_pthread_join(A, B) pthread_join((A), (B))
|
||||
-# define COMPAT_pthread_cancel(A) pthread_cancel((A))
|
||||
-# define COMPAT_pthread_testcancel() pthread_testcancel()
|
||||
-
|
||||
-# define COMPAT_pthread_mutex_init(A, B) pthread_mutex_init((A), (B))
|
||||
-# define COMPAT_pthread_mutex_destroy(A) pthread_mutex_init((A))
|
||||
-# define COMPAT_pthread_mutex_lock(A) pthread_mutex_lock((A))
|
||||
-# define COMPAT_pthread_mutex_unlock(A) pthread_mutex_unlock((A))
|
||||
-#else
|
||||
-# define COMPAT_pthread_create(A, B, C, D)
|
||||
-# define COMPAT_pthread_join(A, B)
|
||||
-# define COMPAT_pthread_cancel(A)
|
||||
-# define COMPAT_pthread_testcancel()
|
||||
-
|
||||
-# define COMPAT_pthread_mutex_init(A, B)
|
||||
-# define COMPAT_pthread_mutex_destroy(A)
|
||||
-# define COMPAT_pthread_mutex_lock(A)
|
||||
-# define COMPAT_pthread_mutex_unlock(A)
|
||||
-#endif
|
||||
-
|
||||
-#endif
|
||||
diff --git a/lib/util_mosq.c b/lib/util_mosq.c
|
||||
index 4bebcbd0..22f8c4d5 100644
|
||||
--- a/lib/util_mosq.c
|
||||
+++ b/lib/util_mosq.c
|
||||
@@ -87,10 +87,10 @@ int mosquitto__check_keepalive(struct mosquitto *mosq)
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
next_msg_out = mosq->next_msg_out;
|
||||
last_msg_in = mosq->last_msg_in;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
if(mosq->keepalive && mosq->sock != INVALID_SOCKET &&
|
||||
(now >= next_msg_out || now - last_msg_in >= mosq->keepalive)){
|
||||
|
||||
@@ -98,10 +98,10 @@ int mosquitto__check_keepalive(struct mosquitto *mosq)
|
||||
if(state == mosq_cs_active && mosq->ping_t == 0){
|
||||
send__pingreq(mosq);
|
||||
/* Reset last msg times to give the server time to send a pingresp */
|
||||
- COMPAT_pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_lock(&mosq->msgtime_mutex);
|
||||
mosq->last_msg_in = now;
|
||||
mosq->next_msg_out = now + mosq->keepalive;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->msgtime_mutex);
|
||||
}else{
|
||||
#ifdef WITH_BROKER
|
||||
# ifdef WITH_BRIDGE
|
||||
@@ -118,7 +118,7 @@ int mosquitto__check_keepalive(struct mosquitto *mosq)
|
||||
}else{
|
||||
rc = MOSQ_ERR_KEEPALIVE;
|
||||
}
|
||||
- COMPAT_pthread_mutex_lock(&mosq->callback_mutex);
|
||||
+ pthread_mutex_lock(&mosq->callback_mutex);
|
||||
if(mosq->on_disconnect){
|
||||
mosq->in_callback = true;
|
||||
mosq->on_disconnect(mosq, mosq->userdata, rc);
|
||||
@@ -129,7 +129,7 @@ int mosquitto__check_keepalive(struct mosquitto *mosq)
|
||||
mosq->on_disconnect_v5(mosq, mosq->userdata, rc, NULL);
|
||||
mosq->in_callback = false;
|
||||
}
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->callback_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->callback_mutex);
|
||||
|
||||
return rc;
|
||||
#endif
|
||||
@@ -150,11 +150,11 @@ uint16_t mosquitto__mid_generate(struct mosquitto *mosq)
|
||||
uint16_t mid;
|
||||
assert(mosq);
|
||||
|
||||
- COMPAT_pthread_mutex_lock(&mosq->mid_mutex);
|
||||
+ pthread_mutex_lock(&mosq->mid_mutex);
|
||||
mosq->last_mid++;
|
||||
if(mosq->last_mid == 0) mosq->last_mid++;
|
||||
mid = mosq->last_mid;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->mid_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->mid_mutex);
|
||||
|
||||
return mid;
|
||||
}
|
||||
@@ -280,14 +280,14 @@ int util__random_bytes(void *bytes, int count)
|
||||
|
||||
int mosquitto__set_state(struct mosquitto *mosq, enum mosquitto_client_state state)
|
||||
{
|
||||
- COMPAT_pthread_mutex_lock(&mosq->state_mutex);
|
||||
+ pthread_mutex_lock(&mosq->state_mutex);
|
||||
#ifdef WITH_BROKER
|
||||
if(mosq->state != mosq_cs_disused)
|
||||
#endif
|
||||
{
|
||||
mosq->state = state;
|
||||
}
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->state_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->state_mutex);
|
||||
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
}
|
||||
@@ -296,9 +296,9 @@ enum mosquitto_client_state mosquitto__get_state(struct mosquitto *mosq)
|
||||
{
|
||||
enum mosquitto_client_state state;
|
||||
|
||||
- COMPAT_pthread_mutex_lock(&mosq->state_mutex);
|
||||
+ pthread_mutex_lock(&mosq->state_mutex);
|
||||
state = mosq->state;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->state_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->state_mutex);
|
||||
|
||||
return state;
|
||||
}
|
||||
@@ -306,18 +306,18 @@ enum mosquitto_client_state mosquitto__get_state(struct mosquitto *mosq)
|
||||
#ifndef WITH_BROKER
|
||||
void mosquitto__set_request_disconnect(struct mosquitto *mosq, bool request_disconnect)
|
||||
{
|
||||
- COMPAT_pthread_mutex_lock(&mosq->state_mutex);
|
||||
+ pthread_mutex_lock(&mosq->state_mutex);
|
||||
mosq->request_disconnect = request_disconnect;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->state_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->state_mutex);
|
||||
}
|
||||
|
||||
bool mosquitto__get_request_disconnect(struct mosquitto *mosq)
|
||||
{
|
||||
bool request_disconnect;
|
||||
|
||||
- COMPAT_pthread_mutex_lock(&mosq->state_mutex);
|
||||
+ pthread_mutex_lock(&mosq->state_mutex);
|
||||
request_disconnect = mosq->request_disconnect;
|
||||
- COMPAT_pthread_mutex_unlock(&mosq->state_mutex);
|
||||
+ pthread_mutex_unlock(&mosq->state_mutex);
|
||||
|
||||
return request_disconnect;
|
||||
}
|
||||
--
|
||||
2.39.5
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 c13407edd0e33be73cae72514cb234f8612e1c0e54401c9448daffd3a240158b queue.h?rev=1.70
|
||||
sha256 c13407edd0e33be73cae72514cb234f8612e1c0e54401c9448daffd3a240158b queue.h
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
# No main site, just using extra downloads
|
||||
MUSL_COMPAT_HEADERS_QUEUE_H = http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/queue.h?rev=1.70
|
||||
MUSL_COMPAT_HEADERS_QUEUE_H = https://raw.githubusercontent.com/NetBSD/src/03be82a6b173b3c62116b7a186067fed3004dd44/sys/sys/queue.h
|
||||
|
||||
MUSL_COMPAT_HEADERS_EXTRA_DOWNLOADS = $(MUSL_COMPAT_HEADERS_QUEUE_H)
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 9c78557af0a5e521cdb46a4ca7630f2987d2523e Mon Sep 17 00:00:00 2001
|
||||
From: Rich Felker <dalias@aerifal.cx>
|
||||
Date: Sat, 10 Aug 2024 19:49:24 -0400
|
||||
Subject: [PATCH] use hidden visibility for C entry point function _start_c
|
||||
|
||||
the file-level crt_arch.h asm fragments generally make direct
|
||||
(non-PLT) calls from _start to _start_c, which is only valid when
|
||||
there is a local, non-interposable definition for _start_c. generally,
|
||||
the linker is expected to know that local definitions in a main
|
||||
executable (as opposed to shared library) output are non-interposable,
|
||||
making this work, but historically there have been linker bugs in this
|
||||
area, and microblaze is reportedly still broken, flagging the
|
||||
relocation for the call as a textrel.
|
||||
|
||||
the equivalent _dlstart_c, called from the same crt_arch.h asm
|
||||
fragments, has always used hidden visibility without problem, and
|
||||
semantically it should be hidden, so make it hidden. this ensures the
|
||||
direct call is always valid regardless of whether the linker properly
|
||||
special-cases main executable output.
|
||||
|
||||
Upstream: https://git.musl-libc.org/cgit/musl/commit/?id=9c78557af0a5e521cdb46a4ca7630f2987d2523e
|
||||
Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
|
||||
---
|
||||
crt/crt1.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/crt/crt1.c b/crt/crt1.c
|
||||
index 8fe8ab5d..10601215 100644
|
||||
--- a/crt/crt1.c
|
||||
+++ b/crt/crt1.c
|
||||
@@ -11,7 +11,7 @@ weak void _fini();
|
||||
int __libc_start_main(int (*)(), int, char **,
|
||||
void (*)(), void(*)(), void(*)());
|
||||
|
||||
-void _start_c(long *p)
|
||||
+hidden void _start_c(long *p)
|
||||
{
|
||||
int argc = p[0];
|
||||
char **argv = (void *)(p+1);
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -79,7 +79,7 @@ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
|
||||
NFS_UTILS_DEPENDENCIES += systemd
|
||||
NFS_UTILS_DEPENDENCIES += systemd host-systemd
|
||||
else
|
||||
NFS_UTILS_CONF_OPTS += --without-systemd
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
Fix crash when binding IPv6 address
|
||||
|
||||
Reference:
|
||||
https://bugs.ntp.org/show_bug.cgi?id=3928
|
||||
|
||||
Upstream: https://people.nwtime.org/hart/ntp-stable-3928-29.tar.gz
|
||||
|
||||
Ported fix from updated tarball provided by upstream:
|
||||
https://bugs.ntp.org/show_bug.cgi?id=3928#c14
|
||||
|
||||
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
|
||||
---
|
||||
ntpd/ntp_io.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
Index: ntp-4.2.8p18/ntpd/ntp_io.c
|
||||
===================================================================
|
||||
--- ntp-4.2.8p18.orig/ntpd/ntp_io.c
|
||||
+++ ntp-4.2.8p18/ntpd/ntp_io.c
|
||||
@@ -1917,15 +1917,15 @@ update_interfaces(
|
||||
}
|
||||
new_interface_found = TRUE;
|
||||
DPRINT_INTERFACE(3,
|
||||
- (ep, "updating ", " new - created\n"));
|
||||
+ (ep2, "updating ", " new - created\n"));
|
||||
}
|
||||
else {
|
||||
DPRINT_INTERFACE(3,
|
||||
- (ep, "updating ", " new - FAILED"));
|
||||
+ (ep2, "updating ", " new - FAILED"));
|
||||
|
||||
msyslog(LOG_ERR,
|
||||
"cannot bind address %s",
|
||||
- stoa(&ep->sin));
|
||||
+ stoa(&ep2->sin));
|
||||
}
|
||||
free(ep2);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
# From https://www.php.net/downloads.php
|
||||
sha256 89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018 php-8.3.13.tar.xz
|
||||
sha256 58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7 php-8.3.14.tar.xz
|
||||
|
||||
# License file
|
||||
sha256 b42e4df5e50e6ecda1047d503d6d91d71032d09ed1027ba1ef29eed26f890c5a LICENSE
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PHP_VERSION = 8.3.13
|
||||
PHP_VERSION = 8.3.14
|
||||
PHP_SITE = https://www.php.net/distributions
|
||||
PHP_SOURCE = php-$(PHP_VERSION).tar.xz
|
||||
PHP_INSTALL_STAGING = YES
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
comment "picotool needs a toolchain w/ C++, threads, gcc >= 4.9"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_PACKAGE_PICOTOOL
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From https://ftp.postgresql.org/pub/source/v16.4/postgresql-16.4.tar.bz2.sha256
|
||||
sha256 971766d645aa73e93b9ef4e3be44201b4f45b5477095b049125403f9f3386d6f postgresql-16.4.tar.bz2
|
||||
# From https://ftp.postgresql.org/pub/source/v16.6/postgresql-16.6.tar.bz2.sha256
|
||||
sha256 23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b postgresql-16.6.tar.bz2
|
||||
# License file, Locally calculated
|
||||
sha256 9bf20ee493926a7e17a74bc7f05089fbc014269667b1540bc35a6b194a40c9de COPYRIGHT
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POSTGRESQL_VERSION = 16.4
|
||||
POSTGRESQL_VERSION = 16.6
|
||||
POSTGRESQL_SOURCE = postgresql-$(POSTGRESQL_VERSION).tar.bz2
|
||||
POSTGRESQL_SITE = https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)
|
||||
POSTGRESQL_LICENSE = PostgreSQL
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
From f37d178d5c25c547835d054fbb1eda32c25034b3 Mon Sep 17 00:00:00 2001
|
||||
From: Craig Small <csmall@dropbear.xyz>
|
||||
Date: Mon, 30 Sep 2024 17:26:01 +1000
|
||||
Subject: [PATCH] build-sys: Fix pidfd_open checking
|
||||
|
||||
The previous build setup would check for pidfd_open using
|
||||
AC_CHECK_FUNC and would be incorrectly reported as true.
|
||||
|
||||
Also, if pidfd_open() and __NR_pidfd_open were not present,
|
||||
pidwait would silently not be built.
|
||||
|
||||
So, changes:
|
||||
compile a small programin using pidfd_open to test it properly
|
||||
conditionally try to find NR_pidfd_open if the function fails
|
||||
complain if neither are present
|
||||
have --disable-pidwait configure option so you are explicit in
|
||||
not wanting and knowing you wont get pidwait
|
||||
|
||||
References:
|
||||
#352
|
||||
commit d9c3e3676d86094abaa239b3218f57bf49d70b4f
|
||||
commit 17f94796a9b3c4f1ff28829107a82107dcb362b4
|
||||
|
||||
Signed-off-by: Craig Small <csmall@dropbear.xyz>
|
||||
|
||||
Upstream: https://gitlab.com/procps-ng/procps/-/commit/2507bc475782ff5e0541d37c780dff1e293c9553
|
||||
|
||||
Signed-off-by: Scott Fan <fancp2007@gmail.com>
|
||||
[Scott: backported to version 4.0.4]
|
||||
---
|
||||
configure.ac | 45 ++++++++++++++++++++++++++++++---------------
|
||||
1 file changed, 30 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index fec27e3f..0719fcd1 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -170,21 +170,6 @@ AC_TRY_COMPILE([#include <errno.h>],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no))
|
||||
|
||||
-AC_CHECK_FUNC([pidfd_open], [enable_pidwait=yes], [
|
||||
- AC_MSG_CHECKING([for __NR_pidfd_open])
|
||||
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||
-#include <sys/syscall.h>
|
||||
-#ifndef __NR_pidfd_open
|
||||
-#error __NR_pidfd_open not defined
|
||||
-#endif
|
||||
- ])], [enable_pidwait=yes], [enable_pidwait=no])
|
||||
- AC_MSG_RESULT([$enable_pidwait])
|
||||
-])
|
||||
-if test "$enable_pidwait" = yes; then
|
||||
- AC_DEFINE([ENABLE_PIDWAIT], [1], [Enable pidwait])
|
||||
-fi
|
||||
-AM_CONDITIONAL([BUILD_PIDWAIT], [test x$enable_pidwait = xyes])
|
||||
-
|
||||
dnl watch8bit must be before the AC_ARG_WITH set as it sets up ncurses
|
||||
AC_SUBST([WITH_WATCH8BIT])
|
||||
AC_ARG_ENABLE([watch8bit],
|
||||
@@ -321,6 +306,36 @@ AC_ARG_ENABLE([pidof],
|
||||
)
|
||||
AM_CONDITIONAL(BUILD_PIDOF, test "x$enable_pidof" = xyes)
|
||||
|
||||
+# If pidwait is enabled, we need either pidfd_open() or __NR_pidfd_open need to be defined
|
||||
+# Cannot use AC_CHECK_FUNC as it (incorrectly) passes with pidfd_open missing
|
||||
+AC_ARG_ENABLE([pidwait],
|
||||
+ AS_HELP_STRING([--disable-pidwait], [do not build pidwait]),
|
||||
+ [], [
|
||||
+ enable_pidwait=yes
|
||||
+ AC_DEFINE(ENABLE_PIDWAIT, 1, [enable pidwait])
|
||||
+ ]
|
||||
+)
|
||||
+AM_CONDITIONAL(BUILD_PIDWAIT, test "x$enable_pidwait" = xyes)
|
||||
+AC_MSG_CHECKING([for pidfd_open()])
|
||||
+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ [pidfd_open(1,1)]]])],
|
||||
+ have_pidfd_open=yes; AC_MSG_RESULT([yes]) ,
|
||||
+ have_pidfd_open=no; AC_MSG_RESULT([no])
|
||||
+ )
|
||||
+
|
||||
+AS_IF([[test "x$enable_pidwait" = xyes -a "x$have_pidfd_open" = xno]],
|
||||
+ AC_MSG_CHECKING([for __NR_pidfd_open])
|
||||
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||
+#include <sys/syscall.h>
|
||||
+#ifndef __NR_pidfd_open
|
||||
+#error __NR_pidfd_open not defined
|
||||
+#endif
|
||||
+ ])],
|
||||
+ AC_MSG_RESULT([yes]),
|
||||
+ AC_MSG_RESULT([no])
|
||||
+ AC_MSG_ERROR([Neither pidfd_open or __NR_pidfd_open found. Disable pidwait with configure option --disable-pidwait])
|
||||
+ )
|
||||
+ ,[])
|
||||
+
|
||||
AC_ARG_ENABLE([kill],
|
||||
AS_HELP_STRING([--disable-kill], [do not build kill]),
|
||||
[], [enable_kill=yes]
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From 1e2d53e1d86cb75e8f39b42b9a5c409e5d3261ed Mon Sep 17 00:00:00 2001
|
||||
From: oli-ben <24815225-oli-ben@users.noreply.gitlab.com>
|
||||
Date: Wed, 27 Nov 2024 20:17:11 +0000
|
||||
Subject: [PATCH] build-sys: Fix define of HAVE_PIDFD_OPEN
|
||||
|
||||
Fix cross-compilation issues when using GCC-12.3
|
||||
* configure fails to detect that the sysroot does support the pidfd_open
|
||||
syscall wrapper
|
||||
* configure fails to define HAVE_PIDFD_OPEN which is used in pgrep.c,
|
||||
so it fails building, because __NR_pidfd_open is then undefined
|
||||
|
||||
Upstream: https://gitlab.com/procps-ng/procps/-/commit/587efb47df7ddbfda4e6abdd1e7792a2531a238f
|
||||
|
||||
Signed-off-by: Scott Fan <fancp2007@gmail.com>
|
||||
[Scott: backported to version 4.0.4]
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 0719fcd1..6242a8f8 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -317,8 +317,8 @@ AC_ARG_ENABLE([pidwait],
|
||||
)
|
||||
AM_CONDITIONAL(BUILD_PIDWAIT, test "x$enable_pidwait" = xyes)
|
||||
AC_MSG_CHECKING([for pidfd_open()])
|
||||
-AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ [pidfd_open(1,1)]]])],
|
||||
- have_pidfd_open=yes; AC_MSG_RESULT([yes]) ,
|
||||
+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[pidfd_open(1,1)]])],
|
||||
+ have_pidfd_open=yes; AC_DEFINE(HAVE_PIDFD_OPEN, 1, [pidfd_open is defined]) AC_MSG_RESULT([yes]),
|
||||
have_pidfd_open=no; AC_MSG_RESULT([no])
|
||||
)
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 81ded587d2484b6f470f2d5c837c5591491377ce Mon Sep 17 00:00:00 2001
|
||||
From: Craig Small <csmall@dropbear.xyz>
|
||||
Date: Thu, 28 Nov 2024 07:20:42 +1100
|
||||
Subject: [PATCH] pgrep: Include sys/syscall.h if making pidwait
|
||||
|
||||
sys/syscall.h would only be included if pidwait was made
|
||||
and we found pidfd_open() The previous commit fixed the
|
||||
finding part, but in fact we want sys/syscall.h either
|
||||
way because syscall() is defined there too.
|
||||
|
||||
Most of the time the header is included by other headers
|
||||
but adding it explicitly means if that header is removed or
|
||||
changed it still works.
|
||||
|
||||
Signed-off-by: Craig Small <csmall@dropbear.xyz>
|
||||
|
||||
Upstream: https://gitlab.com/procps-ng/procps/-/commit/5acbb5dc1587d688de646d739a97251eb893bbb0
|
||||
|
||||
Signed-off-by: Scott Fan <fancp2007@gmail.com>
|
||||
[Scott: backported to version 4.0.4]
|
||||
---
|
||||
src/pgrep.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/src/pgrep.c b/src/pgrep.c
|
||||
index d8e57dff..a2607532 100644
|
||||
--- a/src/pgrep.c
|
||||
+++ b/src/pgrep.c
|
||||
@@ -44,9 +44,7 @@
|
||||
|
||||
#ifdef ENABLE_PIDWAIT
|
||||
#include <sys/epoll.h>
|
||||
-#ifndef HAVE_PIDFD_OPEN
|
||||
#include <sys/syscall.h>
|
||||
-#endif /* !HAVE_PIDFD_OPEN */
|
||||
#endif
|
||||
|
||||
/* EXIT_SUCCESS is 0 */
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -16,6 +16,8 @@ PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
# Applying 0001-build-sys-Add-systemd-elogind-to-w.patch touches Makefile.am
|
||||
# Applying 0002-fix-ncurses-h-include.patch touches configure.ac
|
||||
# Applying 0003-build-sys-Fix-pidfd_open-checking.patch touches configure.ac
|
||||
# Applying 0004-build-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch touches configure.ac
|
||||
PROCPS_NG_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
config BR2_PACKAGE_PYTHON_PSYCOPG2
|
||||
bool "python-psycopg2"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
depends on !BR2_STATIC_LIBS # postgresql
|
||||
depends on !BR2_OPTIMIZE_FAST # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
@@ -21,10 +23,11 @@ config BR2_PACKAGE_PYTHON_PSYCOPG2
|
||||
customized thanks to a flexible objects adaptation system.
|
||||
Psycopg 2 is both Unicode and Python 3 friendly.
|
||||
|
||||
http://initd.org/psycopg/
|
||||
https://github.com/psycopg/psycopg2/
|
||||
|
||||
comment "python-psycopg2 needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
comment "python-psycopg2 needs a toolchain w/ dynamic library, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
comment "python-psycopg2 can't be built with Optimize for fast"
|
||||
depends on BR2_OPTIMIZE_FAST
|
||||
|
||||
@@ -21,8 +21,10 @@ define HOST_PYTHON_SIP_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
# Race condition on fast machine between sipconfig.py install and
|
||||
# {sipdistutils.py,mk_distinfo.py} scripts.
|
||||
define HOST_PYTHON_SIP_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) install -C $(@D)
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE1) install -C $(@D)
|
||||
endef
|
||||
|
||||
define PYTHON_SIP_CONFIGURE_CMDS
|
||||
@@ -42,8 +44,10 @@ define PYTHON_SIP_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
# Race condition on fast machine between sipconfig.py install and
|
||||
# {sipdistutils.py,mk_distinfo.py} scripts.
|
||||
define PYTHON_SIP_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) install -C $(@D)
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE1) install -C $(@D)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -46,7 +46,6 @@ QT6BASE_INSTALL_STAGING = YES
|
||||
QT6BASE_CONF_OPTS = \
|
||||
-DQT_HOST_PATH=$(HOST_DIR) \
|
||||
-DINSTALL_ARCHDATADIR=lib/qt6 \
|
||||
-DFEATURE_concurrent=OFF \
|
||||
-DFEATURE_xml=OFF \
|
||||
-DFEATURE_sql=OFF \
|
||||
-DFEATURE_testlib=OFF \
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
QUAGGA_VERSION = 1.2.4
|
||||
QUAGGA_SITE = http://download.savannah.gnu.org/releases/quagga
|
||||
# upstream (http://download.savannah.gnu.org/releases/quagga) dead
|
||||
QUAGGA_SITE = http://sources.buildroot.net/quagga
|
||||
QUAGGA_INSTALL_STAGING = YES
|
||||
QUAGGA_DEPENDENCIES = host-gawk host-pkgconf
|
||||
QUAGGA_LICENSE = GPL-2.0+
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RT_TESTS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/rt-tests
|
||||
RT_TESTS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/rt-tests/older
|
||||
RT_TESTS_SOURCE = rt-tests-$(RT_TESTS_VERSION).tar.xz
|
||||
RT_TESTS_VERSION = 2.7
|
||||
RT_TESTS_LICENSE = GPL-2.0+
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
From 7ef4ef027c5064502bba23869aed9d1595a4e301 Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <7ef4ef027c5064502bba23869aed9d1595a4e301.1732873390.git.baruch@tkos.co.il>
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Fri, 29 Nov 2024 11:36:16 +0200
|
||||
Subject: [PATCH] Unconditionally define _GNU_SOURCE
|
||||
|
||||
uClibc also uses _GNU_SOURCE to expose glibc compatible API extensions.
|
||||
But toolchain built with uClibc don't define __gnu_linux__. This leads
|
||||
to implicit declaration warnings at build time. With GCC 14 these
|
||||
warnings become errors by default.
|
||||
|
||||
For example:
|
||||
|
||||
.../sexpect-2.3.14/server.c: In function 'expect_exact':
|
||||
.../sexpect-2.3.14/server.c:630:17: error: implicit declaration of function 'strcasestr'; did you mean 'strcasecmp'?
|
||||
[-Wimplicit-function-declaration]
|
||||
630 | found = strcasestr(g.expbuf, g.conn.pass.pattern);
|
||||
| ^~~~~~~~~~
|
||||
| strcasecmp
|
||||
|
||||
Define _GNU_SOURCE unconditionally to fix the build.
|
||||
|
||||
Upstream: https://github.com/clarkwang/sexpect/pull/40
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
main.c | 2 --
|
||||
pty.c | 2 --
|
||||
server.c | 2 --
|
||||
3 files changed, 6 deletions(-)
|
||||
|
||||
diff --git a/main.c b/main.c
|
||||
index 886050a887c1..2bc7c867e297 100644
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
-#if defined(__gnu_linux__) || defined(__CYGWIN__)
|
||||
#define _GNU_SOURCE
|
||||
-#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
diff --git a/pty.c b/pty.c
|
||||
index bf4f6e99805e..f90325d87c77 100644
|
||||
--- a/pty.c
|
||||
+++ b/pty.c
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
-#if defined(__gnu_linux__) || defined(__CYGWIN__)
|
||||
#define _GNU_SOURCE
|
||||
-#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
diff --git a/server.c b/server.c
|
||||
index c7e41e0a7dc4..308852f08089 100644
|
||||
--- a/server.c
|
||||
+++ b/server.c
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
-#if defined(__gnu_linux__) || defined(__CYGWIN__)
|
||||
#define _GNU_SOURCE
|
||||
-#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -25,6 +25,8 @@ endef
|
||||
define SSHGUARD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 $(@D)/examples/sshguard.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/sshguard.service
|
||||
$(SED) 's:/usr/local/sbin/sshguard:/usr/sbin/sshguard:g' \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/sshguard.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
From 56ab1c54497d9fac74380ff9e11aaf931a917d2b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= <raphael.melotte@mind.be>
|
||||
Date: Fri, 14 Jun 2024 14:37:29 +0200
|
||||
Subject: [PATCH] src/basic/missing_loop.h: fix missing LOOP_SET_BLOCK_SIZE
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Builds with kernels headers < 4.14 fail with:
|
||||
|
||||
../src/shared/loop-util.c: In function ‘loop_configure_fallback’:
|
||||
../src/shared/loop-util.c:237:31: error: ‘LOOP_SET_BLOCK_SIZE’ undeclared (first use in this function); did you mean ‘LOOP_SET_DIRECT_IO’?
|
||||
if (ioctl(fd, LOOP_SET_BLOCK_SIZE, (unsigned long) c->block_size) < 0)
|
||||
^~~~~~~~~~~~~~~~~~~
|
||||
LOOP_SET_DIRECT_IO
|
||||
|
||||
Fixes: https://github.com/systemd/systemd/issues/33341
|
||||
Upstream: https://github.com/systemd/systemd/commit/56ab1c54497d9fac74380ff9e11aaf931a917d2b
|
||||
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
|
||||
---
|
||||
src/basic/missing_loop.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/basic/missing_loop.h b/src/basic/missing_loop.h
|
||||
index b88501d78b..f83a14c914 100644
|
||||
--- a/src/basic/missing_loop.h
|
||||
+++ b/src/basic/missing_loop.h
|
||||
@@ -29,3 +29,7 @@ assert_cc(LOOP_SET_DIRECT_IO == 0x4C08);
|
||||
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
|
||||
# define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN)
|
||||
#endif
|
||||
+
|
||||
+#ifndef LOOP_SET_BLOCK_SIZE
|
||||
+# define LOOP_SET_BLOCK_SIZE 0x4C09
|
||||
+#endif
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# sha256 locally computed
|
||||
sha256 7861d544190f938cac1b242624d78c96fe2ebbc7b72f86166e88b50451c6fa58 systemd-256.4.tar.gz
|
||||
sha256 896d76ff65c88f5fd9e42f90d152b0579049158a163431dd77cdc57748b1d7b0 systemd-256.7.tar.gz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSE.GPL2
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1
|
||||
sha256 e5a8645ad94aab24e312dd0c6be2aa54236eb9374480b1b14ea5c61598874fd5 LICENSES/BSD-2-Clause.txt
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user