From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Scott Fan <fancp2007@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/procps-ng: fix pidfd_open checking
Date: Sun, 24 Nov 2024 17:29:08 +0100 [thread overview]
Message-ID: <20241124172908.2b4db731@windsurf> (raw)
In-Reply-To: <CAFkzVZbczGknp7uz78yCHo+8aW3RbjQG0ns4fGPv=Gakb02fWw@mail.gmail.com>
Hello Scott,
Sorry for the slow feedback. Not sure what the status of this is and
whether my answer is still useful/relevant.
On Fri, 1 Nov 2024 09:31:08 +0800
Scott Fan <fancp2007@gmail.com> wrote:
> > So I'm not sure my previous review was clear enough: what is wrong is
> > the procps-ng patch itself, it shouldn't AC_MSG_ERROR(), but instead it
> > should automatically disable pidwait, as if the user had passed
> > --disable-pidwait.
>
> I understand what you mean, but I may not have expressed my thoughts clearly.
>
> Before this patch was applied, I got a compile error (not configure
> error) when the package was built with linux-headers-4.19.322,
> Then I tried to figure out what was going wrong and I eventually found
> this patch from upstream.
>
> After this patch was applied, it threw a configure error (not compile
> error), which is what I expected.
>
> As the patch said:
> The previous build setup would check for pidfd_open using
> AC_CHECK_FUNC and would be incorrectly reported as true.
>
> Therefore, I think the key to this patch is that it successfully fixes
> the pidfd_open checking issue.
>
> If pidfd_open() and __NR_pidfd_open were not present, it will report
> an AC_MSG_ERROR message,
> and gives us the --disable-pidwait configure option, so you are
> explicit in not wanting and knowing you wont get pidwait.
>
> Whereas you mean, instead of AC_MSG_ERROR(), it should automatically
> disable pidwait, as if the user had passed --disable-pidwait.
> I'm not sure if this is acceptable to the upstream maintainers, who
> want you to be clear about the purpose of the option you passed.
> Even if it is approved , it would require a new patch to improve this behavior.
>
>
> To solve my compilation problem (with linux-headers-4.19.322), in the
> current case, I had to pass the --disable-pidwait option.
> If at some point in the future, when the patch you expect is
> successfully applied, I will remove it.
What you can do then is:
ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19),)
PROCPS_NG_CONF_OPTS += disable-pidwait
endif
This will ensure to disable pidwait support when headers are < 4.19.
Best regards,
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
next prev parent reply other threads:[~2024-11-24 16:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 0:20 [Buildroot] [PATCH] package/procps-ng: fix pidfd_open checking Scott Fan
2024-10-31 18:18 ` Thomas Petazzoni via buildroot
2024-11-01 1:31 ` Scott Fan
2024-11-04 13:23 ` Scott Fan
2024-11-24 16:29 ` Thomas Petazzoni via buildroot [this message]
2024-11-26 1:50 ` Scott Fan
2024-11-26 13:57 ` Thomas Petazzoni via buildroot
2024-11-27 0:35 ` Scott Fan
2024-11-27 1:01 ` Scott Fan
2024-11-27 7:44 ` Thomas Petazzoni via buildroot
2024-11-28 3:50 ` Scott Fan
2024-12-05 16:57 ` Peter Korsgaard
2024-12-07 9:47 ` 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=20241124172908.2b4db731@windsurf \
--to=buildroot@buildroot.org \
--cc=fancp2007@gmail.com \
--cc=thomas.petazzoni@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.