<?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>3930</bug_id>
          
          <creation_ts>2013-02-25 14:11:05 +0000</creation_ts>
          <short_desc>[Test Case 146] Check if AUTOPR could be export/lockdown for package build.</short_desc>
          <delta_ts>2013-03-08 08:20:01 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Constantin Musca">constantinx.musca</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>30073</commentid>
    <comment_count>0</comment_count>
      <attachid>1083</attachid>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-25 14:11:05 +0000</bug_when>
    <thetext>Created attachment 1083
log for do_package

STATUS: FAILED
BUILD: master:7d22ef28e64de06b6238d0ef9b664c0bee6efa46
ENVIRONMENT: Ubuntu 12.04 x86_64
STEPS TO REPRODUCE: 
1. prepare 2 poky build environments
2. in one of the poky source, set PRSERV_HOST to localhost:0 in local.conf
4. run &quot;bitbake man&quot; and then add following lines into man_${PV}.bb
#######
do_package_append() {
        bb.build.exec_func(&apos;do_test_prserv&apos;, d)
}

do_test_prserv() {
 echo &quot;Test if PR service could work&quot;
}
#######
5. re-run &quot;bitbake man&quot;, and check the deploy folder if the packages for man are re-generated with PR number bump up
6. run &quot;bitbake-prserv-tool export export.inc&quot;
7. in the second poky source, set PRSERV_HOST to localhost:0 in local.conf
8. copy export.inc into the second poky source&apos;s build directory
9. run &quot;bitbake -R export.inc man&quot;

Notice Error:

ERROR: Can NOT get PRAUTO from lockdown exported file
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.7-r1/temp/log.do_package.31117
ERROR: Task 366 (/home/cornel/SSD/3poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.7.bb, do_package) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30563</commentid>
    <comment_count>1</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-03-08 08:20:01 +0000</bug_when>
    <thetext>I can&apos;t reproduce this bug.

Cheers,
Constantin</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1083</attachid>
            <date>2013-02-25 14:11:05 +0000</date>
            <delta_ts>2013-02-25 14:11:05 +0000</delta_ts>
            <desc>log for do_package</desc>
            <filename>log.do_package</filename>
            <type>application/octet-stream</type>
            <size>395</size>
            <attacher name="Stoicescu Cornel">corneliux.stoicescu</attacher>
            
              <data encoding="base64">REVCVUc6IEV4ZWN1dGluZyBweXRob24gZnVuY3Rpb24gc3N0YXRlX3Rhc2tfcHJlZnVuYwpERUJV
RzogUHl0aG9uIGZ1bmN0aW9uIHNzdGF0ZV90YXNrX3ByZWZ1bmMgZmluaXNoZWQKREVCVUc6IEV4
ZWN1dGluZyBweXRob24gZnVuY3Rpb24gZG9fcGFja2FnZQpERUJVRzogRXhlY3V0aW5nIHB5dGhv
biBmdW5jdGlvbiBwYWNrYWdlX2dldF9hdXRvX3ByCkVSUk9SOiBDYW4gTk9UIGdldCBQUkFVVE8g
ZnJvbSBsb2NrZG93biBleHBvcnRlZCBmaWxlCkRFQlVHOiBQeXRob24gZnVuY3Rpb24gcGFja2Fn
ZV9nZXRfYXV0b19wciBmaW5pc2hlZApERUJVRzogUHl0aG9uIGZ1bmN0aW9uIGRvX3BhY2thZ2Ug
ZmluaXNoZWQKRVJST1I6IEZ1bmN0aW9uIGZhaWxlZDogcGFja2FnZV9nZXRfYXV0b19wcgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>