Bug 360181

Summary: Need lm_sensors-devel added to BuildRequire
Product: [Fedora] Fedora Reporter: Razvan Corneliu C.R. VILT <razvan.vilt>
Component: cyrus-imapdAssignee: Tomas Janousek <tjanouse>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-18 16:53:35 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:

Description Razvan Corneliu C.R. VILT 2007-10-31 14:00:08 UTC
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)

Comment 1 Tomas Janousek 2007-10-31 18:40:45 UTC
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 ...