All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Buildroot Mailing List <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 1/2] Revert "package/log4cxx: select boost chrono and date-time with gcc < 7"
Date: Fri, 19 Nov 2021 18:50:12 +0100	[thread overview]
Message-ID: <20211119175012.GR247986@scaer> (raw)
In-Reply-To: <CAPi7W81Q5geT6Qd_mKdu4UPOF3qzmUJd1=4L7tBLagJ0dhJ6jQ@mail.gmail.com>

Fabrice, All,

(typing this without light, I accidentally broke the bulb... Hopefully,
there will be less typoes than in my usual mails, as I am extra careful
what key I am typing. Hey, that's not even guaranteed! ;-] )

On 2021-11-19 18:43 +0100, Fabrice Fontaine spake thusly:
> Le ven. 19 nov. 2021 à 18:31, Fabrice Fontaine
> <fontaine.fabrice@gmail.com> a écrit :
> > Le ven. 19 nov. 2021 à 18:10, Yann E. MORIN <yann.morin.1998@free.fr> a écrit :
> > > On 2021-11-19 17:54 +0100, Fabrice Fontaine spake thusly:
> > > > This reverts commit 3c2245cb65741c965f4bb87d35ac3c64f250a1ae to move
> > > > these selects on boost side as the build failure was raised with gcc >=
> > > > 7.
> > > So, if I understand correctly, if we just apply this revert, but not the
> > > following patch, we break the build again, right? If so, then it makes
> > > the history not bi-sectable.
> > No, basically the patch that I'm reverting is a "no-op".

Aj, OK, so the order indeed does not matter much. But semantically, it
does matter, and that the revert comes first is then correct, with your
explanations.

> > It does not fix anything as the build failure is raised with gcc >=7,
> > not gcc < 7.
> > I made this mistake, because the build failure is only raised since
> > cmake >= 3.21.3 and
> In fact, I made another mistake, the build failure is raised with
> cmake < 3.21.3.
> I really hate cmake ;-). I'll send a v2 with an updated commit log.

Hihihi! :-)

Thanks!

Regards,
Yann E. MORIN.

> > https://github.com/Kitware/CMake/commit/1ad0c5ae53fc0c4f774166337f0e9c93c578cf9b.
> >
> > cmake has the following behavior:
> >  - if it "recognizes" the boost version, it will set the boost thread
> > dependencies to chrono date_time atomic.
> >  - However, if it does not recognize it (i.e. with cmake < 3.21.3 and
> > boost 1.77.0), it will set the boost thread dependencies to chrono
> > atomic.
> > >
> > > Instead, the boost patch must be applied first, and once that is done,
> > > then we can apply this revert.
> > >
> > > If the above is correct, just say so, we can re-order the patches when
> > > applying...
> > >
> > > Regards,
> > > Yann E. MORIN.
> > >
> > > > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > > > ---
> > > >  package/log4cxx/Config.in | 2 --
> > > >  1 file changed, 2 deletions(-)
> > > >
> > > > diff --git a/package/log4cxx/Config.in b/package/log4cxx/Config.in
> > > > index 27a5f06988..6f1956f829 100644
> > > > --- a/package/log4cxx/Config.in
> > > > +++ b/package/log4cxx/Config.in
> > > > @@ -12,8 +12,6 @@ config BR2_PACKAGE_LOG4CXX
> > > >       select BR2_PACKAGE_APR_UTIL
> > > >       select BR2_PACKAGE_BOOST if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
> > > >       select BR2_PACKAGE_BOOST_ATOMIC if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
> > > > -     select BR2_PACKAGE_BOOST_CHRONO if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
> > > > -     select BR2_PACKAGE_BOOST_DATE_TIME if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
> > > >       select BR2_PACKAGE_BOOST_THREAD if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
> > > >       help
> > > >         Apache log4cxx is a logging framework for C++ patterned
> > > > --
> > > > 2.33.0
> > > >
> > > > _______________________________________________
> > > > buildroot mailing list
> > > > buildroot@buildroot.org
> > > > https://lists.buildroot.org/mailman/listinfo/buildroot
> > >
> > > --
> > > .-----------------.--------------------.------------------.--------------------.
> > > |  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.  |
> > > '------------------------------^-------^------------------^--------------------'
> > Best Regards,
> >
> > Fabrice

-- 
.-----------------.--------------------.------------------.--------------------.
|  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

      reply	other threads:[~2021-11-19 17:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 16:54 [Buildroot] [PATCH 1/2] Revert "package/log4cxx: select boost chrono and date-time with gcc < 7" Fabrice Fontaine
2021-11-19 16:54 ` [Buildroot] [PATCH 2/2] package/boost: threads needs date-time Fabrice Fontaine
2021-11-19 17:10 ` [Buildroot] [PATCH 1/2] Revert "package/log4cxx: select boost chrono and date-time with gcc < 7" Yann E. MORIN
2021-11-19 17:31   ` Fabrice Fontaine
2021-11-19 17:43     ` Fabrice Fontaine
2021-11-19 17:50       ` Yann E. MORIN [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=20211119175012.GR247986@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@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.