[Buildroot] [PATCH 1/1] package/nfs-utils: fix build failure due to glibc <= 2.24
Petr Vorel
petr.vorel at gmail.com
Sun Dec 3 21:56:13 UTC 2023
> Petr, All,
> On 2023-11-16 21:16 +0100, Petr Vorel spake thusly:
> > From: Petr Vorel <petr.vorel at gmail.com>
> > Backport upstream patches that check if <sys/random.h> exists or not. If
> > it doesn't exist it uses uses the corresponding syscall.
> > NOTE: This would not be enough on Linux kernel < 3.17, but that's old
> > enough.
> I guess that's about kernel headers, i.e. that would cause a build
> filure, not a runtime one?
> If so, that would need a dependency on kern el headers;
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
Thank you, sure, I'll add it in v2.
> > Fixes: http://autobuild.buildroot.net/results/c5fde6099a8b228a8bdc3154d1e47dfa192e94ed/
> > Cc: Giulio Benetti <giulio.benetti at benettiengineering.com>
> > Signed-off-by: Petr Vorel <petr.vorel at gmail.com>
> > ---
> > Hi,
> > I'm sorry for the noise (I sent unsubscribed).
> > NOTE: I was not able to test the build, therefore it *should* fix it.
> Giulio reported build failures with this patch applied, and also:
Yes, Giulio reported it to me as well. I plan to fix this issue in upstream
first. Unfortunately I'm very busy now, I hope I'll get to this soon.
> [--SNIP--]
> > diff --git a/package/nfs-utils/0003-reexport-fsidd.c-Remove-unused-headers.patch b/package/nfs-utils/0003-reexport-fsidd.c-Remove-unused-headers.patch
> > new file mode 100644
> > index 0000000000..0331a8c9f8
> > --- /dev/null
> > +++ b/package/nfs-utils/0003-reexport-fsidd.c-Remove-unused-headers.patch
> > @@ -0,0 +1,42 @@
> > +From 1a4edb2aa6b9b88fcdcb8d82b262467d06527623 Mon Sep 17 00:00:00 2001
> > +From: Petr Vorel <pvorel at suse.cz>
> > +Date: Fri, 10 Nov 2023 10:35:33 -0500
> > +Subject: [PATCH 1/3] reexport/fsidd.c: Remove unused headers
> $ make check-package
> package/nfs-utils/0003-reexport-fsidd.c-Remove-unused-headers.patch:4: generate your patches with 'git format-patch -N'
> package/nfs-utils/0004-support-reexport.c-Remove-unused-headers.patch:4: generate your patches with 'git format-patch -N'
> package/nfs-utils/0005-support-backend_sqlite.c-Add-getrandom-fallback.patch:4: generate your patches with 'git format-patch -N'
And I will fix this as well.
Kind regards,
Petr
> Regards,
> Yann E. MORIN.
More information about the buildroot
mailing list