Bug 1464084 - scl enable rh-postgresql95 sets wrong XDG_DATA_DIRS (omits /usr/share)
Summary: scl enable rh-postgresql95 sets wrong XDG_DATA_DIRS (omits /usr/share)
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-postgresql95
Version: rh-postgresql95
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Petr Kubat
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 1486089 (view as bug list)
Depends On: 1375512 1389272
Blocks: 1473252 1482012 1488164 1500617
TreeView+ depends on / blocked
 
Reported: 2017-06-22 12:01 UTC by Vaclav Danek
Modified: 2019-06-14 14:18 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1375512
: 1473252 1482012 1488164 1500617 (view as bug list)
Environment:
Last Closed: 2019-06-14 14:18:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1125234 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 1264094 0 unspecified CLOSED RFE: Please add XDG_DATA_DIRS support to bash-completion 2021-02-22 00:41:40 UTC

Internal Links: 1125234 1264094

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/


Note You need to log in before you can comment on or make changes to this bug.