Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Max Kellermann <max+openembedded@blarg.de>
To: openembedded-devel@lists.openembedded.org
Cc: Max Kellermann <max.kellermann@gmail.com>
Subject: [PATCH 5/7] mpd: eliminate `chmod`/`chown` calls by using `install`
Date: Wed, 26 Sep 2018 15:21:13 +0200	[thread overview]
Message-ID: <20180926132115.10455-5-max+openembedded@blarg.de> (raw)
In-Reply-To: <20180926132115.10455-1-max+openembedded@blarg.de>

From: Max Kellermann <max.kellermann@gmail.com>

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
---
 .../recipes-multimedia/musicpd/mpd_0.20.21.bb          | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
index e23c8d523..9123673fb 100644
--- a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
+++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.21.bb
@@ -66,11 +66,11 @@ do_configure_prepend() {
 }
 
 do_install_append() {
-    install -d ${D}/${localstatedir}/lib/mpd/music
-    chmod 775 ${D}/${localstatedir}/lib/mpd/music
-    install -d ${D}/${localstatedir}/lib/mpd/playlists
-    chown -R mpd ${D}/${localstatedir}/lib/mpd
-    chown mpd:mpd ${D}/${localstatedir}/lib/mpd/music
+    install -o mpd -d \
+        ${D}/${localstatedir}/lib/mpd \
+        ${D}/${localstatedir}/lib/mpd/playlists
+    install -m775 -o mpd -g mpd -d \
+        ${D}/${localstatedir}/lib/mpd/music
 
     install -d ${D}/${sysconfdir}
     install -m 644 ${WORKDIR}/mpd.conf.in ${D}/${sysconfdir}/mpd.conf
-- 
2.19.0



  parent reply	other threads:[~2018-09-26 13:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-26 13:21 [PATCH 1/7] mpd: sort PACKAGECONFIGs again Max Kellermann
2018-09-26 13:21 ` [PATCH 2/7] mpd: fix the sqlite dependency Max Kellermann
2018-09-26 13:21 ` [PATCH 3/7] mpd: build from git Max Kellermann
2018-09-26 13:21 ` [PATCH 4/7] mpd: make more plugins optional Max Kellermann
2018-09-26 13:21 ` Max Kellermann [this message]
2018-09-26 13:21 ` [PATCH 6/7] fluidsynth: drop extra dash from `-Denable-pulseaudio=OFF` Max Kellermann
2018-09-26 13:21 ` [PATCH 7/7] libmms: drop obsolete "Requires:glib-2.0" from pkg-config file Max Kellermann
2018-09-26 14:24 ` [PATCH 1/7] mpd: sort PACKAGECONFIGs again Khem Raj
     [not found]   ` <20180926142844.wcbqlarv5lw6wlwd@swift.blarg.de>
2018-09-26 14:29     ` Khem Raj

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=20180926132115.10455-5-max+openembedded@blarg.de \
    --to=max+openembedded@blarg.de \
    --cc=max.kellermann@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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