Skip to content

Commit 39f259f

Browse files
committed
update upstream to 1.13.1
1 parent 809157d commit 39f259f

5 files changed

Lines changed: 555 additions & 483 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const libxkbcommon_dependency = b.dependency("libxkbcommon", .{
3131
// This example will assume that the config root of the host system is in `/usr`.
3232
// This does not work on distributions that don't follow the Filesystem Hierarchy Standard (FHS) like NixOS.
3333
.@"xkb-config-root" = "/usr/share/X11/xkb",
34+
.@"xkb-legacy-root" = "/usr/share/X11/xkb", // Legacy X11 config root
3435
3536
// The X locale root.
3637
// Will default to "${INSTALL_PREFIX}/share/X11/locale" i.e. `zig-out/share/X11/locale`.

‎build.zig‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const std = @import("std");
22

3-
const version: std.SemanticVersion = .{ .major = 1, .minor = 11, .patch = 0 };
3+
const version = std.SemanticVersion.parse(@import("build.zig.zon").version) catch unreachable;
44

55
pub fn build(b: *std.Build) void {
66
const upstream = b.dependency("libxkbcommon", .{});
@@ -30,9 +30,10 @@ pub fn build(b: *std.Build) void {
3030

3131
// Most of these config options have not been tested.
3232

33-
const xkb_config_root = b.option([]const u8, "xkb-config-root", "The XKB config root") orelse b.pathJoin(&.{ b.install_prefix, "share/X11/xkb" });
33+
const xkb_legacy_root = b.option([]const u8, "xkb-legacy-root", " [default=$prefix/share/X11/locale]") orelse b.pathJoin(&.{ b.install_prefix, "share/X11/xkb" });
34+
const xkb_config_root = b.option([]const u8, "xkb-config-root", "The XKB config root [default=$prefix/share/X11/locale]") orelse xkb_legacy_root;
3435
const xkb_config_extra_path = b.option([]const u8, "xkb-config-extra-path", "Extra lookup path for system-wide XKB data [default=$sysconfdir/xkb]") orelse "/etc/xkb";
35-
const x_locale_root = b.option([]const u8, "x-locale-root", "The X locale root [default=$datadir/X11/locale]") orelse b.pathJoin(&.{ b.install_prefix, "share/X11/locale" });
36+
const x_locale_root = b.option([]const u8, "x-locale-root", "The X locale root [default=$prefix/share/X11/locale]") orelse b.pathJoin(&.{ b.install_prefix, "share/X11/locale" });
3637
// const bash_completion_path = b.option([]const u8, "bash-completion-path", "Directory for bash completion scripts");
3738
const default_rules = b.option([]const u8, "default-rules", "Default XKB ruleset") orelse "evdev";
3839
const default_model = b.option([]const u8, "default-model", "Default XKB model") orelse "pc105";
@@ -52,6 +53,7 @@ pub fn build(b: *std.Build) void {
5253
.LIBXKBCOMMON_VERSION = b.fmt("{f}", .{version}),
5354
.LIBXKBCOMMON_TOOL_PATH = b.pathJoin(&.{ b.install_prefix, "libexec/xkbcommon" }),
5455
._GNU_SOURCE = 1,
56+
.DFLT_XKB_LEGACY_ROOT = xkb_legacy_root,
5557
.DFLT_XKB_CONFIG_ROOT = xkb_config_root,
5658
.DFLT_XKB_CONFIG_EXTRA_PATH = xkb_config_extra_path,
5759
.XLOCALEDIR = x_locale_root,
@@ -61,7 +63,10 @@ pub fn build(b: *std.Build) void {
6163
.DEFAULT_XKB_VARIANT = .null,
6264
.DEFAULT_XKB_OPTIONS = .null,
6365
.HAVE_UNISTD_H = 1,
66+
.HAVE_DIRENT_H = 1,
67+
.HAVE_XKB_EXTENSIONS_DIRECTORIES = 1,
6468
.HAVE___BUILTIN_EXPECT = 1,
69+
.HAVE_REAL_PATH = 1,
6570
.HAVE_EACCESS = if (target.result.os.tag == .linux) @as(i64, 1) else null,
6671
.HAVE_EUIDACCESS = if (target.result.os.tag == .linux) @as(i64, 1) else null,
6772
.HAVE_MMAP = if (target.result.os.tag != .windows) @as(i64, 1) else null,
@@ -286,6 +291,7 @@ const libxkbcommon_sources: []const []const u8 = &.{
286291
"src/keysym-case-mappings.c",
287292
"src/keysym-utf.c",
288293
"src/keymap.c",
294+
"src/keymap-compare.c",
289295
"src/keymap-priv.c",
290296
"src/rmlvo.c",
291297
"src/scanner-utils.c",
@@ -301,9 +307,11 @@ const libxkbcommon_x11_sources: []const []const u8 = &.{
301307
"src/x11/keymap.c",
302308
"src/x11/state.c",
303309
"src/x11/util.c",
310+
"src/context.c",
304311
"src/context-priv.c",
305312
"src/keymap-priv.c",
306313
"src/atom.c",
314+
"src/utils.c",
307315
};
308316

309317
const libxkbregistry_sources: []const []const u8 = &.{

‎build.zig.zon‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.{
22
.name = .libxkbcommon,
3-
.version = "1.11.0-1",
4-
.minimum_zig_version = "0.15.1",
3+
.version = "1.13.1",
4+
.minimum_zig_version = "0.15.2",
55
.dependencies = .{
66
.libxkbcommon = .{
7-
.url = "git+https://github.com/xkbcommon/libxkbcommon.git?ref=xkbcommon-1.11.0#0f9cefb1fedb23433666fa5d9045e48ff030c006",
8-
.hash = "N-V-__8AAFRAZAD02nId1w02lyWXmN-hvo873BSh9wZDxjSN",
7+
.url = "git+https://github.com/xkbcommon/libxkbcommon.git?ref=xkbcommon-1.13.1#6f76d19db72b5d450e927b41e1e96cbe3252aba8",
8+
.hash = "N-V-__8AALGdawC4U4VZt8pBwXK8gBVv2OTdm2naBwU9xHcb",
99
},
1010
.libxml2 = .{
11-
.url = "git+https://github.com/allyourcodebase/libxml2.git?ref=2.15.1#532cdc21c1c25b2f3f63ed355392b80cc405cbe0",
12-
.hash = "libxml2-2.15.1-qHdjhi9MAADPDiXFeNsWnUmr03JdmfAnVMNmcnL28rzM",
11+
.url = "git+https://github.com/allyourcodebase/libxml2.git?ref=2.15.1-2#2528fad1bf17a0a70999930cfd9280554f547787",
12+
.hash = "libxml2-2.15.1-2-qHdjhmNMAAAiZOWqVridicq2oMf5NHv0n9W41bz9FtMM",
1313
.lazy = true,
1414
},
1515
},

0 commit comments

Comments
 (0)