Bug 734261

Summary: gypsy fails to build due to unused priv variable
Product: [Fedora] Fedora Reporter: Jeff Bastian <jbastian>
Component: gypsyAssignee: Peter Robinson <pbrobinson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: pbrobinson
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gypsy-0.8-5.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-29 00:10:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to comment out unused variable none

Description Jeff Bastian 2011-08-29 22:12:41 UTC
Created attachment 520476 [details]
patch to comment out unused variable

Description of problem:
gypsy fails to rebuild due to an unused priv variable in gypsy-time.c and the new gcc 4.6 default of -Werror=unused-but-set-variable:

...
gypsy-time.c: In function 'get_property':
gypsy-time.c:158:20: error: variable 'priv' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [libgypsy_la-gypsy-time.lo] Error 1
...

A patch is attached that simply comments out this unused variable to make gcc happy.


Version-Release number of selected component (if applicable):
gypsy-0.8-2.fc15.src.rpm

How reproducible:
every time

Steps to Reproduce:
1. rpmbuild --rebuild gypsy-0.8-2.fc15.src.rpm
  
Actual results:
gypsy-time.c:158:20: error: variable 'priv' set but not used [-Werror=unused-but-set-variable]

Expected results:
gypsy rebuilds

Additional info:

Comment 1 Fedora Update System 2011-11-16 13:02:01 UTC
gypsy-0.8-5.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gypsy-0.8-5.fc14

Comment 2 Fedora Update System 2011-11-16 13:02:10 UTC
gypsy-0.8-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/gypsy-0.8-5.fc15

Comment 3 Fedora Update System 2011-11-16 13:02:18 UTC
gypsy-0.8-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/gypsy-0.8-5.fc16

Comment 4 Fedora Update System 2011-11-17 23:31:16 UTC
Package gypsy-0.8-5.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gypsy-0.8-5.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16004/gypsy-0.8-5.fc14
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-11-29 00:10:58 UTC
gypsy-0.8-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2011-11-29 00:11:09 UTC
gypsy-0.8-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-11-29 00:19:39 UTC
gypsy-0.8-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.