All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
@ 2014-02-20 17:12 Denys Dmytriyenko
  2014-02-20 17:52 ` Otavio Salvador
  2014-02-22  8:05 ` Martin Jansa
  0 siblings, 2 replies; 7+ messages in thread
From: Denys Dmytriyenko @ 2014-02-20 17:12 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@ti.com>

* This way we don't mangle ${B} and can repeat do_install if necessary. And
  previously it would require running do_compile again to restore the proper
  state of ${B}.
* Need to bump PR, since do_compile isn't changing, but needs to re-run to
  re-populate qmake-real binary.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
index fa44009..3cb9b0e 100644
--- a/recipes-qt/qt5/nativesdk-qtbase.inc
+++ b/recipes-qt/qt5/nativesdk-qtbase.inc
@@ -10,6 +10,8 @@ require nativesdk-qt5.inc
 # it's already included with newer oe-core, but include it here for dylan
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
 
+PR = "r1"
+
 # common with -native and target version
 SRC_URI += "\
     file://0001-Add-linux-oe-g-platform.patch \
@@ -192,14 +194,12 @@ do_install() {
     # Fix install paths for all
     find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
 
-    # switch back the proper qmake
-    if [ -e ${B}/bin/qmake-real ]; then
-        rm ${B}/bin/qmake
-        mv ${B}/bin/qmake-real ${B}/bin/qmake
-    fi
-
     oe_runmake install INSTALL_ROOT=${D}
 
+    # replace the native qmake installed above with nativesdk version
+    rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
+    install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
+
     # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt)
     # e.g. qt3d, qtwayland
     ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-20 17:12 [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B} Denys Dmytriyenko
@ 2014-02-20 17:52 ` Otavio Salvador
  2014-02-22  8:05 ` Martin Jansa
  1 sibling, 0 replies; 7+ messages in thread
From: Otavio Salvador @ 2014-02-20 17:52 UTC (permalink / raw)
  To: OpenEmbedded Devel List; +Cc: Denys Dmytriyenko

Hello Denys,

On Thu, Feb 20, 2014 at 2:12 PM, Denys Dmytriyenko <denis@denix.org> wrote:
> From: Denys Dmytriyenko <denys@ti.com>
>
> * This way we don't mangle ${B} and can repeat do_install if necessary. And
>   previously it would require running do_compile again to restore the proper
>   state of ${B}.
> * Need to bump PR, since do_compile isn't changing, but needs to re-run to
>   re-populate qmake-real binary.
>
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>

Works like a charm. I will wait until tomorrow to see if someone has
any extra feedback and push it.

Thanks for reworking the patch.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-20 17:12 [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B} Denys Dmytriyenko
  2014-02-20 17:52 ` Otavio Salvador
@ 2014-02-22  8:05 ` Martin Jansa
  2014-02-24 14:46   ` Denys Dmytriyenko
  2014-02-24 15:18   ` Otavio Salvador
  1 sibling, 2 replies; 7+ messages in thread
From: Martin Jansa @ 2014-02-22  8:05 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Denys Dmytriyenko

