Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1464084

Summary: scl enable rh-postgresql95 sets wrong XDG_DATA_DIRS (omits /usr/share)
Product: Red Hat Software Collections Reporter: Vaclav Danek <vdanek>
Component: rh-postgresql95Assignee: Petr Kubat <pkubat>
Status: CLOSED EOL QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-postgresql95CC: hhorak, mypluribus, pkubat, praiskup, vdanek
Target Milestone: ---Keywords: Reopened, TestOnly
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1375512
: 1473252 1482012 1488164 1500617 (view as bug list) Environment:
Last Closed: 2019-06-14 14:18:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1375512, 1389272    
Bug Blocks: 1473252, 1482012, 1488164, 1500617    

Comment 4 Pavel Raiskup 2017-07-25 08:02:05 UTC
There's no know reason to set XDG_* variables at least ATM:

* PostgreSQL collections don't install any systemtap files (as e.g. ruby does)

* we don't install any bash completion scripts (I'm mentioning this
  because there's theoretical chance that RHEL7's bash completion (epel)
  could be updated to support XDG_DATA_DIRS).

Feel free to reopen if there are some other (new) facts.

Comment 5 Pavel Raiskup 2017-07-25 08:05:31 UTC
Ok, I'll try to switch this to TestOnly bug -> maybe the test could be
edited so it would report FAILURE for XDG_DATA_DIRS only if collection
installs some stap/bash-completion file.

Comment 6 Pavel Raiskup 2017-07-25 08:07:19 UTC
*** Bug 1473252 has been marked as a duplicate of this bug. ***

Comment 7 Lukáš Zachar 2017-08-09 14:24:59 UTC
Well, XDG_* variables are set in enable scriplet and that is the reason why test complains.

At least in rh-postgresql95-runtime-2.2-2.el7.x86_64:

# For XMvn to locate its configuration file(s)
export XDG_CONFIG_DIRS="/etc/opt/rh/rh-postgresql95/xdg:${XDG_CONFIG_DIRS:-/etc/xdg}"
# For systemtap
export XDG_DATA_DIRS="/opt/rh/rh-postgresql95/root/usr/share${XDG_DATA_DIRS:+:${XDG_DATA_DIRS}}"


Original bug is still present

# scl enable rh-postresql95 gedit 
...
/var/tmp/sclR7PKLx: line 8: 11420 Trace/breakpoint trap   gedit


So, can we either fix XDG export or remove it if we really don't need it?

Comment 8 Pavel Raiskup 2017-08-14 11:48:46 UTC
Ouch, you are right.  This is result of my blindness .. I thought that the
XDG_* variables are not set by PostgreSQL collections -- but those apparently
(and mistakenly) are.  Switching back against PostgreSQL, thanks and sorry.

So to the best of my knowledge, the XDG_* variables were added with some wide
all-collection sync-up during RHSCL 2.0 development of rh-postgresql94 (commit
627d9568a7dde5).  IMO the cleanest fix is to not set XDG_* variables.

Comment 9 Pavel Raiskup 2017-08-14 12:36:53 UTC
Btw. another tool using XDG_DATA_* is xmvn (mentioned by hhorak on irc).  Since
we don't build java packages against this collection, we should be fine too.

Comment 12 Pavel Raiskup 2017-08-29 07:49:09 UTC
*** Bug 1486089 has been marked as a duplicate of this bug. ***

Comment 16 Joe Orton 2019-03-14 11:02:42 UTC
Red Hat does not currently plan to provide any further changes to this collection in a Red Hat Software Collections update release.

This software collection is nearing the retirement date (May 2019) after which customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/

Comment 17 Joe Orton 2019-06-14 14:18:27 UTC
In accordance with the Red Hat Software Collections Product Life Cycle, the support period for this collection has ended.

New bug fix, enhancement, and security errata updates, as well as technical support services will no longer be made available for this collection.

Customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/