Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Thomas Devoogdt <thomas@devoogdt.com>
Cc: Bernd Kuhls <bernd@kuhls.net>,
	Romain Naour <romain.naour@gmail.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v1] package/mesa3d: add compile patch for linux < 3.5
Date: Sun, 17 Dec 2023 22:40:01 +0100	[thread overview]
Message-ID: <20231217224001.2ca4d289@windsurf> (raw)
In-Reply-To: <20231212135634.225795-1-thomas@devoogdt.com>

On Tue, 12 Dec 2023 14:56:34 +0100
Thomas Devoogdt <thomas@devoogdt.com> wrote:

> diff --git a/package/mesa3d/0005-util-os_same_file_description-fix-unknown-linux-3.5-.patch b/package/mesa3d/0005-util-os_same_file_description-fix-unknown-linux-3.5-.patch
> new file mode 100644
> index 0000000000..d66a50aaf5
> --- /dev/null
> +++ b/package/mesa3d/0005-util-os_same_file_description-fix-unknown-linux-3.5-.patch
> @@ -0,0 +1,70 @@
> +From b60974fac8a2f4c85cbb2ca788fc4ec3e81998f9 Mon Sep 17 00:00:00 2001
> +From: Thomas Devoogdt <thomas.devoogdt@barco.com>
> +Date: Tue, 17 Aug 2021 11:54:49 +0200
> +Subject: [PATCH] util: os_same_file_description: fix unknown linux < 3.5
> + syscall SYS_kcmp
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +https://man7.org/linux/man-pages/man2/kcmp.2.html
> +
> +The kcmp() system call first appeared in Linux 3.5.
> +
> +But was probably also not supported by all major platforms
> +at that time. So fallback to the check that is done for windows.
> +
> +Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
> +Acked-by: Yonggang Luo <luoyonggang@gmail.com>
> +Acked-by: Michel Dänzer <mdaenzer@redhat.com>
> +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18517>
> +(cherry picked from commit 3ef514982441ce496aa127611edd26b9867f4b95)
> +Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18517

I've simplified those 3 lines to just:

Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/commit/3ef514982441ce496aa127611edd26b9867f4b95

And applied. Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-12-17 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-12 13:56 [Buildroot] [PATCH v1] package/mesa3d: add compile patch for linux < 3.5 Thomas Devoogdt
2023-12-17 21:40 ` Thomas Petazzoni via buildroot [this message]
2024-01-05 12:38 ` Peter Korsgaard

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=20231217224001.2ca4d289@windsurf \
    --to=buildroot@buildroot.org \
    --cc=bernd@kuhls.net \
    --cc=romain.naour@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas@devoogdt.com \
    /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