unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Nils Landt <nils@landt.email>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Store file names / how to intern files in subdirectory?
Date: Thu, 5 Oct 2023 08:49:23 +0200 (CEST)	[thread overview]
Message-ID: <1933252523.353103.1696488563874@office.mailbox.org> (raw)

Hello,

I'm working on my home-systemd-service, and systemd cares about the file name behind links. Specifically, it emits a warning when the file name of the link target does not match the link name.
Example:
ls -alh ~/.config/systemd/user/default.target.wants/greenclip.service ->
/home/nl/.config/systemd/user/default.target.wants/greenclip.service -> /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service

results in this log message:
"default.target: Wants dependency dropin /home/nl/.config/systemd/user/default.target.wants/greenclip.service target /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service has different name".

Still, I would like to fix this warning.
The file is a serialized configuration created with (mixed-text-file "greenclip.service" (serialize-configuration ...)).
If I change the first argument to "test/greenclip.service", I get an error, so it's really just the file name, not a path.
I understand it makes no sense to try to get /gnu/store/greenclip.service, but would it be possible to achieve /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service/some-directory/greenclip.service? Or are files always saved at the "top level" of the store?

Nils


             reply	other threads:[~2023-10-05  6:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05  6:49 Nils Landt [this message]
2023-10-05  9:08 ` Store file names / how to intern files in subdirectory? Saku Laesvuori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1933252523.353103.1696488563874@office.mailbox.org \
    --to=nils@landt.email \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).