[-- Attachment #1: Type: text/plain, Size: 2331 bytes --]

On Thu, Feb 20, 2014 at 12:12:11PM -0500, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@ti.com>
> 
> * This way we don't mangle ${B} and can repeat do_install if necessary. And
>   previously it would require running do_compile again to restore the proper
>   state of ${B}.
> * Need to bump PR, since do_compile isn't changing, but needs to re-run to
>   re-populate qmake-real binary.
> 
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
>  recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
> index fa44009..3cb9b0e 100644
> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
> @@ -10,6 +10,8 @@ require nativesdk-qt5.inc
>  # it's already included with newer oe-core, but include it here for dylan
>  FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
>  
> +PR = "r1"
> +

It's already merged, but please don't add new PRs, especially to .inc
files.

>  # common with -native and target version
>  SRC_URI += "\
>      file://0001-Add-linux-oe-g-platform.patch \
> @@ -192,14 +194,12 @@ do_install() {
>      # Fix install paths for all
>      find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
>  
> -    # switch back the proper qmake
> -    if [ -e ${B}/bin/qmake-real ]; then
> -        rm ${B}/bin/qmake
> -        mv ${B}/bin/qmake-real ${B}/bin/qmake
> -    fi
> -
>      oe_runmake install INSTALL_ROOT=${D}
>  
> +    # replace the native qmake installed above with nativesdk version
> +    rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
> +    install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
> +
>      # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt)
>      # e.g. qt3d, qtwayland
>      ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt
> -- 
> 1.8.3.2
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-22  8:05 ` Martin Jansa
@ 2014-02-24 14:46   ` Denys Dmytriyenko
  2014-02-24 15:18   ` Otavio Salvador
  1 sibling, 0 replies; 7+ messages in thread
From: Denys Dmytriyenko @ 2014-02-24 14:46 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Denys Dmytriyenko

On Sat, Feb 22, 2014 at 09:05:05AM +0100, Martin Jansa wrote:
> On Thu, Feb 20, 2014 at 12:12:11PM -0500, Denys Dmytriyenko wrote:
> > From: Denys Dmytriyenko <denys@ti.com>
> > 
> > * This way we don't mangle ${B} and can repeat do_install if necessary. And
> >   previously it would require running do_compile again to restore the proper
> >   state of ${B}.
> > * Need to bump PR, since do_compile isn't changing, but needs to re-run to
> >   re-populate qmake-real binary.
> > 
> > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > ---
> >  recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> > 
> > diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
> > index fa44009..3cb9b0e 100644
> > --- a/recipes-qt/qt5/nativesdk-qtbase.inc
> > +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
> > @@ -10,6 +10,8 @@ require nativesdk-qt5.inc
> >  # it's already included with newer oe-core, but include it here for dylan
> >  FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
> >  
> > +PR = "r1"
> > +
> 
> It's already merged, but please don't add new PRs, especially to .inc
> files.

Please read the commit description above that explains the reason PR is 
required here. Without it, the build will be broken for everyone who already 
built nativesdk-qtbase and would require a clean up or rerun of do_compile


> >  # common with -native and target version
> >  SRC_URI += "\
> >      file://0001-Add-linux-oe-g-platform.patch \
> > @@ -192,14 +194,12 @@ do_install() {
> >      # Fix install paths for all
> >      find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
> >  
> > -    # switch back the proper qmake
> > -    if [ -e ${B}/bin/qmake-real ]; then
> > -        rm ${B}/bin/qmake
> > -        mv ${B}/bin/qmake-real ${B}/bin/qmake
> > -    fi
> > -
> >      oe_runmake install INSTALL_ROOT=${D}
> >  
> > +    # replace the native qmake installed above with nativesdk version
> > +    rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
> > +    install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake
> > +
> >      # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt)
> >      # e.g. qt3d, qtwayland
> >      ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt
> > -- 
> > 1.8.3.2
> > 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-22  8:05 ` Martin Jansa
  2014-02-24 14:46   ` Denys Dmytriyenko
@ 2014-02-24 15:18   ` Otavio Salvador
  2014-02-24 15:44     ` Martin Jansa
  1 sibling, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2014-02-24 15:18 UTC (permalink / raw)
  To: OpenEmbedded Devel List; +Cc: Denys Dmytriyenko

Hello Martin,

On Sat, Feb 22, 2014 at 5:05 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Thu, Feb 20, 2014 at 12:12:11PM -0500, Denys Dmytriyenko wrote:
>> From: Denys Dmytriyenko <denys@ti.com>
>>
>> * This way we don't mangle ${B} and can repeat do_install if necessary. And
>>   previously it would require running do_compile again to restore the proper
>>   state of ${B}.
>> * Need to bump PR, since do_compile isn't changing, but needs to re-run to
>>   re-populate qmake-real binary.
>>
>> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>> ---
>>  recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
>>  1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
>> index fa44009..3cb9b0e 100644
>> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
>> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
>> @@ -10,6 +10,8 @@ require nativesdk-qt5.inc
>>  # it's already included with newer oe-core, but include it here for dylan
>>  FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
>>
>> +PR = "r1"
>> +
>
> It's already merged, but please don't add new PRs, especially to .inc
> files.

As explained by Denys this is really need, in this case.  I agree it
could have been put in the bb recipe though.

Denys, could you move this to the bb recipe? This avoids the PR to be
kept when we update to newer version.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-24 15:18   ` Otavio Salvador
@ 2014-02-24 15:44     ` Martin Jansa
  2014-02-24 15:47       ` Otavio Salvador
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2014-02-24 15:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Denys Dmytriyenko

[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]

On Mon, Feb 24, 2014 at 12:18:48PM -0300, Otavio Salvador wrote:
> Hello Martin,
> 
> On Sat, Feb 22, 2014 at 5:05 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > On Thu, Feb 20, 2014 at 12:12:11PM -0500, Denys Dmytriyenko wrote:
> >> From: Denys Dmytriyenko <denys@ti.com>
> >>
> >> * This way we don't mangle ${B} and can repeat do_install if necessary. And
> >>   previously it would require running do_compile again to restore the proper
> >>   state of ${B}.
> >> * Need to bump PR, since do_compile isn't changing, but needs to re-run to
> >>   re-populate qmake-real binary.
> >>
> >> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> >> ---
> >>  recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
> >>  1 file changed, 6 insertions(+), 6 deletions(-)
> >>
> >> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
> >> index fa44009..3cb9b0e 100644
> >> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
> >> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
> >> @@ -10,6 +10,8 @@ require nativesdk-qt5.inc
> >>  # it's already included with newer oe-core, but include it here for dylan
> >>  FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
> >>
> >> +PR = "r1"
> >> +
> >
> > It's already merged, but please don't add new PRs, especially to .inc
> > files.
> 
> As explained by Denys this is really need, in this case.  I agree it
> could have been put in the bb recipe though.

Sorry I've overlooked it in message.

with rm_work you wouldn't see this issue, but for cost of reexecuting
do_compile :)

