Skip to contentSkip to conversation

spice: Upgrade 0.14.0 -> 0.14.1

PATCH In review He Zhe 2 participants 3 messages Sep 4, 2018

lore
Share & tools
lore

He Zhe

author
#0 lore raw

PATCH 1/1 spice: Upgrade 0.14.0 -> 0.14.1

- Fix the following build error.

../config.h:65: error: "HAVE_STDLIB_H" redefined [-Werror]

jpeglib.h from libjpeg contains the same definition of HAVE_STDLIB_H which is supposed to be overwritten. -Werror changes the warning to an error. This patches deletes the definition in jpeglib.h

- Adjust location of spice-common source as new spice asks spice-common to be put under "subprojects" directory.

---
 meta-networking/recipes-support/spice/spice_git.bb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
meta-networking/recipes-support/spice/spice_git.bb +9 -4
index 38b8bf306..5c0b2ca2a 100644
@@ -13,18 +13,19 @@ architectures."
 LICENSE = "BSD & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
-PV = "0.14.0+git${SRCPV}"
+PV = "0.14.1+git${SRCPV}"
 
-SRCREV_spice = "f1050bfc76c9c4146257e087baf74e0b62d7d218"
-SRCREV_spice-common = "95743f40a2da39e0a19859c305e69e2c99d39e42"
+SRCREV_spice = "eaa07ef15cfc3bf57a69da2576af66f028787774"
+SRCREV_spice-common = "6b93b3fce8909b836ef1d1434d191900d8aa00be"
 
 SRCREV_FORMAT = "spice_spice-common"
 
 SRC_URI = " \
     git://anongit.freedesktop.org/spice/spice;name=spice \
-    git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common \
+    git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common \
     file://0001-Convert-pthread_t-to-be-numeric.patch \
 "
+
 FOO = "\
     file://0001-build-allow-separated-src-and-build-dirs.patch \
 "
@@ -55,3 +56,7 @@ PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama,"
 COMPATIBLE_HOST = '(x86_64|i.86).*-linux'
 
 BBCLASSEXTEND = "native nativesdk"
+
+do_configure_append () {
+    sed -i -e '/#define HAVE_STDLIB_H/d' ${STAGING_DIR_HOST}/usr/include/jconfig.h
+}
Signature · 1 line
2.11.0
#1 lore raw

Wasn't this conflict with jpeglib.h already resolved in:
http://git.openembedded.org/openembedded-core/commit/?id=d1e09cb2521ccb9d02ced2d61abb4034cb04836d
?
it works for me.

Quoted 68 lines · He Zhe

- Fix the following build error.

../config.h:65: error: "HAVE_STDLIB_H" redefined [-Werror]

jpeglib.h from libjpeg contains the same definition of HAVE_STDLIB_H which is supposed to be overwritten. -Werror changes the warning to an error. This patches deletes the definition in jpeglib.h

- Adjust location of spice-common source as new spice asks spice-common to be put under "subprojects" directory.

---
 meta-networking/recipes-support/spice/spice_git.bb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
meta-networking/recipes-support/spice/spice_git.bb +3 -4
index 38b8bf306..5c0b2ca2a 100644
@@ -13,18 +13,19 @@ architectures."
 LICENSE = "BSD & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
-PV = "0.14.0+git${SRCPV}"
+PV = "0.14.1+git${SRCPV}"
 
-SRCREV_spice = "f1050bfc76c9c4146257e087baf74e0b62d7d218"
-SRCREV_spice-common = "95743f40a2da39e0a19859c305e69e2c99d39e42"
+SRCREV_spice = "eaa07ef15cfc3bf57a69da2576af66f028787774"
+SRCREV_spice-common = "6b93b3fce8909b836ef1d1434d191900d8aa00be"
 
 SRCREV_FORMAT = "spice_spice-common"
 
 SRC_URI = " \
     git://anongit.freedesktop.org/spice/spice;name=spice \
-    git://

anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common \
+ git://
anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common

\
     file://0001-Convert-pthread_t-to-be-numeric.patch \

"

