Skip to content

Commit

Permalink
Ports/zstd: Update zstd to version 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EWouters authored and gmta committed Oct 12, 2023
1 parent df50d6c commit af7b460
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Ports/AvailablePorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,4 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`zig`](zig/) | Zig programming language | 0.12.0-dev.141+ddf5859c2 | https://ziglang.org/ |
| [`zlib`](zlib/) | zlib | 1.3 | https://www.zlib.net/ |
| [`zsh`](zsh/) | Z Shell (Zsh) | 5.9 | https://www.zsh.org |
| [`zstd`](zstd/) | Zstandard | 1.5.2 | https://facebook.github.io/zstd/ |
| [`zstd`](zstd/) | Zstandard | 1.5.5 | https://facebook.github.io/zstd/ |
4 changes: 2 additions & 2 deletions Ports/zstd/package.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='zstd'
version='1.5.2'
version='1.5.5'
files=(
"https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz#7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0"
"https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz#9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4"
)
useconfigure='true'

Expand Down
21 changes: 21 additions & 0 deletions Ports/zstd/patches/0003-Include-stdio.h-in-programs-util.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: EWouters <[email protected]>
Date: Sat, 2 Sep 2023 19:05:41 +0200
Subject: [PATCH] Include stdio.h in `programs/util.h`

---
programs/util.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/programs/util.h b/programs/util.h
index 8234646bf3dc61e482f8331795b8bf54a7aa0746..4a8596169126b19f7612a743a0b4576c5c97c414 100644
--- a/programs/util.h
+++ b/programs/util.h
@@ -24,6 +24,7 @@ extern "C" {
#include <sys/types.h> /* stat, utime */
#include <sys/stat.h> /* stat, chmod */
#include "../lib/common/mem.h" /* U64 */
+#include <stdio.h>


/*-************************************************************
5 changes: 5 additions & 0 deletions Ports/zstd/patches/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Fix linker soname flags
Make platform.h understand that serenity is posix-compliant


## `0003-Include-stdio.h-in-programs-util.h.patch`

Include stdio.h in `programs/util.h`


0 comments on commit af7b460

Please sign in to comment.