Bug 2176111 - tmpfiles configuration references legacy directory /var/run
Summary: tmpfiles configuration references legacy directory /var/run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sddm
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-07 12:29 UTC by Tim Landscheidt
Modified: 2023-03-09 02:52 UTC (History)
8 users (show)

Fixed In Version: sddm-0.19.0^git20230306.572b128-1.fc37
Clone Of:
Environment:
Last Closed: 2023-03-09 02:52:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Trivial patch to change RUNTIME_DIR. (1.17 KB, patch)
2023-03-07 12:29 UTC, Tim Landscheidt
no flags Details | Diff

Description Tim Landscheidt 2023-03-07 12:29:28 UTC
Created attachment 1948664 [details]
Trivial patch to change RUNTIME_DIR.

When updating sddm on Fedora 37 to sddm-0.19.0^git20230214.8f1e3df-1.fc37.x86_64, the warning:

| /usr/lib/tmpfiles.d/sddm.conf:6: Line references path below legacy directory /var/run/, updating /var/run/sddm → /run/sddm; please update the tmpfiles.d/ drop-in file accordingly.

is output.  The triggering entry is:

| # This contains X11 auth files passed to Xorg and the greeter
| d       /var/run/sddm   0711    root    root

It should be fixable by patching CMakeLists.txt's:

| # Set constants
| set(DATA_INSTALL_DIR            "${CMAKE_INSTALL_FULL_DATADIR}/sddm"                CACHE PATH      "System application data install directory")
| set(DBUS_CONFIG_DIR             "${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d"       CACHE PATH      "DBus config files directory")
| set(STATE_DIR                   "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/sddm"      CACHE PATH      "State directory")
| set(RUNTIME_DIR                 "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/run/sddm"      CACHE PATH      "Runtime data storage directory")
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| set(QML_INSTALL_DIR             "${QT_IMPORTS_DIR}"                                 CACHE PATH      "QML component installation directory")

but I have not tested the attached patch beyond verifying that /usr/lib/tmpfiles.d/sddm.conf then refers to /run/sddm.

This was previously reported as bugs #1748321 and #1795294.

Comment 1 marcdeop 2023-03-07 12:55:51 UTC
Thanks for the help!

We fixed this upstream though: https://github.com/sddm/sddm/pull/1678

Comment 2 Fedora Update System 2023-03-07 13:46:46 UTC
FEDORA-2023-719e0e1399 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-719e0e1399

Comment 3 Fedora Update System 2023-03-08 01:26:33 UTC
FEDORA-2023-719e0e1399 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-719e0e1399`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-719e0e1399

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2023-03-09 02:52:51 UTC
FEDORA-2023-719e0e1399 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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