From: "Björn Esser" <b.esser@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Björn Esser" <b.esser@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] ckermit: Add a patch to fix build with glibc >= 2.28.
Date: Mon, 6 Jan 2020 16:08:38 +0100 [thread overview]
Message-ID: <20200106150838.29567-1-b.esser@pengutronix.de> (raw)
This patch keeps backwards compatibility with
older versions of glibc.
From: https://bugs.gentoo.org/669332
Signed-off-by: Björn Esser <b.esser@pengutronix.de>
---
...-add-variable-to-allow-external-wart.patch | 10 +++----
.../0002-Fix-build-with-glibc-2.28.patch | 29 +++++++++++++++++++
patches/cku302/series | 3 +-
3 files changed, 36 insertions(+), 6 deletions(-)
create mode 100644 patches/cku302/0002-Fix-build-with-glibc-2.28.patch
diff --git a/patches/cku302/0001-add-variable-to-allow-external-wart.patch b/patches/cku302/0001-add-variable-to-allow-external-wart.patch
index 290761c57..105b6d869 100644
--- a/patches/cku302/0001-add-variable-to-allow-external-wart.patch
+++ b/patches/cku302/0001-add-variable-to-allow-external-wart.patch
@@ -6,14 +6,14 @@ this fixes cross-compiling
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
- makefile | 5 +++--
- 1 files changed, 3 insertions(+), 2 deletions(-)
+ makefile | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/makefile b/makefile
-index 176bc4e..ba5e3ba 100644
+index 9efe2622d9fc..69bb6131c986 100644
--- a/makefile
+++ b/makefile
-@@ -920,6 +920,7 @@ CC= cc
+@@ -927,6 +927,7 @@ CC= cc
CC2= cc
MAKE= make
SHELL=/bin/sh
@@ -21,7 +21,7 @@ index 176bc4e..ba5e3ba 100644
###########################################################################
# (Ancient) UNIX V7-specific variables.
-@@ -1414,9 +1415,9 @@ ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
+@@ -1421,9 +1422,9 @@ ckclib.$(EXT): ckclib.c ckclib.h ckcdeb.h ckcasc.h ckcsym.h
ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckclib.h
diff --git a/patches/cku302/0002-Fix-build-with-glibc-2.28.patch b/patches/cku302/0002-Fix-build-with-glibc-2.28.patch
new file mode 100644
index 000000000..39415dabf
--- /dev/null
+++ b/patches/cku302/0002-Fix-build-with-glibc-2.28.patch
@@ -0,0 +1,29 @@
+From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <b.esser@pengutronix.de>
+Date: Mon, 6 Jan 2020 15:24:08 +0100
+Subject: [PATCH] Fix build with glibc >= 2.28.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This patch keeps backwards compatibility with older versions of glibc.
+
+From: https://bugs.gentoo.org/669332
+
+Signed-off-by: Björn Esser <b.esser@pengutronix.de>
+---
+ ckucmd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ckucmd.c b/ckucmd.c
+index 274dc2d6a061..d70770ec0f55 100644
+--- a/ckucmd.c
++++ b/ckucmd.c
+@@ -7370,7 +7370,7 @@ cmdconchk() {
+
+ /* Here we must look inside the stdin buffer - highly platform dependent */
+
+-#ifdef _IO_file_flags /* Linux */
++#ifdef _IO_EOF_SEEN /* Linux */
+ x = (int) ((stdin->_IO_read_end) - (stdin->_IO_read_ptr));
+ debug(F101,"cmdconchk _IO_file_flags","",x);
+ #else /* _IO_file_flags */
diff --git a/patches/cku302/series b/patches/cku302/series
index d1bdfdfc1..09a7e0b01 100644
--- a/patches/cku302/series
+++ b/patches/cku302/series
@@ -1,4 +1,5 @@
# generated by git-ptx-patches
#tag:base --start-number 1
0001-add-variable-to-allow-external-wart.patch
-# 62307c69250ab9529434a6600a9b2bbe - git-ptx-patches magic
+0002-Fix-build-with-glibc-2.28.patch
+# 86a9b3d8158aaa73154db330e5778b0f - git-ptx-patches magic
--
2.24.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2020-01-06 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-06 15:08 Björn Esser [this message]
2020-01-06 15:08 ` [ptxdist] [PATCH 2/2] ckermit: Move from staging into its original section Björn Esser
2020-01-07 8:21 ` [ptxdist] [PATCH v2 2/2] ckermit: Move out of staging Björn Esser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200106150838.29567-1-b.esser@pengutronix.de \
--to=b.esser@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox