Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694158 - sys-cluster/rdma-core-24.0: misconfigured shared state dir creates weird path in rxe_cfg
Summary: sys-cluster/rdma-core-24.0: misconfigured shared state dir creates weird path...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-12 13:35 UTC by Holger Hoffstätte
Modified: 2019-09-13 15:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2019-09-12 13:35:51 UTC
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.
Comment 1 Holger Hoffstätte 2019-09-12 13:46:18 UTC
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";
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-09-13 15:00:19 UTC
/var/lib seems to be reasonable indeed
Comment 3 Larry the Git Cow gentoo-dev 2019-09-13 15:11:49 UTC
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(+)