[Buildroot] [PATCH] chrony: fix build with musl

Baruch Siach baruch at tkos.co.il
Thu Nov 16 04:01:30 UTC 2017


Hi Thomas,

On Wed, Nov 15, 2017 at 11:11:41PM +0100, Thomas Petazzoni wrote:
> On Tue, 14 Nov 2017 13:37:54 +0200, Baruch Siach wrote:
> > The SCM_TIMESTAMPING_PKTINFO macro is missing from the socket.h header
> > that musl libc provides as of version 1.1.16 that we currently use in
> > Buildroot. Patch the code to add this macro locally until we update
> > musl.
> > 
> > Fixes:
> > http://autobuild.buildroot.net/results/aab/aab3210d6d0c60fb07415d9bbdb09f2d4091446c/
> > http://autobuild.buildroot.net/results/fc8/fc8440db025f51c176240ca127bc68a367add21c/
> > 
> > Cc: Nathan Lynch <ntl at pobox.com>
> > Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> > ---
> >  .../chrony/0001-ntp-fix-build-with-musl-libc.patch | 39 ++++++++++++++++++++++
> >  1 file changed, 39 insertions(+)
> >  create mode 100644 package/chrony/0001-ntp-fix-build-with-musl-libc.patch
> 
> Applied to master, thanks. Is the problem fixed in upstream musl? If
> not, did you report the problem?

musl version 1.1.18 defines the SCM_TIMESTAMPING_PKTINFO macro. So once we 
bump musl and rebuild the toolchain, we can remove this patch.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the buildroot mailing list