All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] expat: upgrade to 2.2.2
@ 2017-07-18  6:01 Dengke Du
  2017-07-18  6:01 ` [PATCH 1/1] " Dengke Du
  0 siblings, 1 reply; 10+ messages in thread
From: Dengke Du @ 2017-07-18  6:01 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 81498aac9560fbeaeb58eaada32ce80e0ea51628:

  yocto-project-qs: Updated Next Steps list (2017-07-12 00:28:16 +0100)

are available in the git repository at:

  https://github.com/DengkeDu/openembedded-core.git dengke/expat-upgrade-2.2.2
  https://github.com//tree/dengke/expat-upgrade-2.2.2

Dengke Du (1):
  expat: upgrade to 2.2.2

 meta/recipes-core/expat/expat_2.2.1.bb | 5 -----
 meta/recipes-core/expat/expat_2.2.2.bb | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
 delete mode 100644 meta/recipes-core/expat/expat_2.2.1.bb
 create mode 100644 meta/recipes-core/expat/expat_2.2.2.bb

-- 
2.7.4



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

* [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-18  6:01 [PATCH 0/1] expat: upgrade to 2.2.2 Dengke Du
@ 2017-07-18  6:01 ` Dengke Du
  2017-07-18  6:37   ` Dengke Du
  2017-07-22  9:24   ` Burton, Ross
  0 siblings, 2 replies; 10+ messages in thread
From: Dengke Du @ 2017-07-18  6:01 UTC (permalink / raw)
  To: openembedded-core

The expat 2.2.2:

    using getrandom syscall on linux 3.17+, so when we compiling expat-native
    on the kernel older than 3.17, that would be failed.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 meta/recipes-core/expat/expat_2.2.1.bb | 5 -----
 meta/recipes-core/expat/expat_2.2.2.bb | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
 delete mode 100644 meta/recipes-core/expat/expat_2.2.1.bb
 create mode 100644 meta/recipes-core/expat/expat_2.2.2.bb