meta-networking/recipes-support/spice/spice_git.bb +1 -0
+
 FOO = "\
     file://0001-build-allow-separated-src-and-build-dirs.patch \
 "
@@ -55,3 +56,7 @@ PACKAGECONFIG[xinerama] =

"--enable-xinerama,--disable-xinerama,libxinerama,"
COMPATIBLE_HOST = '(x86_64|i.86).*-linux'

BBCLASSEXTEND = "native nativesdk"

meta-networking/recipes-support/spice/spice_git.bb +3 -0
+
+do_configure_append () {
+    sed -i -e '/#define HAVE_STDLIB_H/d'

${STAGING_DIR_HOST}/usr/include/jconfig.h
+}
--
2.11.0

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

author
#2 lore raw

Emm, this was merged just before I finished my fix...
Anyway 0.14.1 resolves new CVE, I'll send v2 without HAVE_STDLIB_H part.

Thanks,
Zhe

Quoted 67 lines · Martin Jansa

Wasn't this conflict with jpeglib.h already resolved in:
http://git.openembedded.org/openembedded-core/commit/?id=d1e09cb2521ccb9d02ced2d61abb4034cb04836d ? it works for me.

On Tue, Sep 4, 2018 at 1:09 PM He Zhe <[email protected] <mailto:[email protected]>> wrote:

    - Fix the following build error.

    ../config.h:65: error: "HAVE_STDLIB_H" redefined [-Werror]

    jpeglib.h from libjpeg contains the same definition of HAVE_STDLIB_H
    which is supposed to be overwritten. -Werror changes the warning to
    an error. This patches deletes the definition in jpeglib.h

    - Adjust location of spice-common source as new spice asks spice-common
    to be put under "subprojects" directory.

    Signed-off-by: He Zhe <[email protected] <mailto:[email protected]>>
    ---
     meta-networking/recipes-support/spice/spice_git.bb <http://spice_git.bb> | 13 +++++++++----
     1 file changed, 9 insertions(+), 4 deletions(-)

    diff --git a/meta-networking/recipes-support/spice/spice_git.bb <http://spice_git.bb> b/meta-networking/recipes-support/spice/spice_git.bb <http://spice_git.bb>
    index 38b8bf306..5c0b2ca2a 100644
    --- a/meta-networking/recipes-support/spice/spice_git.bb <http://spice_git.bb>
    +++ b/meta-networking/recipes-support/spice/spice_git.bb <http://spice_git.bb>
    @@ -13,18 +13,19 @@ architectures."
     LICENSE = "BSD & LGPLv2.1+"
     LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"

    -PV = "0.14.0+git${SRCPV}"
    +PV = "0.14.1+git${SRCPV}"

    -SRCREV_spice = "f1050bfc76c9c4146257e087baf74e0b62d7d218"
    -SRCREV_spice-common = "95743f40a2da39e0a19859c305e69e2c99d39e42"
    +SRCREV_spice = "eaa07ef15cfc3bf57a69da2576af66f028787774"
    +SRCREV_spice-common = "6b93b3fce8909b836ef1d1434d191900d8aa00be"

     SRCREV_FORMAT = "spice_spice-common"

     SRC_URI = " \
         git://anongit.freedesktop.org/spice/spice;name=spice <http://anongit.freedesktop.org/spice/spice;name=spice> \
    -    git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common <http://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common> \
    +    git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common <http://anongit.freedesktop.org/spice/spice-common;destsuffix=git/subprojects/spice-common;name=spice-common> \
         file://0001-Convert-pthread_t-to-be-numeric.patch \
     "
    +
     FOO = "\
         file://0001-build-allow-separated-src-and-build-dirs.patch \
     "
    @@ -55,3 +56,7 @@ PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama,"
     COMPATIBLE_HOST = '(x86_64|i.86).*-linux'

     BBCLASSEXTEND = "native nativesdk"
    +
    +do_configure_append () {
    +    sed -i -e '/#define HAVE_STDLIB_H/d' ${STAGING_DIR_HOST}/usr/include/jconfig.h
    +}
    -- 
    2.11.0

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