summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-08-26 21:14:12 +0000
committerMike Frysinger <vapier@gentoo.org>2007-08-26 21:14:12 +0000
commit932e2462a01e58851515ba89d39b5513ad139a8a (patch)
tree70f76c53b9ce72b5cd679cb8501caa26b79bef60 /sys-apps/kbd/files
parentold (diff)
downloadhistorical-932e2462a01e58851515ba89d39b5513ad139a8a.tar.gz
historical-932e2462a01e58851515ba89d39b5513ad139a8a.tar.bz2
historical-932e2462a01e58851515ba89d39b5513ad139a8a.zip
Fix from Alexey Gladkov so our patch doesnt break things #184037.
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'sys-apps/kbd/files')
-rw-r--r--sys-apps/kbd/files/digest-kbd-1.13-r13
-rw-r--r--sys-apps/kbd/files/kbd-1.13-dont-use-error.patch7
2 files changed, 8 insertions, 2 deletions
diff --git a/sys-apps/kbd/files/digest-kbd-1.13-r1 b/sys-apps/kbd/files/digest-kbd-1.13-r1
new file mode 100644
index 000000000000..de1d94db3669
--- /dev/null
+++ b/sys-apps/kbd/files/digest-kbd-1.13-r1
@@ -0,0 +1,3 @@
+MD5 2639fdfe2412b29cbf6936d7db91cee3 kbd-1.13.tar.bz2 667373
+RMD160 a3d34185d86b532f2cdc8d0834ad5459625b8538 kbd-1.13.tar.bz2 667373
+SHA256 c8a5be1a606d925c3229fa91d3e9dde4e0b61b2c755aff8e699b855f1a402bf6 kbd-1.13.tar.bz2 667373
diff --git a/sys-apps/kbd/files/kbd-1.13-dont-use-error.patch b/sys-apps/kbd/files/kbd-1.13-dont-use-error.patch
index eb8cba069da0..d8e0bb1c0e00 100644
--- a/sys-apps/kbd/files/kbd-1.13-dont-use-error.patch
+++ b/sys-apps/kbd/files/kbd-1.13-dont-use-error.patch
@@ -2,13 +2,16 @@ dont use GNU-specific function error()
--- openvt/openvt.c
+++ openvt/openvt.c
-@@ -108,7 +108,8 @@
+@@ -107,8 +107,10 @@
+
for (i=0; i<3; i++) {
struct stat st;
- if (fstat(i, &st) == -1 && open("/dev/null", O_RDWR) == -1)
+- if (fstat(i, &st) == -1 && open("/dev/null", O_RDWR) == -1)
- error(EXIT_FAILURE, errno, "open");
++ if (fstat(i, &st) == -1 && open("/dev/null", O_RDWR) == -1) {
+ perror("open(/dev/null/) failed");
+ return EXIT_FAILURE;
++ }
}
consfd = getfd(NULL);