Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [buildroot][PATCH 1/1] Fix: qt5webkit overwrites target python.
Date: Tue, 18 Oct 2016 14:57:44 +0200	[thread overview]
Message-ID: <20161018145744.084e6f61@free-electrons.com> (raw)
In-Reply-To: <CAKHhJn2_0viKJtaPk52rues5GBCN7pC=6AcpxgvZ0njmUNt7Ew@mail.gmail.com>

Hello,

On Tue, 18 Oct 2016 12:30:31 +0000, Johan Derycke wrote:
> Fixes issue with
> https://git.buildroot.net/buildroot/commit/?id=ac16793eaaabfced0312420759e3a66cdaa1ea8e
> 
> We make a link in $(@D)/bin/python:
> 
> define QT5WEBKIT_PYTHON2_SYMLINK
>   echo  $(@D)
>   mkdir -p $(@D)/bin
>   ln -sf $(HOST_DIR)/usr/bin/python2 $(@D)/bin/python
> endef
> 
> But QT5WEBKIT_INSTALL_TARGET_CMDS copies $(@D)/bin/python to the target dir:
> 
> define QT5WEBKIT_INSTALL_TARGET_CMDS
>   cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebKit*.so.* $(TARGET_DIR)/usr/lib
>   cp -dpf $(@D)/bin/* $(TARGET_DIR)/usr/bin/
>   $(QT5WEBKIT_INSTALL_TARGET_QMLS)
> endef
> 
> This overwrites the target python link with a bogus one.
> The bin folder only contains 'jsc' which is now optional.
> 
> 
> Signed-off-by: Johan Derycke <johan.derycke@barco.com>

Thanks, but that's not the best fix I believe. A much simpler fix is to
replace the python2 symlink logic by:

	mkdir -p $(@D)/host-bin/
	ln -sf $(HOST_DIR)/usr/bin/python2 $(@D)/host-bin/python

and of course change:

QT5WEBKIT_ENV = PATH=$(@D)/bin:$(BR_PATH)

to

QT5WEBKIT_ENV = PATH=$(@D)/host-bin:$(BR_PATH)

*However*, Yegor keeps saying that qt5webkit builds fine with only
Python 3 installed on the host machine, which would make the original
commit irrelevant. However, I find this rather odd, since we really had
the issue pointed by previous autobuilder failures.

So, in the mean time, I would suggest to go with the fix that I suggest
above. It keeps the current solution of using host-python to build
qt5webkit, but fixes its implementation to behave properly.

Could you resubmit your patch after taking into account the above
suggestion?

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2016-10-18 12:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKHhJn3pztmCS+bHrcMMnwXOm=qdRoBZMDQFLQazGBhWLtJFHg@mail.gmail.com>
2016-10-18 12:30 ` [Buildroot] [buildroot][PATCH 1/1] Fix: qt5webkit overwrites target python Johan Derycke
2016-10-18 12:55   ` Yegor Yefremov
2016-10-18 12:57   ` Thomas Petazzoni [this message]
2016-10-18 14:05     ` Johan Derycke
2016-10-18 14:11       ` Thomas Petazzoni
2016-10-18 14:20         ` [Buildroot] [PATCH " 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=20161018145744.084e6f61@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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