Bug 1111633

Summary: RFE: alter rrdtool.spec for easier el6 rebuild
Product: [Fedora] Fedora Reporter: Japheth Cleaver <cleaver-redhat>
Component: rrdtoolAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-24 16:28:10 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:
Attachments:
Description Flags
Patch allowing clean el6 rebuild none

Description Japheth Cleaver 2014-06-20 14:57:17 UTC
Created attachment 910800 [details]
Patch allowing clean el6 rebuild

Description of problem:

With a small patch, the most recent rawhide version of the rrdtool-1.4.8 RPM can be rebuilt on EL6.

Version-Release number of selected component (if applicable):
rrdtool-1.4.8-13.fc21.src.rpm

How reproducible:
Always

Steps to Reproduce:
1.rpm -ivh rrdtool-1.4.8-13.fc21.src.rpm on an EL6 box
2.rpmbuild -ba rrdtool.spec
3.

Actual results:
lua/ruby build errors

Expected results:
Builds cleanly

Additional info:
make[4]: Entering directory `/home/rpmbuild/BUILD/rrdtool-1.4.8/bindings/ruby'
Makefile:152: Commands were specified for file `RRD.so' at Makefile:122,
Makefile:152: but `RRD.so' is now considered the same file as `/usr/lib64/ruby/1.8/x86_64-linux/RRD.so'.
Makefile:152: Commands for `/usr/lib64/ruby/1.8/x86_64-linux/RRD.so' will be ignored in favor of those for `RRD.so'.
make[4]: Circular /usr/lib64/ruby/1.8/x86_64-linux/RRD.so <- /usr/lib64/ruby/1.8/x86_64-linux/RRD.so dependency dropped.
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../../src    -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing  -fPIC   -c main.c
/usr/bin/install -c -m 0755 RRD.so /usr/lib64/ruby/1.8/x86_64-linux
/usr/bin/install: cannot stat `RRD.so': No such file or directory
make[4]: *** [/usr/lib64/ruby/1.8/x86_64-linux/RRD.so] Error 1

Comment 1 Jaroslav Škarvada 2014-06-24 16:28:10 UTC
I don't like these backward compatiblity hacks, especially the conditional application of patches. If there is any functionality not provided by RHEL-6 version, please open RHEL-6 bugzilla. RHEL-6 rebuild is not supported and may break anytime in the future.