mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] squashfs-tools: Use sysmacros fixes build with glib >2.28
@ 2018-12-18 10:32 Gavin Schenk
  2018-12-18 11:16 ` [ptxdist] [PATCH v2] " Gavin Schenk
  0 siblings, 1 reply; 5+ messages in thread
From: Gavin Schenk @ 2018-12-18 10:32 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---
 ...sysmacros-fixes-build-with-glib-2.28.patch | 43 +++++++++++++++++++
 patches/squashfs4.3/series                    |  4 ++
 2 files changed, 47 insertions(+)
 create mode 100644 patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
 create mode 100644 patches/squashfs4.3/series

diff --git a/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
new file mode 100644
index 000000000..d43136581
--- /dev/null
+++ b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
@@ -0,0 +1,43 @@
+From: Gavin Schenk <g.schenk@eckelmann.de>
+Date: Tue, 18 Dec 2018 11:19:47 +0100
+Subject: [PATCH] Use sysmacros fixes build with glib >2.28
+
+From the manpages major, minor, makedev:
+The  BSDs  expose the definitions for these macros via <sys/types.h>.
+Depending on the version, glibc also exposes definitions for these macros
+from that header file if suitable feature test macros are defined.
+However, this behavior was deprecated in glibc 2.25,
+and since glibc 2.28, <sys/types.h>  no  longer  provides these definitions.
+
+Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
+---
+ squashfs-tools/mksquashfs.c | 2 +-
+ squashfs-tools/unsquashfs.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index 86f82bb92804..95528be8733c 100644
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -33,7 +33,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stddef.h>
+-#include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
+diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
+index 1323dd6f2cb9..cb8bb193d268 100644
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -32,7 +32,7 @@
+ #include "stdarg.h"
+ 
+ #include <sys/sysinfo.h>
+-#include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <limits.h>
diff --git a/patches/squashfs4.3/series b/patches/squashfs4.3/series
new file mode 100644
index 000000000..6ea61897b
--- /dev/null
+++ b/patches/squashfs4.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
+# 86201a06abd18a6b9f0e983e9183d6ac  - git-ptx-patches magic
-- 
2.19.2


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v2] squashfs-tools: Use sysmacros fixes build with glib >2.28
  2018-12-18 10:32 [ptxdist] [PATCH] squashfs-tools: Use sysmacros fixes build with glib >2.28 Gavin Schenk
@ 2018-12-18 11:16 ` Gavin Schenk
  2018-12-18 12:00   ` Ladislav Michl
  0 siblings, 1 reply; 5+ messages in thread
From: Gavin Schenk @ 2018-12-18 11:16 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---

changes since v1:

- Add include instead replacing it.
  After a discussion with ukl in IRC, it turns out that it is more
  compatible to add the include instead of replacing it. Additionally,
  mksquashfs.c uses open that requires sys/types.h.


 ...sysmacros-fixes-build-with-glib-2.28.patch | 41 +++++++++++++++++++
 patches/squashfs4.3/series                    |  4 ++
 2 files changed, 45 insertions(+)
 create mode 100644 patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
 create mode 100644 patches/squashfs4.3/series

diff --git a/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
new file mode 100644
index 000000000..66a396bac
--- /dev/null
+++ b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
@@ -0,0 +1,41 @@
+From: Gavin Schenk <g.schenk@eckelmann.de>
+Date: Tue, 18 Dec 2018 11:19:47 +0100
+Subject: [PATCH] Use sysmacros fixes build with glib >2.28
+
+From the manpages major, minor, makedev:
+The  BSDs  expose the definitions for these macros via <sys/types.h>.
+Depending on the version, glibc also exposes definitions for these macros
+from that header file if suitable feature test macros are defined.
+However, this behavior was deprecated in glibc 2.25,
+and since glibc 2.28, <sys/types.h>  no  longer  provides these definitions.
+
+Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
+---
+ squashfs-tools/mksquashfs.c | 1 +
+ squashfs-tools/unsquashfs.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index 86f82bb92804..84affd4be160 100644
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stddef.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
+index 1323dd6f2cb9..2633e0c0b7ef 100644
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -32,6 +32,7 @@
+ #include "stdarg.h"
+ 
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
diff --git a/patches/squashfs4.3/series b/patches/squashfs4.3/series
new file mode 100644
index 000000000..6ea61897b
--- /dev/null
+++ b/patches/squashfs4.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
+# 86201a06abd18a6b9f0e983e9183d6ac  - git-ptx-patches magic
-- 
2.19.2


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH v2] squashfs-tools: Use sysmacros fixes build with glib >2.28
  2018-12-18 11:16 ` [ptxdist] [PATCH v2] " Gavin Schenk
@ 2018-12-18 12:00   ` Ladislav Michl
  2018-12-19  6:54     ` [ptxdist] [PATCH v3] squashfs-tools: Use sysmacros fixes build with glibc >= 2.28 Gavin Schenk
  0 siblings, 1 reply; 5+ messages in thread
From: Ladislav Michl @ 2018-12-18 12:00 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

On Tue, Dec 18, 2018 at 12:16:11PM +0100, Gavin Schenk wrote:
> Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
> ---
> 
> changes since v1:
> 
> - Add include instead replacing it.
>   After a discussion with ukl in IRC, it turns out that it is more
>   compatible to add the include instead of replacing it. Additionally,
>   mksquashfs.c uses open that requires sys/types.h.