> Denys, could you move this to the bb recipe? This avoids the PR to be
> kept when we update to newer version.

I can try to remember this and remove it when doing next upgrade to
5.2.2.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}
  2014-02-24 15:44     ` Martin Jansa
@ 2014-02-24 15:47       ` Otavio Salvador
  0 siblings, 0 replies; 7+ messages in thread
From: Otavio Salvador @ 2014-02-24 15:47 UTC (permalink / raw)
  To: OpenEmbedded Devel List; +Cc: Denys Dmytriyenko

On Mon, Feb 24, 2014 at 12:44 PM, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Mon, Feb 24, 2014 at 12:18:48PM -0300, Otavio Salvador wrote:
>> Hello Martin,
>>
>> On Sat, Feb 22, 2014 at 5:05 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
>> > On Thu, Feb 20, 2014 at 12:12:11PM -0500, Denys Dmytriyenko wrote:
>> >> From: Denys Dmytriyenko <denys@ti.com>
>> >>
>> >> * This way we don't mangle ${B} and can repeat do_install if necessary. And
>> >>   previously it would require running do_compile again to restore the proper
>> >>   state of ${B}.
>> >> * Need to bump PR, since do_compile isn't changing, but needs to re-run to
>> >>   re-populate qmake-real binary.
>> >>
>> >> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>> >> ---
>> >>  recipes-qt/qt5/nativesdk-qtbase.inc | 12 ++++++------
>> >>  1 file changed, 6 insertions(+), 6 deletions(-)
>> >>
>> >> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
>> >> index fa44009..3cb9b0e 100644
>> >> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
>> >> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
>> >> @@ -10,6 +10,8 @@ require nativesdk-qt5.inc
>> >>  # it's already included with newer oe-core, but include it here for dylan
>> >>  FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
>> >>
>> >> +PR = "r1"
>> >> +
>> >
>> > It's already merged, but please don't add new PRs, especially to .inc
>> > files.
>>
>> As explained by Denys this is really need, in this case.  I agree it
>> could have been put in the bb recipe though.
>
> Sorry I've overlooked it in message.
>
> with rm_work you wouldn't see this issue, but for cost of reexecuting
> do_compile :)
>
>> Denys, could you move this to the bb recipe? This avoids the PR to be
>> kept when we update to newer version.
>
> I can try to remember this and remove it when doing next upgrade to
> 5.2.2.

Yes but I keep rm_work off in my builders to get this kind of failure ;-)

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-24 15:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20 17:12 [meta-qt5][PATCHv2] nativesdk-qtbase: do qmake replacement in ${D} instead of ${B} Denys Dmytriyenko
2014-02-20 17:52 ` Otavio Salvador
2014-02-22  8:05 ` Martin Jansa
2014-02-24 14:46   ` Denys Dmytriyenko
2014-02-24 15:18   ` Otavio Salvador
2014-02-24 15:44     ` Martin Jansa
2014-02-24 15:47       ` Otavio Salvador

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.