In regard to: Re:Rpm-list Digest, Vol 317, Issue 3, 张志明 said (at...:
Please keep mailing list replies to the mailing list.
Thank you first!
The results of the commands are different,but why? The projects is not changed.
centos6:
[root@pc-dell x86_64]# rpm -q --provides -p server-1.3.11.x86_64.rpm
config(server) = 1.3.11
libmylib.so.2()(64bit)
mediacontrol.so()(64bit)
server = 1.3.11
server(x86-64) = 1.3.11
centos7:
[root@localhost x86_64]# rpm -q --provides -p server-1.3.11.x86_64.rpm
server = 1.3.11
server(x86-64) = 1.3.11
Panu answered your question with what is very likely the solution.
You're probably installing libmylib.so.2 and mediacontrol.so without
setting the execute bits on the shared objects. RPM's behavior on
RHEL 7 (and therefore CentOS 7) has apparently changed so that it
doesn't automatically "provide" shared objects if you don't set the
execute bits on them.
Basically, fix them so they are mode 0755 when your %install code
puts them into the "buildroot".
Once you do that, the rpm -q --provides -p server-1.3.11.x86_64.rpm
when run on CentOS 7 should show them in the output.
Tim
--
Tim Mooney Tim.Mooney@xxxxxxxx
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list