[oe] [meta-java][PATCH 1/2] xpp2: Remove bashism

Ricardo Ribalda Delgado ricardo.ribalda at gmail.com
Tue Sep 13 12:34:09 UTC 2016


Hi Maxin


My bad, I did not checkout the repo state today.

Anyway, it does not completely does the job. it is missing


diff --git a/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
b/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
index f264022ffe60..808a9372338f 100644
--- a/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
+++ b/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
@@ -33,7 +33,7 @@ do_compile() {
     mkdir -p build-xpath

     sourcepath="src/java/xpath"
-    findpath="${sourcepath//:/ }"
+    findpath=${sourcepath}
     javac -sourcepath $sourcepath -cp build-oe -d build-xpath `find
$findpath -name "*.java"`

     fastjar -C build-xpath -c -f xpp3-xpath-${PV}.jar .


without that, I get this error:

og data follows:
| DEBUG: Executing shell function do_compile
| ----------
| 1. WARNING in
src/java/api/org/xmlpull/v1/XmlPullParserException.java (at line 11)
| public class XmlPullParserException extends Exception {
|             ^^^^^^^^^^^^^^^^^^^^^^
| The serializable class XmlPullParserException does not declare a
static final serialVersionUID field of type long
| ----------
| ----------



I will resend the patch


Thanks!

On Tue, Sep 13, 2016 at 2:26 PM, Maxin B. John <maxin.john at intel.com> wrote:
> Hi Ricardo,
>
> On Tue, Sep 13, 2016 at 02:17:48PM +0200, Ricardo Ribalda Delgado wrote:
>> ERROR: xpp2-2.1.10-r0 do_compile: Function failed: do_compile (log file
>>               is located at
>> /var/lib/jenkins/workspace/qt5022-cesium/build/tmp/work/all-poky-linux/xpp2/2.1.10-r0/temp/log.do_compile.6694)
>> ERROR: Logfile of failure stored in:
>> /var/lib/jenkins/workspace/qt5022-cesium/build/tmp/work/all-poky-linux/xpp2/2.1.10-r0/temp/log.do_compile.6694
>> Log data follows:
>> | DEBUG: Executing shell function do_compile
>> |
>> /var/lib/jenkins/workspace/qt5022-cesium/build/tmp/work/all-poky-linux/xpp2/2.1.10-r0/temp/run.do_compile.6694:
>> 109:
>> /var/lib/jenkins/workspace/qt5022-cesium/build/tmp/work/all-poky-linux/xpp2/2.1.10-r0/temp/run.do_compile.6694:
>> Bad substitution
>> | WARNING: exit code 2 from a shell command.
>>
>> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
>> ---
>>  recipes-core/xml-commons/xpp2_2.1.10.bb | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/recipes-core/xml-commons/xpp2_2.1.10.bb b/recipes-core/xml-commons/xpp2_2.1.10.bb
>> index d3baca436b60..32457ddf899c 100644
>> --- a/recipes-core/xml-commons/xpp2_2.1.10.bb
>> +++ b/recipes-core/xml-commons/xpp2_2.1.10.bb
>> @@ -18,8 +18,7 @@ do_compile() {
>>      mkdir -p build-oe
>>
>>      sourcepath="src/java/drivers/jaxp11:src/java/drivers/sax2:src/java/impl/factory:src/java/impl/format:src/java/impl/node:src/java/impl/pullparser:src/java/impl/tag:src/java/intf"
>> -
>> -    findpath="${sourcepath//:/ }"
>> +    findpath="src/java/drivers/jaxp11 src/java/drivers/sax2 src/java/impl/factory src/java/impl/format src/java/impl/node src/java/impl/pullparser src/java/impl/tag src/java/intf"
>>
>>      javac -sourcepath $sourcepath -d build-oe `find $findpath -name "*.java"`
>
> Merged a similar fix yesterday.
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/?id=aa3c79568dfaeb9c8747d49d12ac0396eaf6a4ea
>
> Please pull the latest master branch and see if this happens again.
>
> Thanks,
> Maxin
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



-- 
Ricardo Ribalda



More information about the Openembedded-devel mailing list