summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/ckermit/PKGBUILD9
-rw-r--r--community/ckermit/ckucmd-IO_file_flags.patch11
2 files changed, 20 insertions, 0 deletions
diff --git a/community/ckermit/PKGBUILD b/community/ckermit/PKGBUILD
new file mode 100644
index 00000000..5f4acf8d
--- /dev/null
+++ b/community/ckermit/PKGBUILD
@@ -0,0 +1,9 @@
+source+=('ckucmd-IO_file_flags.patch')
+sha512sums+=('0a49ac384b7a49efe20cf4842a0f1ebe3f504aa259f9a9c956ad5b85fd49964a44191a99b8111a7868a9e9be37d6093f3db3bbe907d20605e2664b64395e5f17')
+eval "$(
+ declare -f prepare | \
+ sed '
+ /patch/ a patch -p1 < ckucmd-IO_file_flags.patch
+ '
+)"
+
diff --git a/community/ckermit/ckucmd-IO_file_flags.patch b/community/ckermit/ckucmd-IO_file_flags.patch
new file mode 100644
index 00000000..87886f17
--- /dev/null
+++ b/community/ckermit/ckucmd-IO_file_flags.patch
@@ -0,0 +1,11 @@
+diff -rauN cku302/ckucmd.c cku302-ckucmd-IO_file_flags-patch/ckucmd.c
+--- cku302/ckucmd.c 2011-07-14 14:14:37.000000000 +0200
++++ cku302-ckucmd-IO_file_flags-patch/ckucmd.c 2019-06-17 14:19:01.124728510 +0200
+@@ -7370,6 +7370,7 @@
+
+ /* Here we must look inside the stdin buffer - highly platform dependent */
+
++#define _IO_file_flags
+ #ifdef _IO_file_flags /* Linux */
+ x = (int) ((stdin->_IO_read_end) - (stdin->_IO_read_ptr));
+ debug(F101,"cmdconchk _IO_file_flags","",x);