-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We stopped building for Ubuntu 22.04 here because the build was broken. This commit builds for 22.04 again by applying a couple light patches to the Ghostty source to be compatible with older libraries in 22.04.
- Loading branch information
Showing
5 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# We want to isntall minisign via apt if possible for build security. | ||
# But it's not available that way in 22.04. | ||
|
||
set -e | ||
|
||
source /etc/os-release | ||
|
||
if [ $(lsb_release -sr) = "22.04" ]; then | ||
DEBIAN_FRONTEND="noninteractive" apt-get -qq update | ||
apt-get -qq -y --no-install-recommends install ca-certificates | ||
rm -rf /var/lib/apt/lists/* | ||
wget -q "https://github.com/jedisct1/minisign/releases/download/0.11/minisign-0.11-linux.tar.gz" | ||
tar -xzf minisign-0.11-linux.tar.gz | ||
mv "minisign-linux/$(uname -m)/minisign" /usr/local/bin | ||
rm -r minisign-linux | ||
else | ||
DEBIAN_FRONTEND="noninteractive" apt-get -qq update | ||
apt-get -qq -y --no-install-recommends install minisign | ||
rm -rf /var/lib/apt/lists/* | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
diff --git a/pkg/freetype/face.zig b/pkg/freetype/face.zig | ||
index eea3c685..f57f9af0 100644 | ||
--- a/pkg/freetype/face.zig | ||
+++ b/pkg/freetype/face.zig | ||
@@ -33,8 +33,8 @@ pub const Face = struct { | ||
|
||
/// A macro that returns true whenever a face object contains an ‘sbix’ | ||
/// OpenType table and outline glyphs. | ||
- pub fn hasSBIX(self: Face) bool { | ||
- return c.FT_HAS_SBIX(self.handle); | ||
+ pub fn hasSBIX(_: Face) bool { | ||
+ return false; | ||
} | ||
|
||
/// A macro that returns true whenever a face object contains some | ||
diff --git a/pkg/oniguruma/errors.zig b/pkg/oniguruma/errors.zig | ||
index d63a481b..69cd2d51 100644 | ||
--- a/pkg/oniguruma/errors.zig | ||
+++ b/pkg/oniguruma/errors.zig | ||
@@ -44,7 +44,6 @@ pub const Error = error{ | ||
RetryLimitInMatchOver, | ||
RetryLimitInSearchOver, | ||
SubexpCallLimitInSearchOver, | ||
- DefaultEncodingIsNotSet, | ||
SpecifiedEncodingCantConvertToWideChar, | ||
FailToInitialize, | ||
InvalidArgument, | ||
@@ -67,7 +66,6 @@ pub const Error = error{ | ||
EndPatternWithUnmatchedParenthesis, | ||
EndPatternInGroup, | ||
UndefinedGroupOption, | ||
- InvalidGroupOption, | ||
InvalidPosixBracketType, | ||
InvalidLookBehindPattern, | ||
InvalidRepeatRangePattern, | ||
@@ -130,7 +128,6 @@ const error_code_map: []const struct { Error, c_int } = &.{ | ||
.{ Error.RetryLimitInMatchOver, c.ONIGERR_RETRY_LIMIT_IN_MATCH_OVER }, | ||
.{ Error.RetryLimitInSearchOver, c.ONIGERR_RETRY_LIMIT_IN_SEARCH_OVER }, | ||
.{ Error.SubexpCallLimitInSearchOver, c.ONIGERR_SUBEXP_CALL_LIMIT_IN_SEARCH_OVER }, | ||
- .{ Error.DefaultEncodingIsNotSet, c.ONIGERR_DEFAULT_ENCODING_IS_NOT_SET }, | ||
.{ Error.SpecifiedEncodingCantConvertToWideChar, c.ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR }, | ||
.{ Error.FailToInitialize, c.ONIGERR_FAIL_TO_INITIALIZE }, | ||
.{ Error.InvalidArgument, c.ONIGERR_INVALID_ARGUMENT }, | ||
@@ -153,7 +150,6 @@ const error_code_map: []const struct { Error, c_int } = &.{ | ||
.{ Error.EndPatternWithUnmatchedParenthesis, c.ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS }, | ||
.{ Error.EndPatternInGroup, c.ONIGERR_END_PATTERN_IN_GROUP }, | ||
.{ Error.UndefinedGroupOption, c.ONIGERR_UNDEFINED_GROUP_OPTION }, | ||
- .{ Error.InvalidGroupOption, c.ONIGERR_INVALID_GROUP_OPTION }, | ||
.{ Error.InvalidPosixBracketType, c.ONIGERR_INVALID_POSIX_BRACKET_TYPE }, | ||
.{ Error.InvalidLookBehindPattern, c.ONIGERR_INVALID_LOOK_BEHIND_PATTERN }, | ||
.{ Error.InvalidRepeatRangePattern, c.ONIGERR_INVALID_REPEAT_RANGE_PATTERN }, | ||
diff --git a/src/font/face/freetype.zig b/src/font/face/freetype.zig | ||
index b56e9469..ba85b973 100644 | ||
--- a/src/font/face/freetype.zig | ||
+++ b/src/font/face/freetype.zig | ||
@@ -284,10 +284,6 @@ pub const Face = struct { | ||
.color = self.face.hasColor(), | ||
}) catch return false; | ||
|
||
- // If the glyph is SVG we assume colorized | ||
- const glyph = self.face.handle.*.glyph; | ||
- if (glyph.*.format == freetype.c.FT_GLYPH_FORMAT_SVG) return true; | ||
- | ||
return false; | ||
} | ||
|