Thank you, I was about to send the same fix :)
(except there's a typo in subject as glib and glibc are different libraries)

Additionally, we'll need this one:
https://github.com/paulusmack/ppp/commit/3c7b86229f7bd2600d74db14b1fe5b3896be3875
and then at91bootstrap broke yet another time with OSELAS.Toolchain-2018.12.0
Unless someone is going to be faster I'll send fixes later today.

But that brings a question whenever we want/need something to compare glibc
versions as I do not think it is good idea to add openssl (to ppp) dependency
for everyone, even those using pre-2.28 glibc.

	ladis

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v3] squashfs-tools: Use sysmacros fixes build with glibc >= 2.28
  2018-12-18 12:00   ` Ladislav Michl
@ 2018-12-19  6:54     ` Gavin Schenk
  2018-12-19  7:04       ` [ptxdist] [PATCH v4] " Gavin Schenk
  0 siblings, 1 reply; 5+ messages in thread
From: Gavin Schenk @ 2018-12-19  6:54 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---

changes since v2:

- Fixed typo in subject, indeed its glibc not glib!

 ...sysmacros-fixes-build-with-glib-2.28.patch | 41 +++++++++++++++++++
 patches/squashfs4.3/series                    |  4 ++
 2 files changed, 45 insertions(+)
 create mode 100644 patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
 create mode 100644 patches/squashfs4.3/series

diff --git a/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
new file mode 100644
index 000000000..66a396bac
--- /dev/null
+++ b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
@@ -0,0 +1,41 @@
+From: Gavin Schenk <g.schenk@eckelmann.de>
+Date: Tue, 18 Dec 2018 11:19:47 +0100
+Subject: [PATCH] Use sysmacros fixes build with glib >2.28
+
+From the manpages major, minor, makedev:
+The  BSDs  expose the definitions for these macros via <sys/types.h>.
+Depending on the version, glibc also exposes definitions for these macros
+from that header file if suitable feature test macros are defined.
+However, this behavior was deprecated in glibc 2.25,
+and since glibc 2.28, <sys/types.h>  no  longer  provides these definitions.
+
+Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
+---
+ squashfs-tools/mksquashfs.c | 1 +
+ squashfs-tools/unsquashfs.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index 86f82bb92804..84affd4be160 100644
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stddef.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
+index 1323dd6f2cb9..2633e0c0b7ef 100644
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -32,6 +32,7 @@
+ #include "stdarg.h"
+ 
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
diff --git a/patches/squashfs4.3/series b/patches/squashfs4.3/series
new file mode 100644
index 000000000..6ea61897b
--- /dev/null
+++ b/patches/squashfs4.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Use-sysmacros-fixes-build-with-glib-2.28.patch
+# 86201a06abd18a6b9f0e983e9183d6ac  - git-ptx-patches magic
-- 
2.19.2


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v4] squashfs-tools: Use sysmacros fixes build with glibc >= 2.28
  2018-12-19  6:54     ` [ptxdist] [PATCH v3] squashfs-tools: Use sysmacros fixes build with glibc >= 2.28 Gavin Schenk
@ 2018-12-19  7:04       ` Gavin Schenk
  0 siblings, 0 replies; 5+ messages in thread
From: Gavin Schenk @ 2018-12-19  7:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---

Changes since v3:
   - Now really fix the typo in the patch, sorry for the noise.

 ...ysmacros-fixes-build-with-glibc-2.28.patch | 41 +++++++++++++++++++
 patches/squashfs4.3/series                    |  4 ++
 2 files changed, 45 insertions(+)
 create mode 100644 patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch
 create mode 100644 patches/squashfs4.3/series

diff --git a/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch
new file mode 100644
index 000000000..a8c4d6296
--- /dev/null
+++ b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch
@@ -0,0 +1,41 @@
+From: Gavin Schenk <g.schenk@eckelmann.de>
+Date: Tue, 18 Dec 2018 11:19:47 +0100
+Subject: [PATCH] Use sysmacros fixes build with glibc >= 2.28
+
+From the manpages major, minor, makedev:
+The  BSDs  expose the definitions for these macros via <sys/types.h>.
+Depending on the version, glibc also exposes definitions for these macros
+from that header file if suitable feature test macros are defined.
+However, this behavior was deprecated in glibc 2.25,
+and since glibc 2.28, <sys/types.h>  no  longer  provides these definitions.
+
+Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
+---
+ squashfs-tools/mksquashfs.c | 1 +
+ squashfs-tools/unsquashfs.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
+index 86f82bb92804..84affd4be160 100644
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stddef.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
+index 1323dd6f2cb9..2633e0c0b7ef 100644
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -32,6 +32,7 @@
+ #include "stdarg.h"
+ 
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
diff --git a/patches/squashfs4.3/series b/patches/squashfs4.3/series
new file mode 100644
index 000000000..c66134800
--- /dev/null
+++ b/patches/squashfs4.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch
+# 4b854e836f049da26f6a51c9c416871d  - git-ptx-patches magic
-- 
2.19.2


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-19  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 10:32 [ptxdist] [PATCH] squashfs-tools: Use sysmacros fixes build with glib >2.28 Gavin Schenk
2018-12-18 11:16 ` [ptxdist] [PATCH v2] " Gavin Schenk
2018-12-18 12:00   ` Ladislav Michl
2018-12-19  6:54     ` [ptxdist] [PATCH v3] squashfs-tools: Use sysmacros fixes build with glibc >= 2.28 Gavin Schenk
2018-12-19  7:04       ` [ptxdist] [PATCH v4] " Gavin Schenk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox