From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Peter Seiderer <ps.report@gmx.net>
Cc: buildroot@busybox.net, yann.morin@orange.com,
Samuel Martin <s.martin49@gmail.com>
Subject: Re: [Buildroot] [PATCH v2 5/5] package/xz: convert to cmake build
Date: Wed, 26 Jun 2024 21:32:20 +0200 [thread overview]
Message-ID: <ZnxsxFK_KDUDM652@landeda> (raw)
In-Reply-To: <20240626103623.7d7412c0@gmx.net>
Peter, All,
(To avoid confusion: Yann@home speaking here)
On 2024-06-26 10:36 +0200, Peter Seiderer via buildroot spake thusly:
> On Tue, 25 Jun 2024 13:11:12 +0200, yann.morin@orange.com wrote:
> > On 2024-06-25 11:56 +0200, MORIN Yann INNOV/IT-S spake thusly:
> > > On 2024-06-12 15:57 +0200, Peter Seiderer via buildroot spake thusly:
> > > > Convert to cmake build with the following autoconf options without
> > > > direct equivalent cmake option:
> >
> > The autotools build system is still operational, and still works. So,
> > what was the rationale behind that change?
> >
> > Was that a defence against another backdooring attempt? If so, I think
> > it should have been stated clearly in the commit log. Also, we can be as
> > paranoid as we want, but it is possible to inject a similar backdoor
> > in cmake as was injected in autotools, so switching to cmake just for
> > this reason is not rally sufficient...
>
> No, as the first suggestion ([1], marked as RFC - missed the RFC marking in
> patch set version v2) predates the backdoor detection (but migrating away from
> autoconf/automake was discusses as one measure for backdoor avoidance),
> my motivation was the following passage from the NEWS file ([2]):
>
> - The CMake-based build is now close to feature parity with the
> Autotools-based build. Most importantly a few tests aren't
> run yet. Testing the CMake-based build on different operating
> systems would be welcome now. See the comment at the top of
> CMakeLists.txt.
>
> And the amount of work done for the cmake build system seems to hint
> that xz is moving away from autoconf/automake towards the cmake system...
Note that there is also some effort toward a meson-based buildsystem:
https://github.com/tukaani-project/xz/pull/120
> > Note: the issue I hit can be solved by passing ENABLE_NLS=OFF in the
> > host variant; we don't really require translations, so we can
> > unconditionally turn it off.
>
> Seems my intermediate step from 'package/xz: determine all autoconf options'
> and '--enable-nls' unconditionally for the host variant was wrong...,
Also, forcibly setting BUILD_SHARED_LIBS=OFF for the target is probably
wrong. And using the target options for the host is equivalently very
wrong.
> care to send a patch (as you can reproduce the failure)?
Yann@work provided a very sinple way to reproduce the issue:
$ ./utils/docker-run
(docker) $ make defconfig
(docker) $ make host-xz
So you could at least try that to reproduce on your side.
He also provided a suggestion to turn NLS=OFF, but that was suposedly
not needed in your case, so there is something to investigate.
When maintainers apply patches, they accept that it may break something
down the line, so it is not a problem that a patch had issues; they
guess the contributor tested as best as they could, and the
reviewer-committer do their best as well, so it was good to be applied.
However, when maintainers apply patches, they also expect contributors
to own their changes, and that they are pro-active in trying to fix
their change that caused the breakage, without swinging the effort to
someone else without at least trying to reproduce and investigate on
their side. After all, the contributor is in the best position to
investigate: they know the purpose of the change, and they have the
knowledge of the tests they did, so they know where to look at.
If maintainers can't rely on that expectation, then they can get very
chilly about applying patches as they know any breakage might not be
acted upon, and that the burden of fixing it will pile upon them to
increase the existing load...
Again, it is not a problem that the patch broke something; without
trying, we can know. There is absolutely no blame on you at all for that
patch! We are very happy for your contributions! :-)
Still, this carelessness in handling a breakage is a bit disapointing...
Anyway, I have now reverted that patch, as it was exposing another issue
with host-python3 (https://gitlab.com/buildroot.org/buildroot/-/issues/5)
When the cmake buildsystem is official, then do not hesitate to resubmit
an improved patch, based on the commit that was initially applied. If
you hit a road-block, do not hesitate to ask for further help, of
course!
Thank you!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-06-26 19:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 13:57 [Buildroot] [PATCH v2 1/5] package/xz: bump version to 5.4.7 Peter Seiderer via buildroot
2024-06-12 13:57 ` [Buildroot] [PATCH v2 2/5] package/xz: bump version to 5.6.2 Peter Seiderer via buildroot
2024-06-12 15:48 ` Julien Olivain
2024-06-24 13:42 ` Arnout Vandecappelle via buildroot
2024-06-12 13:57 ` [Buildroot] [PATCH v2 3/5] package/xz: determine all autoconf options Peter Seiderer via buildroot
2024-06-24 13:44 ` Arnout Vandecappelle via buildroot
2024-06-12 13:57 ` [Buildroot] [PATCH v2 4/5] package/xz: enable year2038 option Peter Seiderer via buildroot
2024-06-24 13:46 ` Arnout Vandecappelle via buildroot
2024-06-12 13:57 ` [Buildroot] [PATCH v2 5/5] package/xz: convert to cmake build Peter Seiderer via buildroot
2024-06-24 13:52 ` Arnout Vandecappelle via buildroot
2024-06-25 9:56 ` yann.morin
2024-06-25 11:11 ` yann.morin
2024-06-26 8:36 ` Peter Seiderer via buildroot
2024-06-26 19:32 ` Yann E. MORIN [this message]
2024-06-27 7:50 ` Peter Seiderer via buildroot
2024-06-27 7:57 ` Peter Seiderer via buildroot
2024-06-27 8:26 ` Peter Seiderer via buildroot
2024-06-27 11:16 ` yann.morin
2024-07-02 12:47 ` Peter Seiderer via buildroot
2024-06-24 13:41 ` [Buildroot] [PATCH v2 1/5] package/xz: bump version to 5.4.7 Arnout Vandecappelle via buildroot
2024-07-08 10:04 ` Peter Korsgaard
2024-07-08 12:54 ` Peter Seiderer via buildroot
2024-07-08 12:57 ` Peter Seiderer via buildroot
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=ZnxsxFK_KDUDM652@landeda \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
--cc=ps.report@gmx.net \
--cc=s.martin49@gmail.com \
--cc=yann.morin@orange.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