All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: Peter Thompson <peter.macleod.thompson@gmail.com>
Cc: buildroot <buildroot@buildroot.org>
Subject: Re: [Buildroot] Buildroot Failure 2022-02-16 02:25:21
Date: Sat, 19 Feb 2022 22:01:51 +0100	[thread overview]
Message-ID: <e7a1cacd-c8c6-68b7-bd39-cc287440adb8@benettiengineering.com> (raw)
In-Reply-To: <CAGrGpJD5umJqWjjgLKSGiX1xGzJqHyrw9=5CdH=HSNQj65DUMw@mail.gmail.com>

Hi Peter,

+Cc BR ML,

On 19/02/22 17:01, Peter Thompson wrote:
> Hi Giulio,
> 
> When I compared the most recent buildroot via "git clone" and compared 
> it to the "build in cba34..." I noticed the difference in 
> package/sdl2_ttf/ sdl2_ttf.mk <http://sdl2_ttf.mk>.   But I could not 
> find the commit in https://patchwork.ozlabs.org/project/buildroot/ 
> <https://patchwork.ozlabs.org/project/buildroot/> where that was 
> changed.

Pathchwork deals with patches, while you find commits in the git Repository:
https://git.buildroot.net/buildroot/log/

>   I looked for the title package/sdl2_ttf and did not see it?
> 
> Is there an easy way to search patchwork without going through line by 
> line?    I do not have pwclient installed - should I?

You can still use patchwork itself:
1) click on "Show patches with:"
2) use package name as "Search", so sdl2_ttf
3) set State as "any"
4) set Archived as Both

That way you will see all the patches, the New, Accepted, Superseded and 
Reject.

Another method would be by checking Buildroot Repository itself.
You can:
$ cd buildroot/
$ git log --grep=sdl2_ttf
or since you already know the package:
$ git log package/sdl2_ttf
or also:
$ gitk package/sdl2_ttf

That will give you the idea of what is really applied.

Or yes, you can use pwclient, but that and patchwork are really patch 
oriented. Here what you need is to check if the fix is already 
committed, so I(at least) would go for using git most of all.

Best regards
-- 
Giulio Benetti
Benetti Engineering sas

