summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-10-09 13:40:51 +0800
committerSaul Wold <Saul.Wold@intel.com>2010-10-09 10:15:50 -0700
commitb9728f63c676e217efcf93c40ded2c3fad19d52c (patch)
tree563973e7d2e828f4cb68d6fa61f87410080d21ba /meta/recipes-devtools/dpkg/dpkg
parent7836c452670aed0c0892f69f0e494e0c96ff6a84 (diff)
downloadast2050-yocto-poky-b9728f63c676e217efcf93c40ded2c3fad19d52c.zip
ast2050-yocto-poky-b9728f63c676e217efcf93c40ded2c3fad19d52c.tar.gz
dpkg: fix package_deb error for linux-wrs
The new dpkg will report linux-wrs version parse error, since there is a '_' inside. This patch fixes this issue. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/check_version.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/check_version.patch b/meta/recipes-devtools/dpkg/dpkg/check_version.patch
new file mode 100644
index 0000000..a09e136
--- /dev/null
+++ b/meta/recipes-devtools/dpkg/dpkg/check_version.patch
@@ -0,0 +1,21 @@
+Adapt to linux-wrs kernel version, which has character '_' inside.
+
+Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
+
+diff -ruN dpkg-1.15.8.5-orig/lib/dpkg/parsehelp.c dpkg-1.15.8.5/lib/dpkg/parsehelp.c
+--- dpkg-1.15.8.5-orig/lib/dpkg/parsehelp.c 2010-10-08 12:27:15.058572774 +0800
++++ dpkg-1.15.8.5/lib/dpkg/parsehelp.c 2010-10-09 11:18:15.484190771 +0800
+@@ -268,11 +268,11 @@
+
+ /* XXX: Would be faster to use something like cisversion and cisrevision. */
+ for (ptr = rversion->version; *ptr; ptr++) {
+- if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~:", *ptr) == NULL)
++ if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~:_", *ptr) == NULL)
+ return _("invalid character in version number");
+ }
+ for (ptr = rversion->revision; *ptr; ptr++) {
+- if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~", *ptr) == NULL)
++ if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~_", *ptr) == NULL)
+ return _("invalid character in revision number");
+ }
+
OpenPOWER on IntegriCloud