RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1741836 - tmux rpm does not own /etc/tmux.conf
Summary: tmux rpm does not own /etc/tmux.conf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tmux
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: David Cantrell
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-16 08:28 UTC by Jan Pazdziora
Modified: 2021-02-16 07:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-16 07:30:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Pazdziora 2019-08-16 08:28:06 UTC
Description of problem:

While setting up some environment with tmux, I knew I have to configure settings in /etc/tmux.conf. I thought I'd make sure tmux is installed in the first place, and I run

  dnf install /etc/tmux.conf

and was surprised that no package was found providing it.

Version-Release number of selected component (if applicable):

tmux-2.7-1.el8.x86_64

How reproducible:

Determinic.

Steps to Reproduce:
1. dnf install /etc/tmux.conf

Actual results:

No match for argument: /etc/tmux.conf
Error: Unable to find a match: /etc/tmux.conf

Expected results:

Dependencies resolved.
================================================================================
 Package       Architecture    Version             Repository              Size
================================================================================
Installing:
 tmux          x86_64          2.7-1.el8           beaker-BaseOS          317 k

[...]

Additional info:

Of course, the file could be %ghost since tmux works just fine even when it is not present, but it might be nice for the tmux rpm package to declare ownership of that file.

Comment 1 David Cantrell 2019-08-19 13:26:17 UTC
This is deliberate.  tmux does not actually require an /etc/tmux.conf file, but will read one if it exists.  The package does not provide an example one since the default functionality is defined in the program itself.  I'm not sure %ghost ownership of /etc/tmux.conf would be a good idea because the only way that file would appear would be for a user to explicitly create it, so removal of the tmux package also removing a manually created file might be undesirable for the user.

I am open to other suggestions though.

Comment 2 Jan Pazdziora 2019-08-19 14:55:05 UTC
Thanks for the explanation.

Some packages ship the config file with the most important options, but having them commented out, just reiterating the defaults. Would that perhaps be useful?

Comment 3 David Cantrell 2019-08-19 15:40:29 UTC
Sure.  But instead of the most useful options, let's have the sample config file have the most damaging options commented out.  :)

Comment 4 David Cantrell 2019-08-19 15:42:52 UTC
Actually, I would rather have an example file be provided in the doc directory.  Any /etc/tmux.conf provided should just have a comment pointing to the example there as well as the man page.  But even then I think that's unnecessary since the man page tells you all this.

Comment 5 Andrew Spiers 2020-07-17 09:52:52 UTC
Upstream have an example config file, it just isn't included in the package.
I've created a PR to fix it:
https://src.fedoraproject.org/rpms/tmux/pull-request/4

Comment 8 RHEL Program Management 2021-02-16 07:30:31 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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