Revert "kbd: 2.0.3 -> 2.0.4"
This reverts commit fd43b508775dd9490cc1314c4239ab48265d4529. ``` substitute(): ERROR: Invalid command line argument: /nix/store/8f42syfzv3cpw3jjq96sdzvnclivi783-kbd-2.0.4/bin/unicode_stop ``` @rnhmjoj please check
This commit is contained in:
parent
b116fa5ff2
commit
00bf3a9dca
18
pkgs/os-specific/linux/kbd/console-fix.patch
Normal file
18
pkgs/os-specific/linux/kbd/console-fix.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff --git a/src/loadkeys.c b/src/loadkeys.c
|
||||||
|
index 6b23f68..adf65a0 100644
|
||||||
|
--- a/src/loadkeys.c
|
||||||
|
+++ b/src/loadkeys.c
|
||||||
|
@@ -166,10 +166,10 @@ main(int argc, char *argv[])
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
- /* get console */
|
||||||
|
- fd = getfd(console);
|
||||||
|
-
|
||||||
|
if (!(options & OPT_M) && !(options & OPT_B)) {
|
||||||
|
+ /* get console */
|
||||||
|
+ fd = getfd(console);
|
||||||
|
+
|
||||||
|
/* check whether the keyboard is in Unicode mode */
|
||||||
|
if (ioctl(fd, KDGKBMODE, &kbd_mode) ||
|
||||||
|
ioctl(fd, KDGETMODE, &kd_mode)) {
|
@ -1,15 +1,12 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook,
|
{ stdenv, fetchurl, autoreconfHook, gzip, bzip2, pkgconfig, flex, check, pam }:
|
||||||
gzip, bzip2, pkgconfig, flex, check,
|
|
||||||
pam, coreutils
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kbd-${version}";
|
name = "kbd-${version}";
|
||||||
version = "2.0.4";
|
version = "2.0.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/utils/kbd/${name}.tar.xz";
|
url = "mirror://kernel/linux/utils/kbd/${name}.tar.xz";
|
||||||
sha256 = "124swm93dm4ca0pifgkrand3r9gvj3019d4zkfxsj9djpvv0mnaz";
|
sha256 = "0ppv953gn2zylcagr4z6zg5y2x93dxrml29plypg6xgbq3hrv2bs";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
@ -18,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--disable-nls"
|
"--disable-nls"
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./search-paths.patch ];
|
patches = [ ./console-fix.patch ./search-paths.patch ];
|
||||||
|
|
||||||
postPatch =
|
postPatch =
|
||||||
''
|
''
|
||||||
@ -37,12 +34,6 @@ stdenv.mkDerivation rec {
|
|||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
substituteInPlace $out/bin/unicode_{start,stop} \
|
|
||||||
--replace /usr/bin/tty ${coreutils}/bin/tty
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
buildInputs = [ check pam ];
|
buildInputs = [ check pam ];
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig flex ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig flex ];
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
--- a/src/libkeymap/analyze.l
|
diff -ru3 kbd-2.0.3-old/src/libkeymap/analyze.l kbd-2.0.3/src/libkeymap/analyze.l
|
||||||
+++ b/src/libkeymap/analyze.l
|
--- kbd-2.0.3-old/src/libkeymap/analyze.l 2016-07-03 02:31:28.258958092 +0300
|
||||||
@@ -101,6 +101,9 @@ stack_pop(struct lk_ctx *ctx, void *scan
|
+++ kbd-2.0.3/src/libkeymap/analyze.l 2016-07-03 02:44:53.042592223 +0300
|
||||||
|
@@ -99,6 +99,9 @@
|
||||||
static const char *const include_dirpath0[] = { "", 0 };
|
static const char *const include_dirpath0[] = { "", 0 };
|
||||||
static const char *const include_dirpath1[] = { "", "../include/", "../../include/", 0 };
|
static const char *const include_dirpath1[] = { "", "../include/", "../../include/", 0 };
|
||||||
static const char *const include_dirpath3[] = {
|
static const char *const include_dirpath3[] = {
|
||||||
@ -10,9 +11,10 @@
|
|||||||
DATADIR "/" KEYMAPDIR "/include/",
|
DATADIR "/" KEYMAPDIR "/include/",
|
||||||
DATADIR "/" KEYMAPDIR "/i386/include/",
|
DATADIR "/" KEYMAPDIR "/i386/include/",
|
||||||
DATADIR "/" KEYMAPDIR "/mac/include/", 0
|
DATADIR "/" KEYMAPDIR "/mac/include/", 0
|
||||||
--- a/src/loadkeys.c
|
diff -ru3 kbd-2.0.3-old/src/loadkeys.c kbd-2.0.3/src/loadkeys.c
|
||||||
+++ b/src/loadkeys.c
|
--- kbd-2.0.3-old/src/loadkeys.c 2016-07-03 02:31:28.260958091 +0300
|
||||||
@@ -27,7 +27,7 @@
|
+++ kbd-2.0.3/src/loadkeys.c 2016-07-03 02:34:34.123871103 +0300
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
#include "keymap.h"
|
#include "keymap.h"
|
||||||
|
|
||||||
static const char *progname = NULL;
|
static const char *progname = NULL;
|
||||||
@ -21,9 +23,10 @@
|
|||||||
static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
|
static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
|
||||||
|
|
||||||
static void __attribute__ ((noreturn))
|
static void __attribute__ ((noreturn))
|
||||||
--- a/src/loadunimap.c
|
diff -ru3 kbd-2.0.3-old/src/loadunimap.c kbd-2.0.3/src/loadunimap.c
|
||||||
+++ b/src/loadunimap.c
|
--- kbd-2.0.3-old/src/loadunimap.c 2016-07-03 02:31:28.259958091 +0300
|
||||||
@@ -30,7 +30,7 @@
|
+++ kbd-2.0.3/src/loadunimap.c 2016-07-03 02:33:06.803911971 +0300
|
||||||
|
@@ -28,7 +28,7 @@
|
||||||
extern char *progname;
|
extern char *progname;
|
||||||
extern int force;
|
extern int force;
|
||||||
|
|
||||||
@ -32,9 +35,10 @@
|
|||||||
static const char *const unisuffixes[] = { "", ".uni", ".sfm", 0 };
|
static const char *const unisuffixes[] = { "", ".uni", ".sfm", 0 };
|
||||||
|
|
||||||
#ifdef MAIN
|
#ifdef MAIN
|
||||||
--- a/src/mapscrn.c
|
diff -ru3 kbd-2.0.3-old/src/mapscrn.c kbd-2.0.3/src/mapscrn.c
|
||||||
+++ b/src/mapscrn.c
|
--- kbd-2.0.3-old/src/mapscrn.c 2016-07-03 02:31:28.260958091 +0300
|
||||||
@@ -27,7 +27,7 @@ void loadnewmap(int fd, char *mfil);
|
+++ kbd-2.0.3/src/mapscrn.c 2016-07-03 02:33:21.119905270 +0300
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
static int ctoi (char *);
|
static int ctoi (char *);
|
||||||
|
|
||||||
/* search for the map file in these directories (with trailing /) */
|
/* search for the map file in these directories (with trailing /) */
|
||||||
@ -43,9 +47,10 @@
|
|||||||
static const char *const mapsuffixes[] = { "", ".trans", "_to_uni.trans", ".acm", 0 };
|
static const char *const mapsuffixes[] = { "", ".trans", "_to_uni.trans", ".acm", 0 };
|
||||||
|
|
||||||
#ifdef MAIN
|
#ifdef MAIN
|
||||||
--- a/src/resizecons.c
|
diff -ru3 kbd-2.0.3-old/src/resizecons.c kbd-2.0.3/src/resizecons.c
|
||||||
+++ b/src/resizecons.c
|
--- kbd-2.0.3-old/src/resizecons.c 2016-07-03 02:31:28.260958091 +0300
|
||||||
@@ -101,7 +101,7 @@ static int vga_get_fontheight(void);
|
+++ kbd-2.0.3/src/resizecons.c 2016-07-03 02:33:32.253900060 +0300
|
||||||
|
@@ -100,7 +100,7 @@
|
||||||
static void vga_set_cursor(int, int);
|
static void vga_set_cursor(int, int);
|
||||||
static void vga_set_verticaldisplayend_lowbyte(int);
|
static void vga_set_verticaldisplayend_lowbyte(int);
|
||||||
|
|
||||||
@ -53,10 +58,11 @@
|
|||||||
+const char *const dirpath[] = { "", "/etc/kbd/" VIDEOMODEDIR "/", DATADIR "/" VIDEOMODEDIR "/", 0};
|
+const char *const dirpath[] = { "", "/etc/kbd/" VIDEOMODEDIR "/", DATADIR "/" VIDEOMODEDIR "/", 0};
|
||||||
const char *const suffixes[] = { "", 0 };
|
const char *const suffixes[] = { "", 0 };
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int
|
||||||
--- a/src/setfont.c
|
diff -ru3 kbd-2.0.3-old/src/setfont.c kbd-2.0.3/src/setfont.c
|
||||||
+++ b/src/setfont.c
|
--- kbd-2.0.3-old/src/setfont.c 2016-07-03 02:31:28.260958091 +0300
|
||||||
@@ -53,10 +53,10 @@ int force = 0;
|
+++ kbd-2.0.3/src/setfont.c 2016-07-03 02:33:54.315889734 +0300
|
||||||
|
@@ -51,10 +51,10 @@
|
||||||
int debug = 0;
|
int debug = 0;
|
||||||
|
|
||||||
/* search for the font in these directories (with trailing /) */
|
/* search for the font in these directories (with trailing /) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user