Bug 1680586

Summary: Building RPM packages with _for_fedora_koji_builds enabled fails on el6
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: buildAssignee: Niels de Vos <ndevos>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-6.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1680587 (view as bug list) Environment:
Last Closed: 2019-02-26 14:11:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1680587    
Bug Blocks: 1672818, 1732875    

Description Niels de Vos 2019-02-25 11:31:12 UTC
Description of problem:
Building RPM packages with _for_fedora_koji_builds enabled fails on el6. A mock rebuild fails with these errors:

Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/glusterfs-6.0-0.1.rc0.el6.x86_64
BUILDSTDERR: error: Installed (but unpackaged) file(s) found:
BUILDSTDERR:    /etc/init.d/glusterfsd
BUILDSTDERR:    /etc/sysconfig/glusterd
BUILDSTDERR:    /etc/sysconfig/glusterfsd
BUILDSTDERR:     Installed (but unpackaged) file(s) found:
BUILDSTDERR:    /etc/init.d/glusterfsd
BUILDSTDERR:    /etc/sysconfig/glusterd
BUILDSTDERR:    /etc/sysconfig/glusterfsd


Version-Release number of selected component (if applicable):
glusterfs-6.0 RC0

How reproducible:
100%

Steps to Reproduce:
1. set _for_fedora_koji_builds to 1 in the glusterfs.spec.in
2. build RPMs against/on el6

Actual results:
Building RPMs fails

Expected results:
Building RPMs should succeed.

Additional info:
It seems that glusterfs-6 disables building the server (./configure --without-server) and hence the installed but unpackaged files should not get installed in the first place.

Comment 1 Worker Ant 2019-02-26 08:39:59 UTC
REVIEW: https://review.gluster.org/22264 (build: do not install service related files when building --without-server) posted (#1) for review on release-6 by Niels de Vos

Comment 2 Worker Ant 2019-02-26 14:11:50 UTC
REVIEW: https://review.gluster.org/22264 (build: do not install service related files when building --without-server) merged (#1) on release-6 by Niels de Vos

Comment 3 Shyamsundar 2019-03-25 16:33:20 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-6.0, please open a new bug report.

glusterfs-6.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2019-March/000120.html
[2] https://www.gluster.org/pipermail/gluster-users/