Skip to contentSkip to conversation

gflags: remove setting of S

PATCH New [email protected] 2 participants 4 messages Mar 21, 2017 – Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gflags: remove setting of S

From: Kai Kang <[email protected]>

The current setting of S is not right for multilib. Remove the setting and use the default value.

---
 meta-oe/recipes-support/gflags/gflags_2.2.0.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-support/gflags/gflags_2.2.0.bb +0 -1
index b9188c3..61a5972 100644
@@ -8,7 +8,6 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
 SRC_URI = "https://github.com/gflags/gflags/archive/v${PV}.tar.gz"
 SRC_URI[md5sum] = "b99048d9ab82d8c56e876fb1456c285e"
 SRC_URI[sha256sum] = "466c36c6508a451734e4f4d76825cf9cd9b8716d2b70ef36479ae40f08271f88"
-S = "${WORKDIR}/${PN}-${PV}/"
 
 FILES_${PN}-dev += "${libdir}/cmake"
 
Signature · 1 line
2.10.1
#1 lore raw

PATCH v2 1/1 gflags: correct S and update library install directory

From: Kai Kang <[email protected]>

The current setting of S is not right for multilib. Remove the setting and use the default value.

And library install directory is not right either. Pass ${libdir} to fix the [installed-vs-shipped] QA issue:

| ERROR: gflags-2.2.0-r0 do_package: QA Issue: gflags: Files/directories
| were installed but not shipped in any package:
|   /usr/lib/libgflags.so
|   /usr/lib/libgflags_nothreads.so.2.2
---
 meta-oe/recipes-support/gflags/gflags_2.2.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/gflags/gflags_2.2.0.bb +1 -2
index b9188c3..77617ef 100644
@@ -8,13 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
 SRC_URI = "https://github.com/gflags/gflags/archive/v${PV}.tar.gz"
 SRC_URI[md5sum] = "b99048d9ab82d8c56e876fb1456c285e"
 SRC_URI[sha256sum] = "466c36c6508a451734e4f4d76825cf9cd9b8716d2b70ef36479ae40f08271f88"
-S = "${WORKDIR}/${PN}-${PV}/"
 
 FILES_${PN}-dev += "${libdir}/cmake"
 
 inherit cmake
 
-EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF"
+EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF -DLIBRARY_INSTALL_DIR=${libdir}"
 
 PACKAGES =+ "${PN}-bash-completion"
 FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
Signature · 1 line
2.10.1
#2 lore raw

Re: [meta-oe][PATCH v2] gflags: correct S and update library install directory

This could be the reason for opencv failures:
http://errors.yoctoproject.org/Errors/Details/138538/

Quoted 50 lines · On Tue, Mar 21, 2017 at 6:53 AM, <[email protected]> wrote:

From: Kai Kang <[email protected]>

The current setting of S is not right for multilib. Remove the setting and use the default value.

And library install directory is not right either. Pass ${libdir} to fix the [installed-vs-shipped] QA issue:

| ERROR: gflags-2.2.0-r0 do_package: QA Issue: gflags: Files/directories
| were installed but not shipped in any package:
|   /usr/lib/libgflags.so
|   /usr/lib/libgflags_nothreads.so.2.2
---
 meta-oe/recipes-support/gflags/gflags_2.2.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/gflags/gflags_2.2.0.bb +0 -0
index b9188c3..77617ef 100644
@@ -8,13 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=

c80d1a3b623f72bb85a4c75b556551df"
SRC_URI = "https://github.com/gflags/gflags/archive/v${PV}.tar.gz" SRC_URI[md5sum] = "b99048d9ab82d8c56e876fb1456c285e" SRC_URI[sha256sum] = "466c36c6508a451734e4f4d76825cf
9cd9b8716d2b70ef36479ae40f08271f88"

meta-oe/recipes-support/gflags/gflags_2.2.0.bb +1 -4
-S = "${WORKDIR}/${PN}-${PV}/"
 
 FILES_${PN}-dev += "${libdir}/cmake"
 
 inherit cmake
 
-EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF"
+EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF
-DLIBRARY_INSTALL_DIR=${libdir}"
 
 PACKAGES =+ "${PN}-bash-completion"
 FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
--

2.10.1

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

author
#3 lore raw

Re: [meta-oe][PATCH v2] gflags: correct S and update library install directory

Quoted 2 lines · Martin Jansa

This could be the reason for opencv failures:
http://errors.yoctoproject.org/Errors/Details/138538/

Sorry for the trouble and I am working on it.

--Kai

Quoted 67 lines · On Tue, Mar 21, 2017 at 6:53 AM, <[email protected]…
    From: Kai Kang <[email protected]
    <mailto:[email protected]>>

    The current setting of S is not right for multilib. Remove the setting
    and use the default value.

    And library install directory is not right either. Pass ${libdir}
    to fix
    the [installed-vs-shipped] QA issue:

    | ERROR: gflags-2.2.0-r0 do_package: QA Issue: gflags:
    Files/directories
    | were installed but not shipped in any package:
    |   /usr/lib/libgflags.so
    |   /usr/lib/libgflags_nothreads.so.2.2

    Signed-off-by: Kai Kang <[email protected]
    <mailto:[email protected]>>
    ---
     meta-oe/recipes-support/gflags/gflags_2.2.0.bb
    <http://gflags_2.2.0.bb> | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/meta-oe/recipes-support/gflags/gflags_2.2.0.bb
    <http://gflags_2.2.0.bb>
    b/meta-oe/recipes-support/gflags/gflags_2.2.0.bb
    <http://gflags_2.2.0.bb>
    index b9188c3..77617ef 100644
    --- a/meta-oe/recipes-support/gflags/gflags_2.2.0.bb
    <http://gflags_2.2.0.bb>
    +++ b/meta-oe/recipes-support/gflags/gflags_2.2.0.bb
    <http://gflags_2.2.0.bb>
    @@ -8,13 +8,12 @@ LIC_FILES_CHKSUM =
    "file://COPYING.txt;md5=c80d1a3b623f72bb85a4c75b556551df"
     SRC_URI = "https://github.com/gflags/gflags/archive/v${PV}.tar.gz
    <https://github.com/gflags/gflags/archive/v$%7BPV%7D.tar.gz>"
     SRC_URI[md5sum] = "b99048d9ab82d8c56e876fb1456c285e"
     SRC_URI[sha256sum] =
    "466c36c6508a451734e4f4d76825cf9cd9b8716d2b70ef36479ae40f08271f88"
    -S = "${WORKDIR}/${PN}-${PV}/"

     FILES_${PN}-dev += "${libdir}/cmake"

     inherit cmake

    -EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF"
    +EXTRA_OECMAKE="-DBUILD_SHARED_LIBS=ON
    -DREGISTER_INSTALL_PREFIX=OFF -DLIBRARY_INSTALL_DIR=${libdir}"

     PACKAGES =+ "${PN}-bash-completion"
     FILES_${PN}-bash-completion += "${bindir}/gflags_completions.sh"
    --
    2.10.1

    --
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>
Signature · 2 lines
Regards,
Neil | Kai Kang