Skip to contentSkip to conversation

nativesdk-qtbase: Fix install error in case install task is rerun

PATCH In review Otavio Salvador 3 participants 9 messages Feb 14, 2014 – Feb 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 nativesdk-qtbase: Fix install error in case install task is rerun

In case changes are done in do_install and the sstate checksums change, the task would fail as the qmake binary has already been replaced. Avoid this error checking for the original filename.

---
 recipes-qt/qt5/nativesdk-qtbase.inc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-qt/qt5/nativesdk-qtbase.inc +4 -2
index c4ef6e8..36bc334 100644
@@ -178,8 +178,10 @@ do_install() {
     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
-    rm ${B}/bin/qmake
-    mv ${B}/bin/qmake-real ${B}/bin/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}
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 nativesdk-qtbase.inc: Remove unused contents

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped
/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so
...

---
 recipes-qt/qt5/nativesdk-qtbase.inc |    4 ++++
 1 file changed, 4 insertions(+)
recipes-qt/qt5/nativesdk-qtbase.inc +4 -0
index 36bc334..fe80c9b 100644
@@ -188,4 +188,8 @@ do_install() {
     # 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
+
+    # remove things unused in nativesdk; things are statically link
+    # and we just use the binaries so drop all unused files
+    rm -rf ${D}${includedir} ${D}${libdir} ${D}${datadir}/doc
 }
Signature · 1 line
1.7.10.4
Acked-by on v1 2/2
#2 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents

Quoted 11 lines · Otavio Salvador

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped
/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so
...

Quoted 24 lines
---
 recipes-qt/qt5/nativesdk-qtbase.inc |    4 ++++
 1 file changed, 4 insertions(+)
recipes-qt/qt5/nativesdk-qtbase.inc +4 -0
index 36bc334..fe80c9b 100644
@@ -188,4 +188,8 @@ do_install() {
     # 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
+
+    # remove things unused in nativesdk; things are statically link
+    # and we just use the binaries so drop all unused files
+    rm -rf ${D}${includedir} ${D}${libdir} ${D}${datadir}/doc
 }
Signature · 6 lines
1.7.10.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#3 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents

Quoted 11 lines · Denys Dmytriyenko
Quoted 10 lines · Otavio Salvador

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped
/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so
...

Quoted 3 lines
Quoted 1 line

I applied it and found it broke the build afterwards. I fixed this one (will send the patch in some minutes) but this uncovered another issue I am working on now.

Signature · 3 lines
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
#4 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents

Quoted 18 lines · Otavio Salvador
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines · Otavio Salvador

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but

not shipped

Quoted 4 lines
Quoted 4 lines

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so

Quoted 1 line
Quoted 1 line

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so

Quoted 4 lines
Quoted 3 lines

...

Quoted 7 lines
Quoted 1 line

I applied it and found it broke the build afterwards. I fixed this one (will send the patch in some minutes) but this uncovered another issue I am working on now.

I may be wrong, but I think

7d8f8d6b5a00af7a212cce41350f4e1c5989aabd
or
8da5017712a7ddcb8488e095b9aa03b0273f23e9

screws up the package name for nativesdk-qtbase-tools. On my system now, no nativesdk-qtbase-tools ipk is created, instead the "moc" program is placed in nativesdk-libqt5core5 ipk.

Adding

DEBIAN_NOAUTONAME_${PN}-tools = "1"

in nativesdk-qtbase.inc restores the created ipk package name to "nativesdk-qtbase-tools".

-- Jacob

#5 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents

Hello Jacob,

Quoted 36 lines · Jacob Kroon
Quoted 18 lines · Otavio Salvador
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines · Otavio Salvador

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but

not shipped

Quoted 4 lines
Quoted 4 lines

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so

Quoted 1 line
Quoted 1 line

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so

Quoted 4 lines
Quoted 3 lines

...

Quoted 7 lines
Quoted 1 line

