Bug 13166

Summary: Meta-selinux: Audit recipes configure.ac check golang from the host (check contamination), resulting a QA issue
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: tangicolin
Component: layersAssignee: Yi Zhao <yi.zhao>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, randy.macleod, yi.zhao
Version: unspecified   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
config.log of the audit configure.ac result none

Description tangicolin 2019-02-04 10:56:02 UTC
Created attachment 4428 [details]
config.log of the audit configure.ac result

The configure.ac of the audit recipes check for golang availability or not . If golang is installed on the host (not from yocto, it is a "host contamination" check) it compile some extras files that are not shipped and it result from a QA issue : 

ERROR: QA Issue: audit: Files/directories were installed but not shipped in any package:
  /usr/lib/golang
  /usr/lib/golang/src
  /usr/lib/golang/src/pkg
  /usr/lib/golang/src/pkg/redhat.com
  /usr/lib/golang/src/pkg/redhat.com/audit
  /usr/lib/golang/src/pkg/redhat.com/audit/audit.go
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
audit: 6 installed and not shipped files. [installed-vs-shipped]

The configure script of audit should be changed to no check "golang" availability from the host path.