Bug 225098 - devel/dbus startup script can't create machine-id on MFS /var filesystem
Summary: devel/dbus startup script can't create machine-id on MFS /var filesystem
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-12 07:14 UTC by Andrey Zakharchenko
Modified: 2021-07-02 08:23 UTC (History)
4 users (show)

See Also:


Attachments
One-line patch for rc.d/dbus startup script to create /var/lib/dbus directory. (236 bytes, patch)
2018-01-12 07:14 UTC, Andrey Zakharchenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Zakharchenko 2018-01-12 07:14:38 UTC
Created attachment 189643 [details]
One-line patch for rc.d/dbus startup script to create /var/lib/dbus directory.

MFS /var filesystem created by FreeBSD 11 startup scripts doesn't include /var/lib/dbus directory, and `dbus-uuidgen --ensure` command fails.
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-03-03 15:08:47 UTC
ping!
Comment 2 Tatsuki Makino 2021-01-29 00:40:54 UTC
Wouldn't it be better to consolidate the dbus machine-id problem in one place? :)

Bug 228001, Bug 247175.
Comment 3 commit-hook freebsd_committer 2021-07-01 22:16:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83d457310ed3c234b2f4ea5b4d18a00301bc0c09

commit 83d457310ed3c234b2f4ea5b4d18a00301bc0c09
Author:     Andrey Zakharchenko <mc@jscc.ru>
AuthorDate: 2021-07-01 21:15:51 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2021-07-01 22:16:26 +0000

    devel/dbus: create directory for machine-id

    Create the directory where dbus-uuidgen is *going* to write
    the machine-id, just in case -- might affect only older FreeBSD
    versions. dbus-uuidgen doesn't create intermediate directories
    when given an explicit path either, so it does need to be done
    by the environment.

    (I'm purposely **not** also tackling other dbus-uuidgen issues,
    those are in different PRs with different assignees)

    PR:             225098
    Reported by:    Andrey Zakharchenko

 devel/dbus/Makefile      | 2 +-
 devel/dbus/files/dbus.in | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)