> Thanks so much for your patience and help.
> 
> Peter
> 
> 
> On Sat, Feb 19, 2022 at 4:54 AM Giulio Benetti 
> <giulio.benetti@benettiengineering.com 
> <mailto:giulio.benetti@benettiengineering.com>> wrote:
> 
>     Yes, but probably has been already fixed.
>     Anyway now you know the entire workflow!
> 
>     Giulio
> 
>     Inviato da iPhone
> 
>>     Il giorno 19 feb 2022, alle ore 03:14, Peter Thompson
>>     <peter.macleod.thompson@gmail.com
>>     <mailto:peter.macleod.thompson@gmail.com>> ha scritto:
>>
>>     
>>     Lots for me to work on!!!!   Thanks so much for your help!!
>>     I will let you know when I have success.
>>     Peter
>>
>>     On Fri, Feb 18, 2022 at 2:41 PM Giulio Benetti
>>     <giulio.benetti@benettiengineering.com
>>     <mailto:giulio.benetti@benettiengineering.com>> wrote:
>>
>>         Hi Peter,
>>
>>         I add ML in Cc,
>>
>>>         Il giorno 18 feb 2022, alle ore 20:03, Peter Thompson
>>>         <peter.macleod.thompson@gmail.com
>>>         <mailto:peter.macleod.thompson@gmail.com>> ha scritto:
>>>
>>>         
>>>         Hi  Giulio
>>>
>>>         Whew - that was fast - I am back asking questions already :)....
>>>
>>>         My bump of sdl2_ttf-2.0.15 to sdl2_ttf-2.0.18  caused an
>>>         autobuilder failure  2022-02-16 02:25:21.      The log
>>>         indicates the problem is  pthread.h missing when harfbuzz is
>>>         specified.    See log below...
>>
>>         Here can you please provide me the link like below?
>>         http://autobuild.buildroot.net/results/cba/cba34c431f8d1315e9ca9159274421a8219a701e//
>>         <http://autobuild.buildroot.net/results/cba/cba34c431f8d1315e9ca9159274421a8219a701e//>
>>
>>>
>>>         Not sure why sdl2_ttf-2.0.15 worked before..... 
>>
>>         It seems like that between 2.0.15 to 2.0.18(maybe)
>>         sdl2_ttf only uses harfbuzz provided by sdl2_ttf itself.
>>         This means it’s skipping the one provided from Buildroot that
>>         is already patched for harfbuzz pthread.h issue.
>>
>>>         Anyways, I planned to add
>>>         SDL2_TTF_DEPENDENCIES +=  pthread
>>>         right under
>>>         SDL2_TTF_DEPENDENCIES +=  harfbuzz
>>
>>         I would instead try to make sdl2_ttf to choose external
>>         harfbuzz instead of using the internal one. And also, we’re
>>         not sure that phtread.h is not provided at all.
>>         Sometimes build systems fail to recognize headers and libs(the
>>         way they check if a library does exist or not).
>>
>>>
>>>         But I am having trouble testing.   When I submit
>>>          ./autobuild   91f241b8e96   ( I assume SHA1 is the git id =
>>>         commit id)
>>>         I get
>>>         404 Error Cannot get configuration for build 91f/91f241b8
>>>         Suggestions?
>>
>>         Here you need to pass this sha1:
>>         cba34c431f8d1315e9ca9159274421a8219a701e
>>         that is the autobuilder sha1 and not the git sha1.
>>
>>         Take care to download the right script:
>>         http://git.buildroot.net/buildroot-test/plain/utils/br-reproduce-build
>>         <http://git.buildroot.net/buildroot-test/plain/utils/br-reproduce-build>
>>
>>         Then to:
>>         $ chmod a+x br-reproduce-build
>>         Open it and adjust Buildroot path.
>>         Then execute it with:
>>         $ ./br-reproduce-build cba34c431f8d1315e9ca9159274421a8219a701e
>>
>>         Also remember that if it fails you can:
>>         $ cd cba34c431f8d1315e9ca9159274421a8219a701e/output
>>         $ make sdl2_ttf
>>         or to rebuild package only:
>>         $ make sdl2_ttf-dirclean sdl2_ttf
>>
>>>
>>>         --- ALTERNATE IDEA ---
>>>
>>>         A better way to fix this issue might be to fix
>>>         package/harfbuzz.   It is that dependency which needs pthread
>>>         and which is causing sdl2_ttf to fail AFAIK. 
>>
>>         If look closer the build failure you will see that it’s not
>>         Buildroot harfbuzz that fails but a harfbuzz embedded into
>>         sdl2_ttf.
>>         So what I should to is to try to make sdl2_ttf drop its
>>         internal harfbuzz and use the Buildroot one.
>>
>>>         I see harfbuzz is maintained by you so you are an excellent
>>>         person to ask.
>>>
>>>         I checked harfbuzz and there is
>>>         0001-meson.build-check-for-pthread.h.patch
>>>         from Nov 2020 by Fabrice Fontaine.   Not sure if that patch
>>>         was applied or if it fixes my issue.
>>
>>         That is applied and actually fixes harfbuzz build failure. But
>>         as explained above you’re dealing with the one embedded into
>>         sdl2_ttf package.
>>
>>>
>>>         Should I have copied the mailing list with these questions? 
>>>         I am never sure.
>>
>>         If you’re in doubt put it in Cc :-)
>>
>>>         Anyway - thanks for being there and helping.    It is
>>>         appreciated.
>>
>>         You’re welcome!
>>
>>         Best regards
>>
>>         Giulio
>>
>>>
>>>         Peter
>>>
>>>
>>>         In file included from external/harfbuzz-2.8.0/src/hb.hh:470,
>>>                           from external/harfbuzz-2.8.0/src/hb-aat-layout.cc:28:
>>>         external/harfbuzz-2.8.0/src/hb-mutex.hh:53:10: fatal error: pthread.h: No such file or directory
>>>             53 | #include <pthread.h>
>>>                |          ^~~~~~~~~~~
>>>         compilation terminated.
>>>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

       reply	other threads:[~2022-02-19 21:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGrGpJBUqrbuLcMNZk3f8ovuMN+RddjNdoV=i=q3x2dRYmW6eA@mail.gmail.com>
     [not found] ` <ECCB3B7E-CCF1-44EE-AE8C-8EB1E8B0BEC7@benettiengineering.com>
     [not found]   ` <CAGrGpJD5umJqWjjgLKSGiX1xGzJqHyrw9=5CdH=HSNQj65DUMw@mail.gmail.com>
2022-02-19 21:01     ` Giulio Benetti [this message]
     [not found] <CAGrGpJB10RkRQOwkJ6_cVz=qX2qkQPxp5rmf802qOiss+5+3xw@mail.gmail.com>
2022-02-18 21:41 ` [Buildroot] Buildroot Failure 2022-02-16 02:25:21 Giulio Benetti
2022-02-19  9:01   ` Yann E. MORIN
2022-02-19 11:53     ` Giulio Benetti
2022-02-19 15:45     ` Peter Thompson

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=e7a1cacd-c8c6-68b7-bd39-cc287440adb8@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=buildroot@buildroot.org \
    --cc=peter.macleod.thompson@gmail.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.