* an error when adding "snappy" package
@ 2013-08-21 22:03 Reeve Yang
2013-08-22 19:22 ` Reeve Yang
2013-08-22 19:30 ` Gary Thomas
0 siblings, 2 replies; 6+ messages in thread
From: Reeve Yang @ 2013-08-21 22:03 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 2951 bytes --]
Hi Grus,
I have been trying to add google snappy package into yocto (
https://code.google.com/p/snappy/), here is my receipt file, nothing
special:
SUMMARY = "Snappy is a compression/decompression library."
DESCRIPTION = "...."
HOMEPAGE="https://code.google.com/p/snappy"
SECTION = "console/utils"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b2c8cef4261c6377dcae51b2903d704b"
PR = "r0"
require ../uri.inc
SRC_URI = "${URIPREFIX}/snappy-${PV}.tar.gz"
SRC_URI[md5sum] = "c8f3ef29b5281e78f4946b2d739cea4f"
SRC_URI[sha256sum] =
"1fa82bc588bb93fa74dfc0e2e9b7d63b6e2a20ede323ef42bf0af0f947676160"
inherit autotools
BBCLASSEXTEND = "native"
do_compile() {
oe_runmake all
}
do_install() {
oe_runmake DESTDIR=${D} install
}
BBCLASSEXTEND = "native"
The package was built successfully, but when I try to build core-image-lsb
(my own image but similar), I got following error:
| 528:Installing libsnappy1 ########################################
[ 44%]
| Traceback (most recent call last):
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
line 312, in __call__
| self._process_rpmout()
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
line 297, in _process_rpmout
| output = self.rpmout.read()
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py",
line 477, in read
| newchars, decodedbytes = self.decode(data, self.errors)
| UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740:
ordinal not in range(128)
|
| Traceback (most recent call last):
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
line 312, in __call__
| self._process_rpmout()
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
line 297, in _process_rpmout
| output = self.rpmout.read()
| File
"/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py",
line 477, in read
| newchars, decodedbytes = self.decode(data, self.errors)
| UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740:
ordinal not in range(128)
|
| ERROR: Function failed: do_rootfs (see
/home2/reeve-ws/yocto-dylan-merge/build/tmp/work/rp-poky-linux/core-image-ssr/1.0-r0/temp/log.do_rootfs.2751
for further information)
ERROR: Task 7
(/home2/reeve-ws/yocto-dylan-merge/meta-ericsson-ssr-rp/recipes-core-image/
core-image-ssr.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to be
rerun and 1 failed.
No currently running tasks (4128 of 4129)
Can anyone help me out?
[-- Attachment #2: Type: text/html, Size: 3898 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: an error when adding "snappy" package
2013-08-21 22:03 an error when adding "snappy" package Reeve Yang
@ 2013-08-22 19:22 ` Reeve Yang
2013-08-22 19:30 ` Gary Thomas
1 sibling, 0 replies; 6+ messages in thread
From: Reeve Yang @ 2013-08-22 19:22 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 3210 bytes --]
does anyone have any idea?
On Wed, Aug 21, 2013 at 3:03 PM, Reeve Yang <reeve.yang@gmail.com> wrote:
> Hi Grus,
>
> I have been trying to add google snappy package into yocto (
> https://code.google.com/p/snappy/), here is my receipt file, nothing
> special:
>
> SUMMARY = "Snappy is a compression/decompression library."
> DESCRIPTION = "...."
> HOMEPAGE="https://code.google.com/p/snappy"
> SECTION = "console/utils"
> LICENSE = "BSD"
> LIC_FILES_CHKSUM = "file://COPYING;md5=b2c8cef4261c6377dcae51b2903d704b"
> PR = "r0"
> require ../uri.inc
> SRC_URI = "${URIPREFIX}/snappy-${PV}.tar.gz"
> SRC_URI[md5sum] = "c8f3ef29b5281e78f4946b2d739cea4f"
> SRC_URI[sha256sum] =
> "1fa82bc588bb93fa74dfc0e2e9b7d63b6e2a20ede323ef42bf0af0f947676160"
> inherit autotools
> BBCLASSEXTEND = "native"
> do_compile() {
> oe_runmake all
> }
> do_install() {
> oe_runmake DESTDIR=${D} install
> }
> BBCLASSEXTEND = "native"
>
> The package was built successfully, but when I try to build core-image-lsb
> (my own image but similar), I got following error:
>
> | 528:Installing libsnappy1 ########################################
> [ 44%]
> | Traceback (most recent call last):
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
> line 312, in __call__
> | self._process_rpmout()
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
> line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py",
> line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position
> 740: ordinal not in range(128)
> |
> | Traceback (most recent call last):
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
> line 312, in __call__
> | self._process_rpmout()
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py",
> line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File
> "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py",
> line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position
> 740: ordinal not in range(128)
> |
> | ERROR: Function failed: do_rootfs (see
> /home2/reeve-ws/yocto-dylan-merge/build/tmp/work/rp-poky-linux/core-image-ssr/1.0-r0/temp/log.do_rootfs.2751
> for further information)
> ERROR: Task 7
> (/home2/reeve-ws/yocto-dylan-merge/meta-ericsson-ssr-rp/recipes-core-image/
> core-image-ssr.bb, do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to be
> rerun and 1 failed.
> No currently running tasks (4128 of 4129)
>
> Can anyone help me out?
>
[-- Attachment #2: Type: text/html, Size: 4334 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: an error when adding "snappy" package
2013-08-21 22:03 an error when adding "snappy" package Reeve Yang
2013-08-22 19:22 ` Reeve Yang
@ 2013-08-22 19:30 ` Gary Thomas
2013-08-22 20:12 ` Gary Thomas
1 sibling, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2013-08-22 19:30 UTC (permalink / raw)
To: yocto
On 2013-08-21 16:03, Reeve Yang wrote:
> Hi Grus,
>
> I have been trying to add google snappy package into yocto (https://code.google.com/p/snappy/), here is my receipt file, nothing special:
>
> SUMMARY = "Snappy is a compression/decompression library."
> DESCRIPTION = "...."
> HOMEPAGE="https://code.google.com/p/snappy"
> SECTION = "console/utils"
> LICENSE = "BSD"
> LIC_FILES_CHKSUM = "file://COPYING;md5=b2c8cef4261c6377dcae51b2903d704b"
> PR = "r0"
> require ../uri.inc
What's in this file (uri.inc)?
> SRC_URI = "${URIPREFIX}/snappy-${PV}.tar.gz"
> SRC_URI[md5sum] = "c8f3ef29b5281e78f4946b2d739cea4f"
> SRC_URI[sha256sum] = "1fa82bc588bb93fa74dfc0e2e9b7d63b6e2a20ede323ef42bf0af0f947676160"
> inherit autotools
> BBCLASSEXTEND = "native"
> do_compile() {
> oe_runmake all
> }
> do_install() {
> oe_runmake DESTDIR=${D} install
> }
> BBCLASSEXTEND = "native"
Do you need this (is snappy-native used)?
>
> The package was built successfully, but when I try to build core-image-lsb (my own image but similar), I got following error:
>
> | 528:Installing libsnappy1 ######################################## [ 44%]
> | Traceback (most recent call last):
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 312, in __call__
> | self._process_rpmout()
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py", line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
> |
> | Traceback (most recent call last):
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 312, in __call__
> | self._process_rpmout()
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py", line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
> |
> | ERROR: Function failed: do_rootfs (see /home2/reeve-ws/yocto-dylan-merge/build/tmp/work/rp-poky-linux/core-image-ssr/1.0-r0/temp/log.do_rootfs.2751 for further information)
> ERROR: Task 7 (/home2/reeve-ws/yocto-dylan-merge/meta-ericsson-ssr-rp/recipes-core-image/core-image-ssr.bb <http://core-image-ssr.bb>, do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to be rerun and 1 failed.
> No currently running tasks (4128 of 4129)
>
> Can anyone help me out?
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: an error when adding "snappy" package
2013-08-22 19:30 ` Gary Thomas
@ 2013-08-22 20:12 ` Gary Thomas
2013-08-23 20:36 ` Reeve Yang
0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2013-08-22 20:12 UTC (permalink / raw)
To: yocto
On 2013-08-22 13:30, Gary Thomas wrote:
> On 2013-08-21 16:03, Reeve Yang wrote:
>> Hi Grus,
>>
>> I have been trying to add google snappy package into yocto (https://code.google.com/p/snappy/), here is my receipt file, nothing special:
>>
>> SUMMARY = "Snappy is a compression/decompression library."
>> DESCRIPTION = "...."
>> HOMEPAGE="https://code.google.com/p/snappy"
>> SECTION = "console/utils"
>> LICENSE = "BSD"
>> LIC_FILES_CHKSUM = "file://COPYING;md5=b2c8cef4261c6377dcae51b2903d704b"
>> PR = "r0"
>> require ../uri.inc
>
> What's in this file (uri.inc)?
>
>> SRC_URI = "${URIPREFIX}/snappy-${PV}.tar.gz"
>> SRC_URI[md5sum] = "c8f3ef29b5281e78f4946b2d739cea4f"
>> SRC_URI[sha256sum] = "1fa82bc588bb93fa74dfc0e2e9b7d63b6e2a20ede323ef42bf0af0f947676160"
>> inherit autotools
>> BBCLASSEXTEND = "native"
>> do_compile() {
>> oe_runmake all
>> }
>> do_install() {
>> oe_runmake DESTDIR=${D} install
>> }
>> BBCLASSEXTEND = "native"
>
> Do you need this (is snappy-native used)?
Note: I had no trouble building and installing this into a IPK based image, so
it may be something special with the RPM packaging (which I don't use).
>
>>
>> The package was built successfully, but when I try to build core-image-lsb (my own image but similar), I got following error:
>>
>> | 528:Installing libsnappy1 ######################################## [ 44%]
>> | Traceback (most recent call last):
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 312, in __call__
>> | self._process_rpmout()
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 297, in _process_rpmout
>> | output = self.rpmout.read()
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py", line 477, in read
>> | newchars, decodedbytes = self.decode(data, self.errors)
>> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
>> |
>> | Traceback (most recent call last):
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 312, in __call__
>> | self._process_rpmout()
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/smart/backends/rpm/pm.py", line 297, in _process_rpmout
>> | output = self.rpmout.read()
>> | File "/home2/reeve-ws/yocto-dylan-merge/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/codecs.py", line 477, in read
>> | newchars, decodedbytes = self.decode(data, self.errors)
>> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
>> |
>> | ERROR: Function failed: do_rootfs (see /home2/reeve-ws/yocto-dylan-merge/build/tmp/work/rp-poky-linux/core-image-ssr/1.0-r0/temp/log.do_rootfs.2751 for further information)
>> ERROR: Task 7 (/home2/reeve-ws/yocto-dylan-merge/meta-ericsson-ssr-rp/recipes-core-image/core-image-ssr.bb <http://core-image-ssr.bb>, do_rootfs) failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to be rerun and 1 failed.
>> No currently running tasks (4128 of 4129)
>>
>> Can anyone help me out?
>>
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: an error when adding "snappy" package
2013-08-22 20:12 ` Gary Thomas
@ 2013-08-23 20:36 ` Reeve Yang
2013-08-24 15:32 ` Gary Thomas
0 siblings, 1 reply; 6+ messages in thread
From: Reeve Yang @ 2013-08-23 20:36 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 5124 bytes --]
Hi Gary, the uri.inc is just my include file to point to local package
storage location, and "native" extend I have taken it out.
Yeah, I figured it out this is rpm specific. If I change the
site-packages/smart/backends/rpm/pm.py, line 280 to:
self.rpmout = reader(open(rpmoutpath), errors = "ignore")
The error would be gone and my tarball is created successfully. My question
is, why yocto assume default encoding is ascii? Is there anyway for me to
specify the encoding in "utf8"?
Thanks.
- Reeve
On Thu, Aug 22, 2013 at 1:12 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2013-08-22 13:30, Gary Thomas wrote:
>
>> On 2013-08-21 16:03, Reeve Yang wrote:
>>
>>> Hi Grus,
>>>
>>> I have been trying to add google snappy package into yocto (
>>> https://code.google.com/p/**snappy/ <https://code.google.com/p/snappy/>),
>>> here is my receipt file, nothing special:
>>>
>>> SUMMARY = "Snappy is a compression/decompression library."
>>> DESCRIPTION = "...."
>>> HOMEPAGE="https://code.google.**com/p/snappy<https://code.google.com/p/snappy>
>>> "
>>> SECTION = "console/utils"
>>> LICENSE = "BSD"
>>> LIC_FILES_CHKSUM = "file://COPYING;md5=**b2c8cef4261c6377dcae51b2903d70*
>>> *4b"
>>> PR = "r0"
>>> require ../uri.inc
>>>
>>
>> What's in this file (uri.inc)?
>>
>> SRC_URI = "${URIPREFIX}/snappy-${PV}.**tar.gz"
>>> SRC_URI[md5sum] = "**c8f3ef29b5281e78f4946b2d739cea**4f"
>>> SRC_URI[sha256sum] = "**1fa82bc588bb93fa74dfc0e2e9b7d6**
>>> 3b6e2a20ede323ef42bf0af0f94767**6160"
>>> inherit autotools
>>> BBCLASSEXTEND = "native"
>>> do_compile() {
>>> oe_runmake all
>>> }
>>> do_install() {
>>> oe_runmake DESTDIR=${D} install
>>> }
>>> BBCLASSEXTEND = "native"
>>>
>>
>> Do you need this (is snappy-native used)?
>>
>
> Note: I had no trouble building and installing this into a IPK based
> image, so
> it may be something special with the RPM packaging (which I don't use).
>
>
>
>>
>>> The package was built successfully, but when I try to build
>>> core-image-lsb (my own image but similar), I got following error:
>>>
>>> | 528:Installing libsnappy1 ##############################**##########
>>> [ 44%]
>>> | Traceback (most recent call last):
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**site-packages/smart/backends/**rpm/pm.py",
>>> line 312, in __call__
>>> | self._process_rpmout()
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**site-packages/smart/backends/**rpm/pm.py",
>>> line 297, in _process_rpmout
>>> | output = self.rpmout.read()
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**codecs.py", line 477, in read
>>> | newchars, decodedbytes = self.decode(data, self.errors)
>>> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position
>>> 740: ordinal not in range(128)
>>> |
>>> | Traceback (most recent call last):
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**site-packages/smart/backends/**rpm/pm.py",
>>> line 312, in __call__
>>> | self._process_rpmout()
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**site-packages/smart/backends/**rpm/pm.py",
>>> line 297, in _process_rpmout
>>> | output = self.rpmout.read()
>>> | File "/home2/reeve-ws/yocto-dylan-**merge/build/tmp/sysroots/x86_**
>>> 64-linux/usr/lib/python2.7/**codecs.py", line 477, in read
>>> | newchars, decodedbytes = self.decode(data, self.errors)
>>> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position
>>> 740: ordinal not in range(128)
>>> |
>>> | ERROR: Function failed: do_rootfs (see /home2/reeve-ws/yocto-dylan-**
>>> merge/build/tmp/work/rp-poky-**linux/core-image-ssr/1.0-r0/**temp/log.do_rootfs.2751
>>> for further information)
>>> ERROR: Task 7 (/home2/reeve-ws/yocto-dylan-**merge/meta-ericsson-ssr-rp/
>>> **recipes-core-image/core-image-**ssr.bb <http://core-image-ssr.bb> <
>>> http://core-image-ssr.bb>, do_rootfs) failed with exit code '1'
>>> NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to
>>> be rerun and 1 failed.
>>> No currently running tasks (4128 of 4129)
>>>
>>> Can anyone help me out?
>>>
>>>
>>> ______________________________**_________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>>>
>>>
>>
> --
> ------------------------------**------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------**------------------------------
> ______________________________**_________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>
[-- Attachment #2: Type: text/html, Size: 7272 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: an error when adding "snappy" package
2013-08-23 20:36 ` Reeve Yang
@ 2013-08-24 15:32 ` Gary Thomas
0 siblings, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2013-08-24 15:32 UTC (permalink / raw)
To: Reeve Yang; +Cc: yocto
On 2013-08-23 14:36, Reeve Yang wrote:
> Hi Gary, the uri.inc is just my include file to point to local package storage location, and "native" extend I have taken it out.
>
> Yeah, I figured it out this is rpm specific. If I change the site-packages/smart/backends/rpm/pm.py, line 280 to:
>
> self.rpmout = reader(open(rpmoutpath), errors = "ignore")
>
> The error would be gone and my tarball is created successfully. My question is, why yocto assume default encoding is ascii? Is there anyway for me to specify the encoding in "utf8"?
This sounds like a bug to me. It would be best if you file it as
such with bugzilla so it gets looked at properly (I'm not the one
to do that, sorry)
> On Thu, Aug 22, 2013 at 1:12 PM, Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>> wrote:
>
> On 2013-08-22 13:30, Gary Thomas wrote:
>
> On 2013-08-21 16:03, Reeve Yang wrote:
>
> Hi Grus,
>
> I have been trying to add google snappy package into yocto (https://code.google.com/p/__snappy/ <https://code.google.com/p/snappy/>), here is my receipt file, nothing
> special:
>
> SUMMARY = "Snappy is a compression/decompression library."
> DESCRIPTION = "...."
> HOMEPAGE="https://code.google.__com/p/snappy <https://code.google.com/p/snappy>"
> SECTION = "console/utils"
> LICENSE = "BSD"
> LIC_FILES_CHKSUM = "file://COPYING;md5=__b2c8cef4261c6377dcae51b2903d70__4b"
> PR = "r0"
> require ../uri.inc
>
>
> What's in this file (uri.inc)?
>
> SRC_URI = "${URIPREFIX}/snappy-${PV}.__tar.gz"
> SRC_URI[md5sum] = "__c8f3ef29b5281e78f4946b2d739cea__4f"
> SRC_URI[sha256sum] = "__1fa82bc588bb93fa74dfc0e2e9b7d6__3b6e2a20ede323ef42bf0af0f94767__6160"
> inherit autotools
> BBCLASSEXTEND = "native"
> do_compile() {
> oe_runmake all
> }
> do_install() {
> oe_runmake DESTDIR=${D} install
> }
> BBCLASSEXTEND = "native"
>
>
> Do you need this (is snappy-native used)?
>
>
> Note: I had no trouble building and installing this into a IPK based image, so
> it may be something special with the RPM packaging (which I don't use).
>
>
>
>
> The package was built successfully, but when I try to build core-image-lsb (my own image but similar), I got following error:
>
> | 528:Installing libsnappy1 ##############################__########## [ 44%]
> | Traceback (most recent call last):
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__site-packages/smart/backends/__rpm/pm.py", line 312, in __call__
> | self._process_rpmout()
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__site-packages/smart/backends/__rpm/pm.py", line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__codecs.py", line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
> |
> | Traceback (most recent call last):
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__site-packages/smart/backends/__rpm/pm.py", line 312, in __call__
> | self._process_rpmout()
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__site-packages/smart/backends/__rpm/pm.py", line 297, in _process_rpmout
> | output = self.rpmout.read()
> | File "/home2/reeve-ws/yocto-dylan-__merge/build/tmp/sysroots/x86___64-linux/usr/lib/python2.7/__codecs.py", line 477, in read
> | newchars, decodedbytes = self.decode(data, self.errors)
> | UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 740: ordinal not in range(128)
> |
> | ERROR: Function failed: do_rootfs (see /home2/reeve-ws/yocto-dylan-__merge/build/tmp/work/rp-poky-__linux/core-image-ssr/1.0-r0/__temp/log.do_rootfs.2751 for further
> information)
> ERROR: Task 7 (/home2/reeve-ws/yocto-dylan-__merge/meta-ericsson-ssr-rp/__recipes-core-image/core-image-__ssr.bb <http://core-image-ssr.bb> <http://core-image-ssr.bb>,
> do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 4128 tasks of which 4114 didn't need to be rerun and 1 failed.
> No currently running tasks (4128 of 4129)
>
> Can anyone help me out?
>
>
> _________________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.__org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>
>
>
> --
> ------------------------------__------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------__------------------------------
> _________________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.__org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-08-24 15:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 22:03 an error when adding "snappy" package Reeve Yang
2013-08-22 19:22 ` Reeve Yang
2013-08-22 19:30 ` Gary Thomas
2013-08-22 20:12 ` Gary Thomas
2013-08-23 20:36 ` Reeve Yang
2013-08-24 15:32 ` Gary Thomas
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.