diff --git a/meta/recipes-core/expat/expat_2.2.1.bb b/meta/recipes-core/expat/expat_2.2.1.bb
deleted file mode 100644
index 47827c5..0000000
--- a/meta/recipes-core/expat/expat_2.2.1.bb
+++ /dev/null
@@ -1,5 +0,0 @@
-require expat.inc
-LIC_FILES_CHKSUM = "file://COPYING;md5=5b8620d98e49772d95fc1d291c26aa79"
-
-SRC_URI[md5sum] = "d9c3baeab58774cefc2f04faf29f2cf8"
-SRC_URI[sha256sum] = "1868cadae4c82a018e361e2b2091de103cd820aaacb0d6cfa49bd2cd83978885"
diff --git a/meta/recipes-core/expat/expat_2.2.2.bb b/meta/recipes-core/expat/expat_2.2.2.bb
new file mode 100644
index 0000000..dfa014b
--- /dev/null
+++ b/meta/recipes-core/expat/expat_2.2.2.bb
@@ -0,0 +1,5 @@
+require expat.inc
+LIC_FILES_CHKSUM = "file://COPYING;md5=5b8620d98e49772d95fc1d291c26aa79"
+
+SRC_URI[md5sum] = "1ede9a41223c78528b8c5d23e69a2667"
+SRC_URI[sha256sum] = "4376911fcf81a23ebd821bbabc26fd933f3ac74833f74924342c29aad2c86046"
-- 
2.7.4



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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-18  6:01 ` [PATCH 1/1] " Dengke Du
@ 2017-07-18  6:37   ` Dengke Du
  2017-07-22  9:24   ` Burton, Ross
  1 sibling, 0 replies; 10+ messages in thread
From: Dengke Du @ 2017-07-18  6:37 UTC (permalink / raw)
  To: openembedded-core, Burton, Ross

Hi Ross

Do we need to add a patch to glibc to support the ubuntu 14.04 (or 
kernel version older than 3.17)?


On 2017年07月18日 14:01, Dengke Du wrote:
> The expat 2.2.2:
>
>      using getrandom syscall on linux 3.17+, so when we compiling expat-native
>      on the kernel older than 3.17, that would be failed.
>
> Signed-off-by: Dengke Du <dengke.du@windriver.com>
> ---
>   meta/recipes-core/expat/expat_2.2.1.bb | 5 -----
>   meta/recipes-core/expat/expat_2.2.2.bb | 5 +++++
>   2 files changed, 5 insertions(+), 5 deletions(-)
>   delete mode 100644 meta/recipes-core/expat/expat_2.2.1.bb
>   create mode 100644 meta/recipes-core/expat/expat_2.2.2.bb
>
> diff --git a/meta/recipes-core/expat/expat_2.2.1.bb b/meta/recipes-core/expat/expat_2.2.1.bb
> deleted file mode 100644
> index 47827c5..0000000
> --- a/meta/recipes-core/expat/expat_2.2.1.bb
> +++ /dev/null
> @@ -1,5 +0,0 @@
> -require expat.inc
> -LIC_FILES_CHKSUM = "file://COPYING;md5=5b8620d98e49772d95fc1d291c26aa79"
> -
> -SRC_URI[md5sum] = "d9c3baeab58774cefc2f04faf29f2cf8"
> -SRC_URI[sha256sum] = "1868cadae4c82a018e361e2b2091de103cd820aaacb0d6cfa49bd2cd83978885"
> diff --git a/meta/recipes-core/expat/expat_2.2.2.bb b/meta/recipes-core/expat/expat_2.2.2.bb
> new file mode 100644
> index 0000000..dfa014b
> --- /dev/null
> +++ b/meta/recipes-core/expat/expat_2.2.2.bb
> @@ -0,0 +1,5 @@
> +require expat.inc
> +LIC_FILES_CHKSUM = "file://COPYING;md5=5b8620d98e49772d95fc1d291c26aa79"
> +
> +SRC_URI[md5sum] = "1ede9a41223c78528b8c5d23e69a2667"
> +SRC_URI[sha256sum] = "4376911fcf81a23ebd821bbabc26fd933f3ac74833f74924342c29aad2c86046"



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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-18  6:01 ` [PATCH 1/1] " Dengke Du
  2017-07-18  6:37   ` Dengke Du
@ 2017-07-22  9:24   ` Burton, Ross
  2017-07-22 15:19     ` Khem Raj
  1 sibling, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2017-07-22  9:24 UTC (permalink / raw)
  To: Dengke Du; +Cc: OE-core

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

On 18 July 2017 at 07:01, Dengke Du <dengke.du@windriver.com> wrote:

>     using getrandom syscall on linux 3.17+, so when we compiling expat
> -native
>     on the kernel older than 3.17, that would be failed.
>

It's failing on Debian 8, which is kernel 4.9.0:

| ../expat-2.2.2/lib/xmlparse.c:56:3: error: #error You do not have support
for any sources of high quality entropy enabled. For end user security,
that is probably not what you want. Your options include: * Linux + glibc
>=2.25 (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall
SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf):
HAVE_ARC4RANDOM_BUF, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF +
HAVE_LIBBSD, * Windows (RtlGenRandom): _WIN32. If insist on not using any
of these, bypass this error by defining XML_POOR_ENTROPY; you have been
warned. For CMake, one way to pass the define is: cmake
-DCMAKE_C_FLAGS="-pipe -O2 -DHAVE_SYSCALL_GETRANDOM" . If you have reasons
to patch this detection code away or need changes to the build system,
please open a bug. Thank you!

(
https://autobuilder.yocto.io/builders/nightly-ppc/builds/379/steps/BuildImages/logs/stdio
)

I suspect the detection code is well and truly broken.

Ross

[-- Attachment #2: Type: text/html, Size: 1900 bytes --]

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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-22  9:24   ` Burton, Ross
@ 2017-07-22 15:19     ` Khem Raj
  2017-07-24 10:20       ` Burton, Ross
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2017-07-22 15:19 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Sat, Jul 22, 2017 at 2:24 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 18 July 2017 at 07:01, Dengke Du <dengke.du@windriver.com> wrote:
>>
>>     using getrandom syscall on linux 3.17+, so when we compiling
>> expat-native
>>     on the kernel older than 3.17, that would be failed.
>
>
> It's failing on Debian 8, which is kernel 4.9.0:
>
> | ../expat-2.2.2/lib/xmlparse.c:56:3: error: #error You do not have support
> for any sources of high quality entropy enabled. For end user security, that
> is probably not what you want. Your options include: * Linux + glibc >=2.25
> (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall SYS_getrandom):
> HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf): HAVE_ARC4RANDOM_BUF,
> * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * Windows
> (RtlGenRandom): _WIN32. If insist on not using any of these, bypass this
> error by defining XML_POOR_ENTROPY; you have been warned. For CMake, one way
> to pass the define is: cmake -DCMAKE_C_FLAGS="-pipe -O2
> -DHAVE_SYSCALL_GETRANDOM" . If you have reasons to patch this detection code
> away or need changes to the build system, please open a bug. Thank you!
>
> (https://autobuilder.yocto.io/builders/nightly-ppc/builds/379/steps/BuildImages/logs/stdio)
>
> I suspect the detection code is well and truly broken.
>

I posted another patch doing this upgrade. I wonder if it has same
issue. it works on my 3.12 kernel based host.

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


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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-22 15:19     ` Khem Raj
@ 2017-07-24 10:20       ` Burton, Ross
  2017-07-24 10:23         ` Burton, Ross
  0 siblings, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2017-07-24 10:20 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

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

I didn't see that upgrade, but yes it will.

expat 2.2.2 demands either getrandom() from glibc (2.25 onwards) or
SYS_getrandom (not sure what glibc added this, but its not in Debian 8's
2.19.

Ross

On 22 July 2017 at 16:19, Khem Raj <raj.khem@gmail.com> wrote:

> On Sat, Jul 22, 2017 at 2:24 AM, Burton, Ross <ross.burton@intel.com>
> wrote:
> >
> > On 18 July 2017 at 07:01, Dengke Du <dengke.du@windriver.com> wrote:
> >>
> >>     using getrandom syscall on linux 3.17+, so when we compiling
> >> expat-native
> >>     on the kernel older than 3.17, that would be failed.
> >
> >
> > It's failing on Debian 8, which is kernel 4.9.0:
> >
> > | ../expat-2.2.2/lib/xmlparse.c:56:3: error: #error You do not have
> support
> > for any sources of high quality entropy enabled. For end user security,
> that
> > is probably not what you want. Your options include: * Linux + glibc
> >=2.25
> > (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall
> SYS_getrandom):
> > HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf):
> HAVE_ARC4RANDOM_BUF,
> > * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * Windows
> > (RtlGenRandom): _WIN32. If insist on not using any of these, bypass this
> > error by defining XML_POOR_ENTROPY; you have been warned. For CMake, one
> way
> > to pass the define is: cmake -DCMAKE_C_FLAGS="-pipe -O2
> > -DHAVE_SYSCALL_GETRANDOM" . If you have reasons to patch this detection
> code
> > away or need changes to the build system, please open a bug. Thank you!
> >
> > (https://autobuilder.yocto.io/builders/nightly-ppc/builds/
> 379/steps/BuildImages/logs/stdio)
> >
> > I suspect the detection code is well and truly broken.
> >
>
> I posted another patch doing this upgrade. I wonder if it has same
> issue. it works on my 3.12 kernel based host.
>
> > Ross
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
>

[-- Attachment #2: Type: text/html, Size: 3134 bytes --]

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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-24 10:20       ` Burton, Ross
@ 2017-07-24 10:23         ` Burton, Ross
  2017-08-03 16:42           ` Burton, Ross
  0 siblings, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2017-07-24 10:23 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

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

I've filed a bug upstream about the failure on Debian 8:
https://github.com/libexpat/libexpat/issues/97

Defining XML_POOR_ENTROPY will allow expat to fall back to weak entropy on
hosts that don't have direct support for getrandom().

Ross

On 24 July 2017 at 11:20, Burton, Ross <ross.burton@intel.com> wrote:

> I didn't see that upgrade, but yes it will.
>
> expat 2.2.2 demands either getrandom() from glibc (2.25 onwards) or
> SYS_getrandom (not sure what glibc added this, but its not in Debian 8's
> 2.19.
>
> Ross
>
> On 22 July 2017 at 16:19, Khem Raj <raj.khem@gmail.com> wrote:
>
>> On Sat, Jul 22, 2017 at 2:24 AM, Burton, Ross <ross.burton@intel.com>
>> wrote:
>> >
>> > On 18 July 2017 at 07:01, Dengke Du <dengke.du@windriver.com> wrote:
>> >>
>> >>     using getrandom syscall on linux 3.17+, so when we compiling
>> >> expat-native
>> >>     on the kernel older than 3.17, that would be failed.
>> >
>> >
>> > It's failing on Debian 8, which is kernel 4.9.0:
>> >
>> > | ../expat-2.2.2/lib/xmlparse.c:56:3: error: #error You do not have
>> support
>> > for any sources of high quality entropy enabled. For end user security,
>> that
>> > is probably not what you want. Your options include: * Linux + glibc
>> >=2.25
>> > (getrandom): HAVE_GETRANDOM, * Linux + glibc <2.25 (syscall
>> SYS_getrandom):
>> > HAVE_SYSCALL_GETRANDOM, * BSD / macOS (arc4random_buf):
>> HAVE_ARC4RANDOM_BUF,
>> > * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * Windows
>> > (RtlGenRandom): _WIN32. If insist on not using any of these, bypass this
>> > error by defining XML_POOR_ENTROPY; you have been warned. For CMake,
>> one way
>> > to pass the define is: cmake -DCMAKE_C_FLAGS="-pipe -O2
>> > -DHAVE_SYSCALL_GETRANDOM" . If you have reasons to patch this detection
>> code
>> > away or need changes to the build system, please open a bug. Thank you!
>> >
>> > (https://autobuilder.yocto.io/builders/nightly-ppc/builds/37
>> 9/steps/BuildImages/logs/stdio)
>> >
>> > I suspect the detection code is well and truly broken.
>> >
>>
>> I posted another patch doing this upgrade. I wonder if it has same
>> issue. it works on my 3.12 kernel based host.
>>
>> > Ross
>> >
>> > --
>> > _______________________________________________
>> > Openembedded-core mailing list
>> > Openembedded-core@lists.openembedded.org
>> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>> >
>>
>
>

[-- Attachment #2: Type: text/html, Size: 4260 bytes --]

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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-07-24 10:23         ` Burton, Ross
@ 2017-08-03 16:42           ` Burton, Ross
  2017-08-03 16:48             ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Burton, Ross @ 2017-08-03 16:42 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

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

On 24 July 2017 at 11:23, Burton, Ross <ross.burton@intel.com> wrote:

> I've filed a bug upstream about the failure on Debian 8:
> https://github.com/libexpat/libexpat/issues/97
>

And this bug is now resolved.  expat in git can read /dev/urandom directly
if it doesn't find the syscalls it wants.

Ross

[-- Attachment #2: Type: text/html, Size: 749 bytes --]

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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-08-03 16:42           ` Burton, Ross
@ 2017-08-03 16:48             ` Khem Raj
  2017-08-04  1:33               ` Dengke Du
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2017-08-03 16:48 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Thu, Aug 3, 2017 at 9:42 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 24 July 2017 at 11:23, Burton, Ross <ross.burton@intel.com> wrote:
>>
>> I've filed a bug upstream about the failure on Debian 8:
>> https://github.com/libexpat/libexpat/issues/97
>
>
> And this bug is now resolved.  expat in git can read /dev/urandom directly
> if it doesn't find the syscalls it wants.

Sounds good. Denke, when you refresh patch please include this patch along

http://git.openembedded.org/openembedded-core-contrib/tree/meta/recipes-core/expat/expat/libtool-tag.patch?h=kraj/master&id=01929853a8346ba0fc27090150ebc506d1c5cd1e

which was not there in your v1.

>
> Ross


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

* Re: [PATCH 1/1] expat: upgrade to 2.2.2
  2017-08-03 16:48             ` Khem Raj
@ 2017-08-04  1:33               ` Dengke Du
  0 siblings, 0 replies; 10+ messages in thread
From: Dengke Du @ 2017-08-04  1:33 UTC (permalink / raw)
  To: Khem Raj, Burton, Ross; +Cc: OE-core

OK!


On 2017年08月04日 00:48, Khem Raj wrote:
> On Thu, Aug 3, 2017 at 9:42 AM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 24 July 2017 at 11:23, Burton, Ross <ross.burton@intel.com> wrote:
>>> I've filed a bug upstream about the failure on Debian 8:
>>> https://github.com/libexpat/libexpat/issues/97
>>
>> And this bug is now resolved.  expat in git can read /dev/urandom directly
>> if it doesn't find the syscalls it wants.
> Sounds good. Denke, when you refresh patch please include this patch along
>
> http://git.openembedded.org/openembedded-core-contrib/tree/meta/recipes-core/expat/expat/libtool-tag.patch?h=kraj/master&id=01929853a8346ba0fc27090150ebc506d1c5cd1e
>
> which was not there in your v1.
>
>> Ross



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

end of thread, other threads:[~2017-08-04  1:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18  6:01 [PATCH 0/1] expat: upgrade to 2.2.2 Dengke Du
2017-07-18  6:01 ` [PATCH 1/1] " Dengke Du
2017-07-18  6:37   ` Dengke Du
2017-07-22  9:24   ` Burton, Ross
2017-07-22 15:19     ` Khem Raj
2017-07-24 10:20       ` Burton, Ross
2017-07-24 10:23         ` Burton, Ross
2017-08-03 16:42           ` Burton, Ross
2017-08-03 16:48             ` Khem Raj
2017-08-04  1:33               ` Dengke Du

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.