Centos7 rpm problem

Tim Mooney Tim.Mooney at ndsu.edu
Fri Jan 26 00:33:51 UTC 2018

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 at 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 at 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 Mooney                                             Tim.Mooney at ndsu.edu
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

More information about the Rpm-list mailing list