Bug 4195

Summary: [Autobuilder] build error for xserver-xf86-config
Product: [Build System, Metadata & Runtime] BSPs Reporter: Bogdan Marinescu <bogdan.a.marinescu>
Component: bsps-meta-fsl-ppcAssignee: Zhenhua Luo <zhenhua.luo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: b40290, msm-oss, richard.purdie
Version: 1.3.1   
Target Milestone: 1.3.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Bogdan Marinescu 2013-04-04 11:23:44 UTC
http://autobuilder.yoctoproject.org:8011/builders/nightly-fsl-ppc-lsb/builds/56/steps/Building%20Images/logs/stdio

| DEBUG: Python function read_subpackage_metadata finished
| DEBUG: Executing python function do_package_rpm
| DEBUG: Executing python function write_specfile
| NOTE: Creating EMPTY RPM Package for xserver-xf86-config-dbg
| NOTE: Not creating empty RPM package for xserver-xf86-config-staticdev
| NOTE: Creating EMPTY RPM Package for xserver-xf86-config-dev
| NOTE: Not creating empty RPM package for xserver-xf86-config-doc
| NOTE: Not creating empty RPM package for xserver-xf86-config-locale
| NOTE: Creating RPM package for xserver-xf86-config
| NOTE: Creating RPM package for xserver-xf86-config
| DEBUG: Python function write_specfile finished
| DEBUG: Executing shell function BUILDSPEC
| error: line 4: invalid tag value("^[A-Za-z0-9+._]+$") Release: Release: r11+poky-lsb
| error: Package has no %description: xserver-xf86-config-0.1.p1022ds
| Building target platforms: p1022ds-poky-linux-gnuspe
| DEBUG: Python function do_package_rpm finished
| DEBUG: Python function do_package_write_rpm finished
| ERROR: Function failed: BUILDSPEC (see /srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc-lsb/build/build/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky-lsb/temp/log.do_package_write_rpm.26809 for further information)
ERROR: Task 6410 (/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc-lsb/build/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb, do_package_write_rpm) failed with exit code '1'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Comment 2 Richard Purdie 2013-04-04 14:05:30 UTC
To be clear, this is an issue in the fsl-ppc danny branch.
Comment 3 Chunrong Guo 2013-04-15 07:32:22 UTC
I builded  core-image-minimal, core-image-sato and fsl-image-lsb-sdk for p1022ds successfully . There is no problem for building xserver-xf86-config.
I can not reproduce the issue.  

branch: danny
poky: b0574887b45dcd5d5c90335dac5e1509ed8a2eff
meta-fsl-ppc: 81cfb66250e589be5fadef9d1be0b9a2e2b0d4d2
Comment 4 Richard Purdie 2013-04-15 08:36:01 UTC
(In reply to comment #3)
> I builded  core-image-minimal, core-image-sato and fsl-image-lsb-sdk for
> p1022ds successfully . There is no problem for building xserver-xf86-config.
> I can not reproduce the issue.  
> 
> branch: danny
> poky: b0574887b45dcd5d5c90335dac5e1509ed8a2eff
> meta-fsl-ppc: 81cfb66250e589be5fadef9d1be0b9a2e2b0d4d2

Did you enable rpm packages?
Comment 5 Chunrong Guo 2013-04-16 02:21:39 UTC
 I also can not reproduce the issue when  I enable rpm packages.

the following log: 
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_package_write_rpm
DEBUG: Executing python function read_subpackage_metadata
DEBUG: Python function read_subpackage_metadata finished
DEBUG: Executing python function do_package_rpm
DEBUG: Executing python function write_specfile
NOTE: Creating EMPTY RPM Package for xserver-xf86-config-dbg
NOTE: Not creating empty RPM package for xserver-xf86-config-staticdev
NOTE: Creating EMPTY RPM Package for xserver-xf86-config-dev
NOTE: Not creating empty RPM package for xserver-xf86-config-doc
NOTE: Not creating empty RPM package for xserver-xf86-config-locale
NOTE: Creating RPM package for xserver-xf86-config
NOTE: Creating RPM package for xserver-xf86-config
DEBUG: Python function write_specfile finished
DEBUG: Executing shell function BUILDSPEC
Building target platforms: p1022ds-poky-linux-gnuspe
Processing files: xserver-xf86-config-0.1-r11+poky.p1022ds
Finding  Provides: /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/xserver-xf86-config.provides
Finding  Requires: /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/xserver-xf86-config.requires
Processing files: xserver-xf86-config-dbg-0.1-r11+poky.p1022ds
Processing files: xserver-xf86-config-dev-0.1-r11+poky.p1022ds
Checking for unpackaged file(s): /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/sysroots/x86_64-linux/usr/lib/rpm/check-files /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/package
Wrote: /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms/p1022ds/xserver-xf86-config-0.1-r11+poky.p1022ds.rpm
Wrote: /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms/p1022ds/xserver-xf86-config-dbg-0.1-r11+poky.p1022ds.rpm
Wrote: /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms/p1022ds/xserver-xf86-config-dev-0.1-r11+poky.p1022ds.rpm
DEBUG: Shell function BUILDSPEC finished
DEBUG: Python function do_package_rpm finished
DEBUG: Python function do_package_write_rpm finished
DEBUG: Executing python function sstate_task_postfunc
DEBUG: Staging files from /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms to /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/deploy/rpm
DEBUG: Staging files from /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms to /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/deploy/rpm
DEBUG: Preparing tree /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/deploy-rpms for packaging at /local/home/b19537/gcr/opensource/poky/build_dannny/tmp/work/p1022ds-poky-linux-gnuspe/xserver-xf86-config-0.1-r11+poky/sstate-build-deploy-rpm/deploy-rpms
@
@
Comment 6 Richard Purdie 2013-04-16 06:24:43 UTC
You also need to set DISTRO="poky-lsb", the value needs to contain a "-" character. When you find the problem, please backport the patch I linked to.
Comment 7 Chunrong Guo 2013-04-19 03:13:32 UTC
RPM does not support "- " in it's variable names.

the following patch about the issue :
http://patches.openembedded.org/patch/48551/
Comment 8 Chunrong Guo 2013-04-22 05:47:26 UTC
the patch is applied.
branch: danny
meta-fsl-ppc: commit 084331c6f72dfe8be2f4981c802c43ae44d3b812