Skip to content

Commit

Permalink
kbd: 2.6.4 -> 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
trofi committed Dec 30, 2024
1 parent 070ae1c commit d4d5fa0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
12 changes: 6 additions & 6 deletions pkgs/by-name/kb/kbd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

stdenv.mkDerivation rec {
pname = "kbd";
version = "2.6.4";
version = "2.7.1";

src = fetchurl {
url = "mirror://kernel/linux/utils/kbd/${pname}-${version}.tar.xz";
sha256 = "sha256-UZ+NCHrsyn4KM80IS++SwGbrGXMWZmU9zHDJ1xqkCSY=";
sha256 = "sha256-8WfYmdkrVszxL29JNVFz+ThwqV8V2K7r9f3NKKYhrKg=";
};

# vlock is moved into its own output, since it depends on pam. This
Expand Down Expand Up @@ -58,10 +58,10 @@ stdenv.mkDerivation rec {
# Fix paths to decompressors. Trailing space to avoid replacing `xz` in `".xz"`.
substituteInPlace src/libkbdfile/kbdfile.c \
--replace 'gzip ' '${gzip}/bin/gzip ' \
--replace 'bzip2 ' '${bzip2.bin}/bin/bzip2 ' \
--replace 'xz ' '${xz.bin}/bin/xz ' \
--replace 'zstd ' '${zstd.bin}/bin/zstd '
--replace-fail 'gzip ' '${gzip}/bin/gzip ' \
--replace-fail 'bzip2 ' '${bzip2.bin}/bin/bzip2 ' \
--replace-fail 'xz ' '${xz.bin}/bin/xz ' \
--replace-fail 'zstd ' '${zstd.bin}/bin/zstd '
sed -i '
1i prefix:=$(vlock)
Expand Down
19 changes: 10 additions & 9 deletions pkgs/by-name/kb/kbd/search-paths.patch
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Without this patch, kbd will only look inside
};
@@ -55,5 +58,6 @@ static const char *const unisuffixes[] = {
/* hide partial fonts a bit - loading a single one is a bad idea */
const char *const partfontdirpath[] = {
static const char *const partfontdirpath[] = {
+ "/etc/kbd/" FONTDIR "/" PARTIALDIR "/",
DATADIR "/" FONTDIR "/" PARTIALDIR "/",
NULL
Expand All @@ -68,13 +68,14 @@ Without this patch, kbd will only look inside
--- a/src/setfont.c
+++ b/src/setfont.c
@@ -48,8 +48,8 @@ usage(void)
" -v Be verbose.\n"
" -C <cons> Indicate console device to be used.\n"
" -V Print version and exit.\n"
- "Files are loaded from the current directory or %s/*/.\n"),
- DATADIR);
+ "Files are loaded from the current directory or %s/*/ or %s/*/.\n"),
+ DATADIR, "/etc/kbd");
exit(EX_USAGE);
"\n"
- "Files are loaded from the %s/*/.\n"),
- DATADIR);
+ "Files are loaded from the %s/*/ or %s/*/.\n"),
+ DATADIR, "/etc/kbd");

print_report_bugs();

exit(retcode);
}

0 comments on commit d4d5fa0

Please sign in to comment.