I applied it and found it broke the build afterwards. I fixed this one (will send the patch in some minutes) but this uncovered another issue I am working on now.

I may be wrong, but I think

7d8f8d6b5a00af7a212cce41350f4e1c5989aabd
or
8da5017712a7ddcb8488e095b9aa03b0273f23e9

screws up the package name for nativesdk-qtbase-tools. On my system now, no nativesdk-qtbase-tools ipk is created, instead the "moc" program is placed in nativesdk-libqt5core5 ipk.

Quoted 6 lines

Adding

DEBIAN_NOAUTONAME_${PN}-tools = "1"

in nativesdk-qtbase.inc restores the created ipk package name to "nativesdk-qtbase-tools".

Indeed; are you going to send a patch for it or want me to handle this?

Regards,

Signature · 3 lines
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
#6 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents

Quoted 45 lines · Otavio Salvador

Hello Jacob,

Quoted 1 line · Jacob Kroon

On Mon, Feb 17, 2014 at 6:45 PM, Otavio Salvador <

Quoted 7 lines · [email protected]>wrote:
Quoted 7 lines
Quoted 4 lines · Denys Dmytriyenko
Quoted 3 lines · Otavio Salvador

Fixes:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed

but

Quoted 8 lines
Quoted 8 lines

not shipped

Quoted 4 lines
Quoted 4 lines

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/include /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/share

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Test.so

Quoted 1 line
Quoted 1 line

/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/lib/libQt5Network.so

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
Quoted 3 lines

...

I applied it and found it broke the build afterwards. I fixed this one (will send the patch in some minutes) but this uncovered another issue I am working on now.

Quoted 7 lines
Quoted 1 line

I may be wrong, but I think

7d8f8d6b5a00af7a212cce41350f4e1c5989aabd
or
8da5017712a7ddcb8488e095b9aa03b0273f23e9

screws up the package name for nativesdk-qtbase-tools. On my system now,

no

Quoted 1 line

nativesdk-qtbase-tools ipk is created, instead the "moc" program is

placed

Quoted 2 lines

in nativesdk-libqt5core5 ipk.

Quoted 10 lines
Quoted 6 lines

Adding

DEBIAN_NOAUTONAME_${PN}-tools = "1"

in nativesdk-qtbase.inc restores the created ipk package name to "nativesdk-qtbase-tools".

Indeed; are you going to send a patch for it or want me to handle this?

Sure, I can send a patch, I just wasn't sure wether this fix was correct or not.

-- Jacob

#7 lore raw
In reply to Otavio Salvador
Quoted 3 lines · Otavio Salvador

In case changes are done in do_install and the sstate checksums change, the task would fail as the qmake binary has already been replaced. Avoid this error checking for the original filename.

BTW, I was working on a different change in this area, which would do the qmake swap in ${D} instead of ${B} - that way it would be safe to repeat do_install if it fails and it would fix the above issue. Would you rather want that change or keep yours?

Quoted 29 lines
---
 recipes-qt/qt5/nativesdk-qtbase.inc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-qt/qt5/nativesdk-qtbase.inc +4 -2
index c4ef6e8..36bc334 100644
@@ -178,8 +178,10 @@ do_install() {
     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
-    rm ${B}/bin/qmake
-    mv ${B}/bin/qmake-real ${B}/bin/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}
 
Signature · 6 lines
1.7.10.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#8 lore raw
Quoted 9 lines · Denys Dmytriyenko
Quoted 3 lines · Otavio Salvador

In case changes are done in do_install and the sstate checksums change, the task would fail as the qmake binary has already been replaced. Avoid this error checking for the original filename.

BTW, I was working on a different change in this area, which would do the qmake swap in ${D} instead of ${B} - that way it would be safe to repeat do_install if it fails and it would fix the above issue. Would you rather want that change or keep yours?

This one has been applied but I'd be open to get yours in top of mine. I think yours is cleaner.

Signature · 3 lines
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