Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: Thomas Perale <thomas.perale@mind.be>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/4] package/x11r7/xwayland: fix uClibc build
Date: Fri, 17 Jul 2026 17:47:42 +0200	[thread overview]
Message-ID: <20260717154742.192487-1-thomas.perale@mind.be> (raw)
In-Reply-To: <20260712113058.1579954-1-bernd@kuhls.net>

In reply of:
> Copy patch from xserver_xorg-server to fix build errors with uClibc.
> 
> Fixes:
> https://autobuild.buildroot.net/results/c03/c03d57ad7ed3feac008091a38ea50bfccfa62b08/
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied to 2025.02.x & 2026.05.x. Thanks

> ---
> Gitlab pipelines passed:
> https://gitlab.com/bkuhls/buildroot/-/commits/ac5c6561894d41b86a43af13c4a5af16612c9195
> https://gitlab.com/bkuhls/buildroot/-/commits/9c78a853c88fa85f7a31404b4ab324370cf049f6
> 
>  .checkpackageignore                           |  1 +
>  ...0001-include-misc.h-fix-uClibc-build.patch | 31 +++++++++++++++++++
>  2 files changed, 32 insertions(+)
>  create mode 100644 package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch
> 
> diff --git a/.checkpackageignore b/.checkpackageignore
> index 6147f35b03..4ec39f9f36 100644
> --- a/.checkpackageignore
> +++ b/.checkpackageignore
> @@ -971,6 +971,7 @@ package/x11r7/xdriver_xf86-video-mach64/0001-cross-compile.patch lib_patch.Upstr
>  package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch lib_patch.Upstream
>  package/x11r7/xserver_xorg-server/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream
>  package/x11r7/xserver_xorg-server/S40xorg Shellcheck lib_sysv.Variables
> +package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch lib_patch.Upstream
>  package/xl2tp/xl2tpd lib_shellscript.TrailingSpace
>  package/yajl/0001-Let-the-shared-and-the-static-library-have-the-same-.patch lib_patch.Upstream
>  package/yajl/0002-cmake-disable-shared-library-build-when-BUILD_SHARED.patch lib_patch.Upstream
> diff --git a/package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch b/package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch
> new file mode 100644
> index 0000000000..562aa79fbb
> --- /dev/null
> +++ b/package/x11r7/xwayland/0001-include-misc.h-fix-uClibc-build.patch
> @@ -0,0 +1,31 @@
> +From 2e8fca00f5bdb02f2f59aaa428d1e9d808ab0e86 Mon Sep 17 00:00:00 2001
> +From: Bernd Kuhls <bernd.kuhls@t-online.de>
> +Date: Sat, 16 Jun 2018 19:20:16 +0200
> +Subject: [PATCH] include/misc.h: fix uClibc build
> +
> +A similar fix was used for Dovecot:
> +https://www.dovecot.org/list/dovecot/2017-November/110019.html
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> +---
> + include/misc.h | 4 ++++
> + 1 file changed, 4 insertions(+)
> +
> +diff --git a/include/misc.h b/include/misc.h
> +index 14920c3c3..390e52b60 100644
> +--- a/include/misc.h
> ++++ b/include/misc.h
> +@@ -185,6 +185,10 @@ typedef struct _xReq *xReqPtr;
> + #endif
> + #endif
> + 
> ++#undef bswap_16
> ++#undef bswap_32
> ++#undef bswap_64
> ++
> + /**
> +  * Calculate the number of bytes needed to hold bits.
> +  * @param bits The minimum number of bits needed.
> +-- 
> +2.17.1
> +
> -- 
> 2.47.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-07-17 15:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-12 11:30 [Buildroot] [PATCH 1/4] package/x11r7/xwayland: fix uClibc build Bernd Kuhls
2026-07-12 11:30 ` [Buildroot] [PATCH 2/4] package/x11r7/xserver_xorg-server: security bump version to 21.1.24 Bernd Kuhls
2026-07-17 15:47   ` Thomas Perale via buildroot
2026-07-12 11:30 ` [Buildroot] [PATCH 3/4] package/x11r7/xwayland: security bump version to 24.1.13 Bernd Kuhls
2026-07-17 15:47   ` Thomas Perale via buildroot
2026-07-12 11:30 ` [Buildroot] [PATCH 4/4] package/x11r7/xlib_libXfont2: security bump version to 2.0.8 Bernd Kuhls
2026-07-17 15:47   ` Thomas Perale via buildroot
2026-07-13 10:33 ` [Buildroot] [PATCH 1/4] package/x11r7/xwayland: fix uClibc build Julien Olivain via buildroot
2026-07-17 15:47 ` Thomas Perale via buildroot [this message]

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=20260717154742.192487-1-thomas.perale@mind.be \
    --to=buildroot@buildroot.org \
    --cc=bernd@kuhls.net \
    --cc=thomas.perale@mind.be \
    /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