mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] udev-legacy: fix building with gcc 15
@ 2026-04-14  8:57 Andreas Helmcke
  2026-04-15 10:22 ` Michael Olbrich
  2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Helmcke @ 2026-04-14  8:57 UTC (permalink / raw)
  To: ptxdist

Added missing function declaration for udev_builtin_validate

Signed-off-by: Andreas Helmcke <ahelmcke@ela-soft.com>
---
 ...recent-gcc-added-missing-function-de.patch | 21 +++++++++++++++++++
 patches/udev-182/series                       |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch

diff --git a/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
new file mode 100644
index 000000000..59f1653dc
--- /dev/null
+++ b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
@@ -0,0 +1,21 @@
+From: Andreas Helmcke <ahelmcke@ela-soft.com>
+Date: Mon, 13 Apr 2026 13:34:09 +0200
+Subject: [PATCH] Fix build witch recent gcc, added missing function
+ declaration
+
+---
+ src/udev.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/udev.h b/src/udev.h
+index bc051c9b6574..ecf8cc5fe367 100644
+--- a/src/udev.h
++++ b/src/udev.h
+@@ -164,6 +164,7 @@ const char *udev_builtin_name(enum udev_builtin_cmd cmd);
+ bool udev_builtin_run_once(enum udev_builtin_cmd cmd);
+ int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test);
+ void udev_builtin_list(struct udev *udev);
++bool udev_builtin_validate(struct udev *udev);
+ int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val);
+ 
+ /* udev logging */
diff --git a/patches/udev-182/series b/patches/udev-182/series
index 92ee4017b..ce4dbf817 100644
--- a/patches/udev-182/series
+++ b/patches/udev-182/series
@@ -3,4 +3,5 @@
 0001-configure.ac-fix-FTBFS-with-new-glibc.patch
 0002-mtd-probe-fix-compilation.patch
 0003-Fix-build-with-recent-glibc-releases.patch
-# 1ac211f09adebb5f2f0678a4eda965d9  - git-ptx-patches magic
+0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
+# b21bf1430bf2663ce271b3b972fbf2e5  - git-ptx-patches magic
-- 
2.51.0




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

* Re: [ptxdist] [PATCH] udev-legacy: fix building with gcc 15
  2026-04-14  8:57 [ptxdist] [PATCH] udev-legacy: fix building with gcc 15 Andreas Helmcke
@ 2026-04-15 10:22 ` Michael Olbrich
  2026-04-15 11:58   ` Guillermo Rodriguez Garcia
  2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2026-04-15 10:22 UTC (permalink / raw)
  To: Andreas Helmcke; +Cc: ptxdist

Hi,

So, I don't mind applying this patch. But this stuff is really old. I've
not used this in a long time (all my BSPs use systemd) but if you really
want to continue without that, then I suggest, that udev from systemd
should be used.
Basically use the systemd sources and just install the udev parts.
I'm not going to do this myself, but I would review and merge patches that
go this way.

Michael

On Tue, Apr 14, 2026 at 10:57:02AM +0200, Andreas Helmcke wrote:
> Added missing function declaration for udev_builtin_validate
> 
> Signed-off-by: Andreas Helmcke <ahelmcke@ela-soft.com>
> ---
>  ...recent-gcc-added-missing-function-de.patch | 21 +++++++++++++++++++
>  patches/udev-182/series                       |  3 ++-
>  2 files changed, 23 insertions(+), 1 deletion(-)
>  create mode 100644 patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> 
> diff --git a/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> new file mode 100644
> index 000000000..59f1653dc
> --- /dev/null
> +++ b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> @@ -0,0 +1,21 @@
> +From: Andreas Helmcke <ahelmcke@ela-soft.com>
> +Date: Mon, 13 Apr 2026 13:34:09 +0200
> +Subject: [PATCH] Fix build witch recent gcc, added missing function
> + declaration
> +
> +---
> + src/udev.h | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/src/udev.h b/src/udev.h
> +index bc051c9b6574..ecf8cc5fe367 100644
> +--- a/src/udev.h
> ++++ b/src/udev.h
> +@@ -164,6 +164,7 @@ const char *udev_builtin_name(enum udev_builtin_cmd cmd);
> + bool udev_builtin_run_once(enum udev_builtin_cmd cmd);
> + int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test);
> + void udev_builtin_list(struct udev *udev);
> ++bool udev_builtin_validate(struct udev *udev);
> + int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val);
> + 
> + /* udev logging */
> diff --git a/patches/udev-182/series b/patches/udev-182/series
> index 92ee4017b..ce4dbf817 100644
> --- a/patches/udev-182/series
> +++ b/patches/udev-182/series
> @@ -3,4 +3,5 @@
>  0001-configure.ac-fix-FTBFS-with-new-glibc.patch
>  0002-mtd-probe-fix-compilation.patch
>  0003-Fix-build-with-recent-glibc-releases.patch
> -# 1ac211f09adebb5f2f0678a4eda965d9  - git-ptx-patches magic
> +0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> +# b21bf1430bf2663ce271b3b972fbf2e5  - git-ptx-patches magic
> -- 
> 2.51.0
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

* Re: [ptxdist] [PATCH] udev-legacy: fix building with gcc 15
  2026-04-15 10:22 ` Michael Olbrich
@ 2026-04-15 11:58   ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2026-04-15 11:58 UTC (permalink / raw)
  To: ptxdist; +Cc: Andreas Helmcke

+1 from here for udev legacy.
We try to stay away from systemd as much as possible.

Guillermo

