mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
Ports: Update x265 to 4.1
This commit is contained in:
@@ -351,7 +351,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
||||
| [`which`](which/) | GNU which | 2.21 | https://www.gnu.org/software/which/ |
|
||||
| [`wireguard-tools`](wireguard-tools/) | WireGuard Tools | 1.0.20250521 | https://www.wireguard.com/ |
|
||||
| [`x264`](x264/) | x264 | b35605a | https://www.videolan.org/developers/x264.html |
|
||||
| [`x265`](x265/) | x265 | 3.6 | https://bitbucket.org/multicoreware/x265_git/wiki/Home |
|
||||
| [`x265`](x265/) | x265 | 4.1 | https://bitbucket.org/multicoreware/x265_git/wiki/Home |
|
||||
| [`xash3d-fwgs`](xash3d-fwgs/) | Xash3D FWGS game engine | 2022.12.26 | https://github.com/FWGS/xash3d-fwgs |
|
||||
| [`xmp-cli`](xmp-cli/) | Extended Module Player | 4.2.0 | https://github.com/libxmp/xmp-cli |
|
||||
| [`xorriso`](xorriso/) | xorriso | 1.5.6 | https://www.gnu.org/software/xorriso |
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='x265'
|
||||
version='3.6'
|
||||
version='4.1'
|
||||
workdir="${port}_${version}"
|
||||
files=(
|
||||
"https://bitbucket.org/multicoreware/x265_git/downloads/x265_${version}.tar.gz#663531f341c5389f460d730e62e10a4fcca3428ca2ca109693867bc5fe2e2807"
|
||||
"https://bitbucket.org/multicoreware/x265_git/downloads/x265_${version}.tar.gz#a31699c6a89806b74b0151e5e6a7df65de4b49050482fe5ebf8a4379d7af8f29"
|
||||
)
|
||||
useconfigure='true'
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Linus Groh <mail@linusgroh.de>
|
||||
Date: Mon, 4 Aug 2025 23:58:38 +0100
|
||||
Subject: [PATCH] Replace alloca() with __builtin_alloca()
|
||||
|
||||
---
|
||||
source/x265cli.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/source/x265cli.cpp b/source/x265cli.cpp
|
||||
index 6ca6fb495205f7e72a75c2093f2ae097d5c90a59..4b239abffaff04de577cf1da08d593198866ed33 100755
|
||||
--- a/source/x265cli.cpp
|
||||
+++ b/source/x265cli.cpp
|
||||
@@ -1138,7 +1138,7 @@ namespace X265_NS {
|
||||
}
|
||||
|
||||
rewind(zoneFile);
|
||||
- char **args = (char**)alloca(256 * sizeof(char *));
|
||||
+ char **args = (char**)__builtin_alloca(256 * sizeof(char *));
|
||||
param->rc.zones = x265_zone_alloc(param->rc.zonefileCount, 1);;
|
||||
for (int i = 0; i < param->rc.zonefileCount; i++)
|
||||
{
|
||||
@@ -1494,4 +1494,4 @@ namespace X265_NS {
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
-#endif
|
||||
\ No newline at end of file
|
||||
+#endif
|
||||
7
Ports/x265/patches/ReadMe.md
Normal file
7
Ports/x265/patches/ReadMe.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Patches for x265 on SerenityOS
|
||||
|
||||
## `0001-Replace-alloca-with-__builtin_alloca.patch`
|
||||
|
||||
Replace alloca() with __builtin_alloca()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user