After fixing #694148 I got the new rdma-core stack up & running using RXE. \o/ However it seems that rxe_cfg has been configured to use a weird path for its persistent state: $grep "my \$persistence_path" /usr/bin/rxe_cfg my $persistence_path = "/usr/com/rxe"; Indeed after using rxe_cfg it has saved its state into /usr/com/rxe, which is not the right path. In my previously used local rdma-core ebuild I also had: -DCMAKE_INSTALL_SHAREDSTATEDIR="${EPREFIX}"/var/lib to fix this.
Interestingly I just saw that the man page states: [PREFIX]/etc/rxe.conf RXE configuration file. Contains the list of persistent RXE instances. All persistent RXE instances can be removed by deleting this file (note this will take effect on the next "rxe_cfg start" -- to remove actively configured instances, you must "rxe_cfg stop"). Apparently it wants to save its state to /etc/rxe.conf. Not sure what Gentoo's policy is in terms of letting (admin) applications write to /etc or whether configuring e.g. /var/lib/ or patching rxe_cfg to always use /etc would be better. The templated file in the source tarball has the following in rdma-core-24.0/providers/rxe/rxe_cfg.in: my $persistence_path = "@CMAKE_INSTALL_FULL_SHAREDSTATEDIR@/rxe";
/var/lib seems to be reasonable indeed
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76aaea7d5b986c9f5832993016404047422f50f9 commit 76aaea7d5b986c9f5832993016404047422f50f9 Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2019-09-13 15:08:34 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2019-09-13 15:11:42 +0000 sys-cluster/rdma-core: Version bump (v25.0) - make pandoc optional (otherwise 25.0 fails to build) - point correct SHAREDSTATEDIR Closes: https://bugs.gentoo.org/694158 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> sys-cluster/rdma-core/Manifest | 1 + sys-cluster/rdma-core/files/optional_pandoc.patch | 54 +++++++++++++ sys-cluster/rdma-core/rdma-core-24.0.ebuild | 1 + sys-cluster/rdma-core/rdma-core-25.0.ebuild | 95 +++++++++++++++++++++++ sys-cluster/rdma-core/rdma-core-9999.ebuild | 1 + 5 files changed, 152 insertions(+)