beecrpty: add option --with-dev-dsp
PATCH 1/2 beecrpty: add option --with-dev-dsp
Add this configure option for developer to control if the /dev/dsp should be used on target. Instead of judging it based on the very device file of build server.
--- .../beecrypt/beecrypt/add-option-dev-dsp.patch | 34 ++++++++++++++++++++++ meta/recipes-support/beecrypt/beecrypt_4.2.1.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch
meta/recipes-support/beecrypt/beecrypt/add-option-dev-dsp.patch new file +34 -0
@@ -0,0 +1,34 @@ +Add config option --with-dev-dsp. + +Upstream-Status: Pending + +Signed-off-by: Zhang Xiao <[email protected]> +--- +--- a/configure.ac ++++ b/configure.ac +@@ -106,6 +106,16 @@ AC_ARG_WITH(python,[ --with-python[[=AR + fi + ]) + ++AC_ARG_WITH(dev-dsp,[ --with-dev-dsp enables dev/dsp for entropy producing. auto for auto-detecting dev/dep on host. [[default=no]]],[ ++ if test "$withval" = yes; then ++ AC_DEFINE([HAVE_DEV_DSP], 1) ++ else ++ if test "$withval" = auto; then ++ ac_detect_dev_dsp=yes ++ fi ++ fi ++ ],[ac_detect_dev_dsp=no]) ++ + # Check for expert mode + if test "$ac_enable_expert_mode" = yes; then + BEE_EXPERT_MODE +@@ -464,7 +474,7 @@ linux*) + ac_cv_have_dev_dsp=no + fi + ]) +- if test "$ac_cv_have_dev_dsp" = yes; then ++ if test "$ac_cv_have_dev_dsp" = yes && test "$ac_detect_dev_dsp" = yes; then + AC_DEFINE([HAVE_DEV_DSP], 1) + fi + ;;
meta/recipes-support/beecrypt/beecrypt_4.2.1.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \ file://fix-for-gcc-4.7.patch \ file://run-ptest \ file://beecrypt-enable-ptest-support.patch \ + file://add-option-dev-dsp.patch \ " SRC_URI[md5sum] = "8441c014170823f2dff97e33df55af1e"
Signature · 1 line
1.9.1
PATCH 2/2 python-2.7.3:remove BOM insertion code
Backport patch from:
https://hg.python.org/cpython/rev/af46a001d5ec
SysLogHandler converts message to utf8 and adds BOM, supposedly to conform with RFC5424, but the implementation is broken:
the RFC specifies that the BOM should prefix only unstructured message part, but current Python implementation puts it in the middle of structured part, thus confusing RFC-compliant receivers.
--- .../python/python/remove-BOM-insection-code.patch | 24 ++++++++++++++++++++++ meta/recipes-devtools/python/python_2.7.3.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta/recipes-devtools/python/python/remove-BOM-insection-code.patch
meta/recipes-devtools/python/python/remove-BOM-insection-code.patch new file +24 -0
@@ -0,0 +1,24 @@ +# HG changeset patch +# User Vinay Sajip <[email protected]> +# Date 1334583503 -3600 +# Node ID af46a001d5eca99a7ff44ed18256c235c5c3f1d0 +# Parent 33bc53e0aa9ea42c6a6bb077d182e62c8c569aa1 +Issue #14452: remove BOM insertion code. + +Backport from https://hg.python.org/cpython/rev/af46a001d5ec. + +Upstream-Status: Pending +Signed-off-by: Kai Kang <[email protected]> +--- +diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py +--- a/Lib/logging/handlers.py ++++ b/Lib/logging/handlers.py +@@ -821,8 +821,6 @@ class SysLogHandler(logging.Handler): + # Message is a string. Convert to bytes as required by RFC 5424 + if type(msg) is unicode: + msg = msg.encode('utf-8') +- if codecs: +- msg = codecs.BOM_UTF8 + msg + msg = prio + msg + try: + if self.unixsocket:
meta/recipes-devtools/python/python_2.7.3.bb +1 -0
@@ -38,6 +38,7 @@ SRC_URI += "\ file://python-2.7.3-CVE-2014-1912.patch \ file://json-flaw-fix.patch \ file://posix_close.patch \ + file://remove-BOM-insection-code.patch \ " S = "${WORKDIR}/Python-${PV}"
Signature · 1 line
1.9.1
Re: [PATCH 2/2] python-2.7.3:remove BOM insertion code
Quoted 23 lines · Kai Kang
Backport patch from:
https://hg.python.org/cpython/rev/af46a001d5ecSysLogHandler converts message to utf8 and adds BOM, supposedly to conform with RFC5424, but the implementation is broken:
the RFC specifies that the BOM should prefix only unstructured message part, but current Python implementation puts it in the middle of structured part, thus confusing RFC-compliant receivers.Signed-off-by yzhu1 <[email protected]>Signed-off-by Kai Kang <[email protected]>--- .../python/python/remove-BOM-insection-code.patch | 24 ++++++++++++++++++++++ meta/recipes-devtools/python/python_2.7.3.bb | 1 + 2 files changed, 25 insertions(+)create mode 100644
meta/recipes-devtools/python/python/remove-BOM-insection-code.patchmeta/recipes-devtools/python/python/remove-BOM-insection-code.patch new file +0
-0
meta/recipes-devtools/python/python/remove-BOM-insection-code.patch line 10
Quoted 10 lines
meta/recipes-devtools/python/python/remove-BOM-insection-code.patch new file +10
-0@@ -0,0 +1,24 @@ +# HG changeset patch +# User Vinay Sajip <[email protected]> +# Date 1334583503 -3600 +# Node ID af46a001d5eca99a7ff44ed18256c235c5c3f1d0 +# Parent 33bc53e0aa9ea42c6a6bb077d182e62c8c569aa1 +Issue #14452: remove BOM insertion code. + +Backport from https://hg.python.org/cpython/rev/af46a001d5ec. + +Upstream-Status: Pending
Oops. Please ignore this thread. V2 will be sent.
--Kai
Quoted 26 lines
meta/recipes-devtools/python/python/remove-BOM-insection-code.patch new file +14
-0+Signed-off-by: Kai Kang <[email protected]> +--- +diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py +--- a/Lib/logging/handlers.py ++++ b/Lib/logging/handlers.py +@@ -821,8 +821,6 @@ class SysLogHandler(logging.Handler): + # Message is a string. Convert to bytes as required by RFC 5424 + if type(msg) is unicode: + msg = msg.encode('utf-8') +- if codecs: +- msg = codecs.BOM_UTF8 + msg + msg = prio + msg + try: + if self.unixsocket:meta/recipes-devtools/python/python_2.7.3.bb +1
-0@@ -38,6 +38,7 @@ SRC_URI += "\ file://python-2.7.3-CVE-2014-1912.patch \ file://json-flaw-fix.patch \ file://posix_close.patch \ + file://remove-BOM-insection-code.patch \ " S = "${WORKDIR}/Python-${PV}"
Signature · 2 lines
Regards, Neil | Kai Kang