El mié, 15 abr 2026 a las 12:22, Michael Olbrich
(<m.olbrich@pengutronix.de>) escribió:
>
> Hi,
>
> So, I don't mind applying this patch. But this stuff is really old. I've
> not used this in a long time (all my BSPs use systemd) but if you really
> want to continue without that, then I suggest, that udev from systemd
> should be used.
> Basically use the systemd sources and just install the udev parts.
> I'm not going to do this myself, but I would review and merge patches that
> go this way.
>
> Michael
>
> On Tue, Apr 14, 2026 at 10:57:02AM +0200, Andreas Helmcke wrote:
> > Added missing function declaration for udev_builtin_validate
> >
> > Signed-off-by: Andreas Helmcke <ahelmcke@ela-soft.com>
> > ---
> >  ...recent-gcc-added-missing-function-de.patch | 21 +++++++++++++++++++
> >  patches/udev-182/series                       |  3 ++-
> >  2 files changed, 23 insertions(+), 1 deletion(-)
> >  create mode 100644 patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> >
> > diff --git a/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> > new file mode 100644
> > index 000000000..59f1653dc
> > --- /dev/null
> > +++ b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> > @@ -0,0 +1,21 @@
> > +From: Andreas Helmcke <ahelmcke@ela-soft.com>
> > +Date: Mon, 13 Apr 2026 13:34:09 +0200
> > +Subject: [PATCH] Fix build witch recent gcc, added missing function
> > + declaration
> > +
> > +---
> > + src/udev.h | 1 +
> > + 1 file changed, 1 insertion(+)
> > +
> > +diff --git a/src/udev.h b/src/udev.h
> > +index bc051c9b6574..ecf8cc5fe367 100644
> > +--- a/src/udev.h
> > ++++ b/src/udev.h
> > +@@ -164,6 +164,7 @@ const char *udev_builtin_name(enum udev_builtin_cmd cmd);
> > + bool udev_builtin_run_once(enum udev_builtin_cmd cmd);
> > + int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test);
> > + void udev_builtin_list(struct udev *udev);
> > ++bool udev_builtin_validate(struct udev *udev);
> > + int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val);
> > +
> > + /* udev logging */
> > diff --git a/patches/udev-182/series b/patches/udev-182/series
> > index 92ee4017b..ce4dbf817 100644
> > --- a/patches/udev-182/series
> > +++ b/patches/udev-182/series
> > @@ -3,4 +3,5 @@
> >  0001-configure.ac-fix-FTBFS-with-new-glibc.patch
> >  0002-mtd-probe-fix-compilation.patch
> >  0003-Fix-build-with-recent-glibc-releases.patch
> > -# 1ac211f09adebb5f2f0678a4eda965d9  - git-ptx-patches magic
> > +0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> > +# b21bf1430bf2663ce271b3b972fbf2e5  - git-ptx-patches magic
> > --
> > 2.51.0
> >
> >
> >
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>


-- 
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com



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

* Re: [ptxdist] [APPLIED] udev-legacy: fix building with gcc 15
  2026-04-14  8:57 [ptxdist] [PATCH] udev-legacy: fix building with gcc 15 Andreas Helmcke
  2026-04-15 10:22 ` Michael Olbrich
@ 2026-04-15 13:52 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2026-04-15 13:52 UTC (permalink / raw)
  To: ptxdist; +Cc: Andreas Helmcke

Thanks, applied as fbd5c6b416b72dcd1c269ee1b013f7ddf4d72f67.

Michael

[sent from post-receive hook]

On Wed, 15 Apr 2026 15:52:22 +0200, Andreas Helmcke <ahelmcke@ela-soft.com> wrote:
> Added missing function declaration for udev_builtin_validate
> 
> Signed-off-by: Andreas Helmcke <ahelmcke@ela-soft.com>
> Message-Id: <20260414085702.11853-1-ahelmcke@ela-soft.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> new file mode 100644
> index 000000000000..59f1653dc6b8
> --- /dev/null
> +++ b/patches/udev-182/0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> @@ -0,0 +1,21 @@
> +From: Andreas Helmcke <ahelmcke@ela-soft.com>
> +Date: Mon, 13 Apr 2026 13:34:09 +0200
> +Subject: [PATCH] Fix build witch recent gcc, added missing function
> + declaration
> +
> +---
> + src/udev.h | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/src/udev.h b/src/udev.h
> +index bc051c9b6574..ecf8cc5fe367 100644
> +--- a/src/udev.h
> ++++ b/src/udev.h
> +@@ -164,6 +164,7 @@ const char *udev_builtin_name(enum udev_builtin_cmd cmd);
> + bool udev_builtin_run_once(enum udev_builtin_cmd cmd);
> + int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test);
> + void udev_builtin_list(struct udev *udev);
> ++bool udev_builtin_validate(struct udev *udev);
> + int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val);
> + 
> + /* udev logging */
> diff --git a/patches/udev-182/series b/patches/udev-182/series
> index 92ee4017b145..ce4dbf81733a 100644
> --- a/patches/udev-182/series
> +++ b/patches/udev-182/series
> @@ -3,4 +3,5 @@
>  0001-configure.ac-fix-FTBFS-with-new-glibc.patch
>  0002-mtd-probe-fix-compilation.patch
>  0003-Fix-build-with-recent-glibc-releases.patch
> -# 1ac211f09adebb5f2f0678a4eda965d9  - git-ptx-patches magic
> +0004-Fix-build-witch-recent-gcc-added-missing-function-de.patch
> +# b21bf1430bf2663ce271b3b972fbf2e5  - git-ptx-patches magic



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

end of thread, other threads:[~2026-04-15 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-14  8:57 [ptxdist] [PATCH] udev-legacy: fix building with gcc 15 Andreas Helmcke
2026-04-15 10:22 ` Michael Olbrich
2026-04-15 11:58   ` Guillermo Rodriguez Garcia
2026-04-15 13:52 ` [ptxdist] [APPLIED] " Michael Olbrich

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