All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Yocto Project <yocto@yoctoproject.org>
Subject: Build/install question
Date: Fri, 26 Jul 2013 10:15:35 -0600	[thread overview]
Message-ID: <51F2A0A7.4060202@mlbassoc.com> (raw)

One final tidy-up for my Amanda recipe.  In do_install() I have:
     install -d -m 0777 -o amandabackup -g amandabackup ${D}/amanda
     install -d -m 0777 -o amandabackup -g amandabackup ${D}/amanda/vtapes/slot{1,2,3,4}
     install -d -m 0777 -o amandabackup -g amandabackup ${D}/amanda/holding
     install -d -m 0777 -o amandabackup -g amandabackup ${D}/amanda/state/{curinfo,log,index}

The problem I have is that /amanda and /amanda/holding end up with
the correct file owner/group, but the others (anything that has
multiple names) end up being owned by 'root'. When I install my package,
I get this on the target:
    # ls -lR /amanda/
    /amanda/:
    total 3
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 holding
    drwxr-xr-x 5 root         root         1024 Jul 26 15:44 state
    drwxr-xr-x 6 root         root         1024 Jul 26 15:44 vtapes

    /amanda/holding:
    total 0

    /amanda/state:
    total 3
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 curinfo
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 index
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 log

    /amanda/state/curinfo:
    total 0

    /amanda/state/index:
    total 0

    /amanda/state/log:
    total 0

    /amanda/vtapes:
    total 4
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 slot1
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 slot2
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 slot3
    drwxr-xr-x 2 amandabackup amandabackup 1024 Jul 26  2013 slot4

    /amanda/vtapes/slot1:
    total 0

    /amanda/vtapes/slot2:
    total 0

    /amanda/vtapes/slot3:
    total 0

    /amanda/vtapes/slot4:
    total 0

Is this to be expected, or is it a bug?  If so, where do I look
and/or report it?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


             reply	other threads:[~2013-07-26 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-26 16:15 Gary Thomas [this message]
2013-07-26 20:27 ` Build/install question Gary Thomas

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=51F2A0A7.4060202@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=yocto@yoctoproject.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 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.