public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* rdma-core spec weird behavior on Fedora
@ 2021-02-07  8:06 Leon Romanovsky
  2021-02-08 12:59 ` Jason Gunthorpe
  2021-02-10 11:54 ` Leon Romanovsky
  0 siblings, 2 replies; 13+ messages in thread
From: Leon Romanovsky @ 2021-02-07  8:06 UTC (permalink / raw)
  To: Honggang Li
  Cc: Itay Aveksis, RDMA mailing list, Alaa Hleihel, Jason Gunthorpe,
	Doug Ledford

Hi Honggang,

Your commit b02de521022a ("redhat: Remove base package dependency from all sub-packages")
removes protection from rdma-core when user performs "dnf autoremove".

Before your patch, systemd was dependent on libibverbs and latter
required rdma-core. After your patch, the last link is lost and
rdma-core marked as orphaned package.

Any attempt to install rdma-core as standalone package will have the
following errors, due to the library dependency of udevadm.
[leonro@c rdma-core]$ ldd /sbin/udevadm | grep verbs
	libibverbs.so.1 => not found

[leonro@c rdma-core]$ sudo dnf install /tmp/rdma-core/RPMS/x86_64/rdma-core-34.0-1.fc32.x86_64.rpm
Last metadata expiration check: 1:29:40 ago on Sun 07 Feb 2021 07:29:13 AM IST.
Dependencies resolved.
======================================================================================================================
 Package                    Architecture            Version                       Repository                     Size
======================================================================================================================
Installing:
 rdma-core                  x86_64                  34.0-1.fc32                   @commandline                   54 k

Transaction Summary
======================================================================================================================
Install  1 Package

Total size: 54 k
Installed size: 121 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                        1/1
  Installing       : rdma-core-34.0-1.fc32.x86_64                                                           1/1
  Running scriptlet: rdma-core-34.0-1.fc32.x86_64                                                           1/1
/sbin/udevadm: error while loading shared libraries: libibverbs.so.1: cannot open shared object file: No such file or directory
/sbin/udevadm: error while loading shared libraries: libibverbs.so.1: cannot open shared object file: No such file or directory
/sbin/udevadm: error while loading shared libraries: libibverbs.so.1: cannot open shared object file: No such file or directory

/usr/bin/udevadm: error while loading shared libraries: libibverbs.so.1: cannot open shared object file: No such file or directory

/usr/bin/systemctl: error while loading shared libraries: libibverbs.so.1: cannot open shared object file: No such file or directory
warning: %triggerin(systemd-245.8-2.fc32.x86_64) scriptlet failed, exit status 127

Error in <unknown> scriptlet in rpm package rdma-core
  Verifying        : rdma-core-34.0-1.fc32.x86_64                                                           1/1

Installed:
  rdma-core-34.0-1.fc32.x86_64

Complete!

--------------------------------------------------------------------------------------
I think that the right solution is to make rdma-core meta-package as we
wanted it from the beginning when created rdma-core repo.

Thanks

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-10 11:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-07  8:06 rdma-core spec weird behavior on Fedora Leon Romanovsky
2021-02-08 12:59 ` Jason Gunthorpe
2021-02-08 13:10   ` Leon Romanovsky
2021-02-08 13:15     ` Alaa Hleihel
2021-02-08 13:26       ` Leon Romanovsky
2021-02-08 13:21     ` Jason Gunthorpe
2021-02-08 13:31       ` Leon Romanovsky
2021-02-08 14:08         ` Jason Gunthorpe
2021-02-08 14:31           ` Leon Romanovsky
2021-02-08 15:35             ` Jason Gunthorpe
2021-02-08 15:59               ` Leon Romanovsky
2021-02-08 18:18                 ` Jason Gunthorpe
2021-02-10 11:54 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox