Currently, the build system dev-util/b2-4.9.3, notably used
by Boost, crashes on Apple M1 w/ macOS with a Segmentation
Fault. This prevents one from using the tool, and also making
building Boost impossible. It's also notable since it contains
the keyword "~x64-macos", so it should receive first-class
macOS support.
It has been determined that when the NULL-terminated variadic
function call_rule() is invoked, the value 0 is passed as the
last argument to act as a terminator. However, this is an
integer value, which is incompatible with the pointer data type
expected by call_rule().
This is undefined behavior in C, correct operation is not guaranteed.
In fact, it causes b2 to crash on Apple M1 when GCC is used - the
loop is not terminated when it should, instead, it keeps
running, creating the following error:
lol_add failed due to reached limit of 19 elements
In some cases, it can even corrupt the internal state of the
program, creating an infinite loop.
This commit fixes the problem by explicitly casting the value 0
to the correct pointer type (OBJECT *).
Since the existence of the bug doesn't prevent one from installing
the package, it can lurk inside the system and remain undetected,
furthermore, it's technically a C programming bug, other platforms
could've been affected as well in theory. Thus, we also bump the
package version.
Closes: https://bugs.gentoo.org/895524
Signed-off-by: Yifeng Li <tomli@tomli.me>
Closes: https://github.com/gentoo/gentoo/pull/29681
Signed-off-by: Sam James <sam@gentoo.org>
Currently, when the NULL-terminated variadic function
filter_create_ext() is invoked, the value "0" is passed as
the last argument to act as a terminator. However, this is
an integer value, which is incompatible with the pointer
data type expected by filter_create_ext().
This is undefined behavior in C, correct operation is not
guaranteed. In fact, it causes flex to crash on Apple M1
when GCC is used - the loop is not terminated when it should,
instead, it keeps running, corrupting the argument list for
invoking m4. As a result, it creates the following error:
> flex: fatal internal error, exec of gm4 failed
This commit fixes the problem by explicitly casting the value
0 to the correct pointer type (char *).
Since the existence of the bug doesn't always prevent a Gentoo
Prefix bootstrapping, it can lurk inside the system and remain
undetected, furthermore, it's technically a C programming bug,
other platforms could've been affected as well in theory. Thus,
we also bump the package version.
Closes: https://bugs.gentoo.org/871324
Signed-off-by: Yifeng Li <tomli@tomli.me>
Signed-off-by: Sam James <sam@gentoo.org>
As discussed in bug #895524 with QA, remove hack that should've never
been committed to be honestly. M1 macOS users will have to temp add
this on their configs, while I sort out which packages can be keyworded.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Bluetooth: Check key sizes only when Secure Simple Pairing is
enabled. See bug #686758
tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig.
See bug #710790. Thanks to Phil Stracchino
sign-file: full functionality with modern LibreSSL
Kernel Self Protection patch
CPU Optimization patch
Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO
Patch to enable link security restrictions by default.
Patch to support for namespace user.pax.* on tmpfs.
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
rocm-opencl-runtime-5.4.3 is passing all tests on my 6700XT based on
rocr-runtime, rocm-device-libs version 5.3.3
Actually rocm-opencl-runtime-5.3.3 fails two tests. So bumping to
rocm-opencl-runtime-5.4.3 should be beneficial.
My test results for 3 suites:
-------------------------------------------------
The OpenCL Testing Module oclgl Version = 0
-------------------------------------------------
Total Passed Tests: 6 (100.00%)
-------------------------------------------------
The OpenCL Testing Module oclruntime Version = 0
-------------------------------------------------
Total Passed Tests: 37 (100.00%)
-------------------------------------------------
The OpenCL Testing Module oclperf Version = 0
-------------------------------------------------
Total Passed Tests: 51 (100.00%)
While for rocm-opencl-runtime-5.3.3:
-------------------------------------------------
The OpenCL Testing Module oclruntime Version = 0
-------------------------------------------------
Total Passed Tests: 35 ( 94.59%)
Total Failed Tests: 2 ( 5.41%)
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Add the references to related bugs to backported patches that fix gcc-13
compile issues.
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
add `--enable-socketpair` which should help applications that use
`libcurl` to know when to call it again, rather than blindly retrying
and waiting. There should be a slight performance increase at the cost
of some additional sockets.
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
Signed-off-by: Sam James <sam@gentoo.org>