<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4010</bug_id>
          
          <creation_ts>2013-03-11 16:57:10 +0000</creation_ts>
          <short_desc>bitbake ignores PRservice error</short_desc>
          <delta_ts>2013-05-27 08:36:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30627</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-11 16:57:10 +0000</bug_when>
    <thetext>branch: danny
commit: 955827af15f611189c66850fd077de344e1285c3

1) set up a poky build environment
2) checkout danny, revision 955827af15f611189c66850fd077de344e1285c3
3) in local.conf set up an invalid PRservice socket(with no PR service started on host):
PRSERV_HOST = &quot;127.0.0.1&quot;
PRSERV_PORT = &quot;8585&quot;
4) run bitbake man

Notice bitbake ignores error: 
&quot;ERROR: PRservice 127.0.0.1:8585 not available&quot; 
and builds pseudo, then stops with message:
&quot;Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Execution was interrupted, returning a non-zero exit code.&quot;

5) run bitbake man again

Notice bitbake ignores the error again and starts building man. It eventually stops at do_package with an error:
&quot;ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31148</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-03-25 22:02:41 +0000</bug_when>
    <thetext>I think this issue also occurs in master...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31159</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-26 08:04:00 +0000</bug_when>
    <thetext>Indeed, the problem is also present in master:9ffee9add2d0380f4025e7a678a166f25a7d659e

Here is the output:

**** first run ****

cornel@NODE1:~/SSD/3poky/build$ bitbake man
Pseudo is not present but is required, building this first before the main build
ERROR: PRservice 127.0.0.1:8585 not available
Parsing recipes: 100% |###################################################################################################################################################################| Time: 00:00:20
Parsing of 811 .bb files complete (0 cached, 811 parsed). 1120 targets, 28 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = &quot;1.17.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130326&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;(nobranch):9ffee9add2d0380f4025e7a678a166f25a7d659e&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 0 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

**** second run ****

cornel@NODE1:~/SSD/3poky/build$ bitbake man
find: `/home/cornel/SSD/3poky/build/pseudodone&apos;: No such file or directory
ERROR: PRservice 127.0.0.1:8585 not available
Loading cache: 100% |#####################################################################################################################################################################| ETA:  00:00:00
Loaded 1121 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.17.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130326&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;(nobranch):9ffee9add2d0380f4025e7a678a166f25a7d659e&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/x86_64-poky-linux/linux-libc-headers/3.8-r0/temp/log.do_package.25490
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/qemux86_64-poky-linux/shadow-securetty/4.1.4.3-r2/temp/log.do_package.25574
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/all-poky-linux/update-rc.d/0.7-r5/temp/log.do_package.25525
ERROR: Task 376 (/home/cornel/SSD/3poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_package) failed with exit code &apos;1&apos;
ERROR: Task 651 (/home/cornel/SSD/3poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb, do_package) failed with exit code &apos;1&apos;
ERROR: Task 1149 (/home/cornel/SSD/3poky/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb, do_package) failed with exit code &apos;1&apos;
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/qemux86_64-poky-linux/sysvinit-inittab/2.88dsf-r9/temp/log.do_package.25596
ERROR: Task 1117 (/home/cornel/SSD/3poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, do_package) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 965 tasks of which 279 didn&apos;t need to be rerun and 4 failed.
Waiting for 0 running tasks to finish:

Summary: 4 tasks failed:
  /home/cornel/SSD/3poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, do_package
Summary: There were 9 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33011</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-09 17:02:50 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a4cc40c6227b1212d82450c3b2adc1e08061966f and backported into danny.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33012</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-09 17:03:00 +0000</bug_when>
    <thetext>Mark resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33035</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-05-10 09:12:55 +0000</bug_when>
    <thetext>Verified in master:e5d077d57f7d150d5a0bb67fdc1c87a94091cafe

Need verification in danny before setting to VERIFIED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33307</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-05-27 08:36:25 +0000</bug_when>
    <thetext>Verified in danny:8450317a6cbcc0b3e5ec00b266608ee1740d906c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>