<?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>5573</bug_id>
          
          <creation_ts>2013-11-20 11:46:49 +0000</creation_ts>
          <short_desc>PR Service does not add initial &apos;.0&apos; version to arch independent packages</short_desc>
          <delta_ts>2014-01-14 10:18:03 +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.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>irina.patru</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38923</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-11-20 11:46:49 +0000</bug_when>
    <thetext>The PR Service does not add the initial &apos;.0&apos; version for the &apos;all&apos; architecture packages(it does this for architecture-dependent packages).

This can be reproduced using the following steps:
1. prepare 1 poky build environments
2. 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;
}
#######

5. re-run &quot;bitbake xcursor-transparent-theme&quot;, task do_packge for recipe xcursor-transparent-theme should be re-run
6. check the xcursor-transparent-theme package built out under deploy folder, the PR number should bump up automatically

OUTCOME:
After step 4) we get the following package name: 
tmp/deploy/rpm/all/xcursor-transparent-theme-0.1.1-r4.all.rpm
After step 6 we get the following package name:
tmp/deploy/rpm/all/xcursor-transparent-theme-0.1.1-r4.1.all.rpm

NOTE: For architecture dependent packages, a &apos;.0&apos; is added as the package version like so:
tmp/deploy/rpm/x86_64/m4-1.4.17-r0.0.x86_64.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39477</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-12-18 15:39:38 +0000</bug_when>
    <thetext>After further analysis I came up with better steps to reproduce. This bug is actually about the fact that rebuilding packages from shared state ignores the PR Service. This can also make PR numbers go backwards if rebuilding an older version from shared state.

This can be reproduced using the following steps:
1. prepare 1 poky build environment
2. issue &apos;bitbake xcursor-transparent-theme&apos;
3. issue &apos;bitbake -cclean xcursor-transparent-theme&apos;
4. set PRSERV_HOST to localhost:0 in local.conf
5. issue &apos;bitbake xcursor-transparent-theme&quot;&apos;

Notice package naming does not contain PR number:
tmp/deploy/rpm/all/xcursor-transparent-theme-0.1.1-r4.all.rpm

The package should be named something like this:
tmp/deploy/rpm/all/xcursor-transparent-theme-0.1.1-r4.0.all.rpm

Also, pkgdata contains faulty PR version:
cornel@NODE1:~/SSD/poky/2build$ head tmp/sysroots/qemux86-64/pkgdata/runtime/xcursor-transparent-theme
PN: xcursor-transparent-theme
PV: 0.1.1
PR: r4
PKGV: 0.1.1
PKGR: r4
LICENSE: GPLv2
DESCRIPTION: Transparent xcursor theme for handheld systems
SUMMARY: xcursor-transparent-theme version 0.1.1-r4
SECTION: x11/base
PKG_xcursor-transparent-theme: xcursor-transparent-theme</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39516</commentid>
    <comment_count>2</comment_count>
    <who name="Irina Patru">irina.patru</who>
    <bug_when>2013-12-20 09:58:32 +0000</bug_when>
    <thetext>Internally, the PR Server knows the current PR number, but it is not shown in the package name because that one is taken exactly as it is from shared state.
This can be justified by the fact that making changes to the recipe before calling bitbake will get &apos;.1&apos; in the PR number. 

If bitbake is issued after a -c cleansstate (not a -c clean), the appropriate package name is given:
tmp/deploy/rpm/all/xcursor-transparent-theme-0.1.1-r4.0.all.rpm

Since this is not a problem with the PR service, it can be classified as NOTABUG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39786</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-01-14 10:18:03 +0000</bug_when>
    <thetext>Setting to Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>