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
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.