All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörg Krause" <jkrause@posteo.de>
To: buildroot@busybox.net
Subject: [Buildroot] PACKAGE_USERS does not work
Date: Fri, 11 Jul 2014 15:23:19 +0200	[thread overview]
Message-ID: <53BFE547.70600@posteo.de> (raw)
In-Reply-To: <CAJtjsKbLN1-yEkBq=cCsoaOx_n+LUYof1P51T3wzOupaxR75JQ@mail.gmail.com>

Hi Johan,

unfortunatly there is no error message. As I mentioned, I can build 
upmpdcli with success. Here is the contents of my 
package/upmpdcli/upmpdcli.mk:

    ################################################################################
    #
    # upmpdcli
    #
    ################################################################################

    UPMPDCLI_VERSION = 0.7.1
    UPMPDCLI_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
    UPMPDCLI_LICENSE = GPLv2
    UPMPDCLI_LICENSE_FILES = LICENSE
    UPMPDCLI_INSTALL_STAGING = YES
    UPMPDCLI_INSTALL_TARGET = YES
    UPMPDCLI_AUTORECONF = YES
    UPMPDCLI_CONF_OPT = --prefix=/usr
    UPMPDCLI_DEPENDENCIES = host-pkgconf
    UPMPDCLI_DEPENDENCIES += libupnp
    UPMPDCLI_DEPENDENCIES += libmpdclient

    define UPMPDCLI_USERS
         upmpdcli -1 upmpdcli -1 * - - -
    endef

    define UPMPDCLI_INSTALL_INIT_SYSV
         $(INSTALL) -m 0755 package/upmpdcli/S99upmpdcli
    $(TARGET_DIR)/etc/init.d/
    endef

    $(eval $(autotools-package))

I would expect that upmpdcli will be added to shadow, passwd, and group 
in output/target/etc, but it isn't. I think it has something to do with 
PACKAGES_USERS in package/pkg-generic.mk. If i rebuild avahi, I can see 
that make adds the entry of AVAHI_USERS to PACKAGES_USERS, but for my 
build of upmpdcli it doesn't. I also tried another custom package.

Best regards
J?rg Krause


On 07/11/2014 01:41 PM, Johan Oudinet wrote:
> Hi J?rg,
>
> On Fri, Jul 11, 2014 at 10:57 AM, J?rg Krause <jkrause@posteo.de> wrote:
>> I added a custom package (upmpdcli) to buildroot which I can cleanly build,
>> except of adding a user with UPMPDCLI_USERS.
>>
>> I am using the same syntax as the package avahi for the definition,  where
>> the user avahi is in fact added to the users table.
>>
>> define UPMPDCLI_USERS
>> upmdpcli -1 upmpdcli -1 * - - -
>> endef
> Your definition of a new user looks correct to me. Could you share the
> error message?
>
> Best,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140711/828e515e/attachment.html>

  reply	other threads:[~2014-07-11 13:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11  8:57 [Buildroot] PACKAGE_USERS does not work Jörg Krause
2014-07-11 11:41 ` Johan Oudinet
2014-07-11 13:23   ` Jörg Krause [this message]
2014-07-11 16:21     ` Johan Oudinet
2014-07-11 17:00     ` Arnout Vandecappelle
2014-07-11 17:28       ` Yann E. MORIN
2014-07-11 18:12         ` Jörg Krause
2014-07-11 17:26     ` Yann E. MORIN
2014-07-11 20:37     ` Yann E. MORIN
2014-07-14 10:09       ` Jörg Krause
2014-07-14 10:16         ` Yann E. MORIN

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=53BFE547.70600@posteo.de \
    --to=jkrause@posteo.de \
    --cc=buildroot@busybox.net \
    /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.