Bug 1081479 - [HPC, genders] Applicactions using libgenders et.al. don't see 'genders' config file.
[HPC, genders] Applicactions using libgenders et.al. don't see 'genders' conf...
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
All openSUSE Factory
: P3 - Medium : Normal (vote)
: ---
Assigned To: John Jolly
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-18 23:49 UTC by Egbert Eich
Modified: 2022-08-20 07:51 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egbert Eich 2018-02-18 23:49:05 UTC
/etc/genders is shipped with the main 'genders' package. However neither libgenders0 nor libgendersplusplus2 depend on it. So applications using the genders API and pulling in these lib packages will have no config file template.
An example is pdsh-genders as it is built from network:utilities in OBS.

There are two possible solutions: either male the lib packages depend on the base package or package the config file separately adding the appropriate dependencies to the lib packages.

'genders' itself is developed in network:cluster.

While fixing this it would be good to comment out the existing entries in the config file.
sed -ie "s/^\([^#][^[:space:]]\+\)/## \\1/g" %{buildroot}/etc/genders
will do the trick.
Comment 1 Egbert Eich 2018-02-18 23:52:24 UTC
John, could you please take a look at this?

Please branch the devel project, do the fixes and SR them to the devel project.
Christian, could you please review them and accept the SR? Please also forward it to Factory. Thanks!
Comment 4 Christian Goll 2018-02-19 08:29:17 UTC
AS the the file /etc/genders is the only valid description of a cluster it will differ for very site. So I am still unsure if it is really sensible to package this file at all.
Comment 5 Egbert Eich 2018-02-20 06:51:12 UTC
(In reply to Christian Goll from comment #4)
> AS the the file /etc/genders is the only valid description of a cluster it
> will differ for very site. So I am still unsure if it is really sensible to
> package this file at all.

This is why i suggested to comment out everything. We could even kill it completely and just add a pointer to the man page.
However, I believe it is good practice (if not required) to ship a template - even it empty.
Comment 9 Swamp Workflow Management 2018-04-19 10:15:06 UTC
SUSE-RU-2018:0982-1: An update that has four recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1081479,1081673,1085090,1085091
CVE References: 
Sources used:
SUSE Linux Enterprise Module for HPC 12 (src):    genders-1.22-3.3.1, pdsh-2.33-7.8.1