Description of problem: If lm_sensors-devel is not installed, the cyrus-imapd package cannot be rebuilt. Version-Release number of selected component (if applicable): How reproducible: ALWAYS Steps to Reproduce: 1. yum remove lm_sensors devel 2. rpmbuild -ba /usr/src/redhat/SPECS/cyrus.spec Actual results: gcc -L/usr/kerberos/lib64 -pie -o master master.o masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o ../lib/libcyrus_min.a -L/usr/lib64 -L/usr/lib64 -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lz -lcrypto -lm -lsensors -L/usr/lib64/lib -lwrap -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lssl -lcrypto -lkrb4 -lfl -lresolv -ldb-4.3 -lcom_err /usr/bin/ld: cannot find -lsensors collect2: ld returned 1 exit status make[1]: *** [master] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/cyrus-imapd-2.3.10/master' make: *** [all] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.28806 (%build) Expected results: rpmbuild should output the following error message: error: Failed build dependencies: lm_sensors-devel is needed by cyrus-imapd-2.3.10-7el5.x86_64 Additional info: It probably applies to all branches (rhel/fedora)
Where did you get that SRPM? On Fedora rawhide, cyrus-imapd RPM does not buildrequire lm_sensors-devel, because net-snmp-devel does so. On earlier versions (including all RHELs) it does buildrequire it, because net-snmp-devel does not. If you try to rebuild the SRPM from Fedora on RHEL-5, you may have this problem, but ...