<?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>6528</bug_id>
          
          <creation_ts>2014-07-14 09:36:43 +0000</creation_ts>
          <short_desc>Case 147 - Check if AUTOPR could be export/import for package build (pre 1.6)</short_desc>
          <delta_ts>2014-07-25 15:31: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.5.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>1.5.4</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Costin">costin.c.constantin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44462</commentid>
    <comment_count>0</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2014-07-14 09:36:43 +0000</bug_when>
    <thetext>Hello,

While performing tests for Testopia Test Case 147 

&quot;Case 147 - Check if AUTOPR could be export/import for package build (pre 1.6)&quot; :

&quot;
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 xcursor-transparent-theme&quot; and then add following lines into xcursor-transparent-theme_${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;
}
#######
7. re-run &quot;bitbake xcursor-transparent-theme&quot;, and check the deploy folder if the packages for xcursor-transparent-theme are re-generated with PR number bump up
8. run &quot;bitbake-prserv-tool export export.inc&quot;
9. in the second poky source, set PRSERV_HOST to localhost:0 in local.conf

10. copy export.inc into the second poky source&apos;s build directory
11. run &quot;bitbake-prserv-tool import export.inc&quot; and run &quot;bitbake xcursor-transparent-theme&quot;
12. check the deploy folder if the packages for xcursor-transparent-theme are generated with N+1 PR number compared with the first poky source.
&quot;

after exporting the export.inc, in the second build environment, I get this error message :

&quot;
cosscat@cosscat:/media/work/2poky/build$ bitbake-prserv-tool import export.inc
WARNING: Host distribution &quot;Ubuntu-14.04&quot; has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
ERROR: Only one copy of bitbake should be run against a build directory
Importing from file export.inc failed!
cosscat@cosscat:/media/work/2poky/build$ 
&quot;

The local.conf file contains the required: PRSERV_HOST = &quot;localhost:0&quot;

Initially I thought it&apos;s something from having a background bitbake process running, but ...

&quot;
cosscat@cosscat:/media/work/2poky/build$ ps -eaf | grep -i bitbake
cosscat   3432  2457  0 12:13 pts/17   00:00:00 grep --color=auto -i bitbake
&quot;

The build dir looks like: 
&quot;
cosscat@cosscat:/media/work/2poky/build$ ls -ltr
total 20
-rw-rw-r-- 1 cosscat cosscat  503 iul 14 12:06 export.inc
drwxrwxr-x 2 cosscat cosscat 4096 iul 14 12:08 tmp
drwxrwxr-x 2 cosscat cosscat 4096 iul 14 12:08 sstate-cache
drwxrwxr-x 2 cosscat cosscat 4096 iul 14 12:08 conf
-rw-rw-r-- 1 cosscat cosscat    0 iul 14 12:08 bitbake.lock
drwxrwxr-x 2 cosscat cosscat 4096 iul 14 12:08 cache
&quot;

Tried to remove the bitbake.lock file, but same error.

After building something random:

&quot;
cosscat@cosscat:/media/work/2poky/build$ bitbake core-image-minimal
WARNING: Host distribution &quot;Ubuntu-14.04&quot; has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
NOTE: Started PRServer with DBfile: /media/work/2poky/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 56990, PID: 3491
Parsing recipes: 100% |##################################################################################################################################################################################################| Time: 00:00:21
Parsing of 855 .bb files complete (0 cached, 855 parsed). 1187 targets, 35 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.20.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;(detachedfromdc74374):dc743744d8e3a9caef577aeab6b7f51bc08ded17&quot;
...
&quot;

everything goes smooth.

&quot;
cosscat@cosscat:/media/work/2poky/build$ bitbake-prserv-tool import export.inc
WARNING: Host distribution &quot;Ubuntu-14.04&quot; has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
NOTE: Started PRServer with DBfile: /media/work/2poky/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44225, PID: 3655
NOTE: imported (xcursor-transparent-theme-0.1.1-r4,all,eb849eae1b75c757019ec18f6de0b929,3)#############################################################################################################################  | ETA:  00:00:00
Parsing recipes: 100% |##################################################################################################################################################################################################| Time: 00:00:10
Parsing of 855 .bb files complete (0 cached, 855 parsed). 1187 targets, 35 skipped, 0 masked, 0 errors.

Summary: There was 1 WARNING message shown.
Importing from file export.inc succeeded!

&amp;&amp;


cosscat@cosscat:/media/work/2poky/build$ bitbake xcursor-transparent-theme
WARNING: Host distribution &quot;Ubuntu-14.04&quot; has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
NOTE: Started PRServer with DBfile: /media/work/2poky/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 42005, PID: 3835
Parsing recipes: 100% |##################################################################################################################################################################################################| Time: 00:00:10
Parsing of 855 .bb files complete (0 cached, 855 parsed). 1187 targets, 35 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.20.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;(detachedfromdc74374):dc743744d8e3a9caef577aeab6b7f51bc08ded17&quot;

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 379 tasks of which 101 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
cosscat@cosscat:/media/work/2poky/build$ 
&quot;

All the above is valid both for a fresh clone of poky and for an alredy existant one. For both cases, the build dir should be a fresh new one.  

poky commit used: dc743744d8e3a9caef577aeab6b7f51bc08ded17

Regards,

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44713</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-25 15:31:01 +0000</bug_when>
    <thetext>See https://bugzilla.yoctoproject.org/show_bug.cgi?id=4606, this test case doesn&apos;t make sense.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>