All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Norbert Lange <nolange79@gmail.com>, buildroot <buildroot@buildroot.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [Buildroot] [PATCH] system/skeleton: provide run/lock directory
Date: Wed, 12 Jan 2022 20:39:57 +0100	[thread overview]
Message-ID: <9e39bdad-16dd-1fb4-2c5e-2de0e032fcbc@mind.be> (raw)
In-Reply-To: <CADYdroPR-+z0fNJa8pD0ZFB3z6-fdGLpes7cUem5xSnyBCHv7g@mail.gmail.com>



On 12/01/2022 11:19, Norbert Lange wrote:
> Am Mi., 12. Jan. 2022 um 11:10 Uhr schrieb Norbert Lange <nolange79@gmail.com>:
>>
>> We changed the skeletons in bf01e51f3c, so that var/lock
>> points to run/lock. This resulted in build failures as
>> some packages want to work with these paths.
>>
>> -   Create run/lock, the run directory will be purged
>>      later anyway (since 5e78e7e97d).
>> -   for init == systemd, create the var/lock symlink early
>>      to prevent packages creating this path as directory.
>>
>> Signed-off-by: Norbert Lange <nolange79@gmail.com>
>> ---
>>   package/skeleton-init-systemd/skeleton-init-systemd.mk | 2 ++
>>   system/skeleton/run/{ => lock}/.empty                  | 0
>>   2 files changed, 2 insertions(+)
>>   rename system/skeleton/run/{ => lock}/.empty (100%)
>>
>> diff --git a/package/skeleton-init-systemd/skeleton-init-systemd.mk b/package/skeleton-init-systemd/skeleton-init-systemd.mk
>> index 1e212cc2f7..795a171809 100644
>> --- a/package/skeleton-init-systemd/skeleton-init-systemd.mk
>> +++ b/package/skeleton-init-systemd/skeleton-init-systemd.mk
>> @@ -62,6 +62,8 @@ define SKELETON_INIT_SYSTEMD_INSTALL_TARGET_CMDS
>>          mkdir -p $(TARGET_DIR)/srv
>>          mkdir -p $(TARGET_DIR)/var
>>          ln -s ../run $(TARGET_DIR)/var/run
>> +       # prevent install scripts to create var/lock as directory
>> +       ln -s ../run/lock $(TARGET_DIR)/var/lock
>>          install -D -m644 $(SKELETON_INIT_SYSTEMD_PKGDIR)/legacy.conf $(TARGET_DIR)/usr/lib/tmpfiles.d/legacy.conf
>>          $(SKELETON_INIT_SYSTEMD_ROOT_RO_OR_RW)
>>   endef
>> diff --git a/system/skeleton/run/.empty b/system/skeleton/run/lock/.empty
>> similarity index 100%
>> rename from system/skeleton/run/.empty
>> rename to system/skeleton/run/lock/.empty
>> --
>> 2.34.1
>>
> 
> Fixes: http://autobuild.buildroot.net/results/3ee/3ee8f9ee55e51af38e9dbe7b9840c9589d88a30f

  Applied to master with that added, thanks.

> (and alot more containing the vtun package)
> 
> For someone not fluent with mailing list workflows, and working with a
> couple projects,
> it might help having a few example commit messages (-templates) in the docs.
> ie for respins, bug fixes, versioning (potentially of series)

  Absolutely! I'm waiting for a really nice example to turn up on the list and 
steal that for the documentation.

  Regards,
  Arnout

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-01-12 19:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 10:10 [Buildroot] [PATCH] system/skeleton: provide run/lock directory Norbert Lange
2022-01-12 10:19 ` Norbert Lange
2022-01-12 19:39   ` Arnout Vandecappelle [this message]
2022-04-18 18:18 Tim Hammer
2022-04-18 20:47 ` Norbert Lange
2022-04-19 15:33   ` Tim Hammer

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

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

  git send-email \
    --in-reply-to=9e39bdad-16dd-1fb4-2c5e-2de0e032fcbc@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@buildroot.org \
    --cc=nolange79@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.