Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/next v3 2/4] package/polkit: bump to version 0.116
Date: Mon, 25 Nov 2019 21:33:40 +0100	[thread overview]
Message-ID: <20191125213340.0ae2291f@windsurf> (raw)
In-Reply-To: <20191125175031.4086339-3-aduskett@gmail.com>

Hello,

On Mon, 25 Nov 2019 09:50:29 -0800
aduskett at gmail.com wrote:

> diff --git a/package/polkit/Config.in b/package/polkit/Config.in
> index ac17cb4dc3..7ba6dad993 100644
> --- a/package/polkit/Config.in
> +++ b/package/polkit/Config.in
> @@ -1,11 +1,18 @@
>  config BR2_PACKAGE_POLKIT
>  	bool "polkit"
> +	depends on BR2_INSTALL_LIBSTDCPP # spidermonkey
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # spidermonkey

This one is no longer needed, as it is now implied by
BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS.

> +	depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS # spidermonkey
> +	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # spidermonkey
> +	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # spidermonkey
>  	depends on BR2_USE_MMU # libglib2
> -	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
> -	depends on BR2_TOOLCHAIN_USES_GLIBC
>  	depends on BR2_USE_WCHAR # libglib2
> -	select BR2_PACKAGE_LIBGLIB2
> +	depends on !BR2_STATIC_LIBS # spidermonkey
> +	depends on !BR2_TOOLCHAIN_USES_UCLIBC # spidermonkey

All those new dependencies need to be propagated to places where
"select BR2_PACKAGE_POLKIT" is used:

package/systemd/Config.in:      select BR2_PACKAGE_POLKIT
package/udisks/Config.in:       select BR2_PACKAGE_POLKIT

> +	select BR2_PACKAGE_DBUS # runtime

So D-Bus is a runtime dependency.

> diff --git a/package/polkit/S50polkit b/package/polkit/S50polkit
> new file mode 100644
> index 0000000000..69b71ee500
> --- /dev/null
> +++ b/package/polkit/S50polkit
> @@ -0,0 +1,16 @@
> +#!/bin/sh
> +#
> +# Start polkitd
> +#
> +
> +umask 077
> +
> +case "$1" in
> +  start)
> +  echo "Starting polkitd..."
> +  /usr/lib/polkit-1/polkitd --no-debug &
> +  ;;
> +  *)
> +  echo "Usage: $0 {start}"
> +  exit 1
> +esac

Please provide a complete startup script, which follows the template at
package/busybox/S01syslogd, and uses start-stop-daemon. Since there was
no startup script so far, I would suggest to add it in a separate
commit. Ditto for the systemd unit. They are independent from the
version bump.

>  POLKIT_INSTALL_STAGING = YES
>  
> -POLKIT_DEPENDENCIES = libglib2 host-intltool expat
> +POLKIT_DEPENDENCIES = libglib2 host-intltool expat dbus spidermonkey

So D-Bus is a build time dependency, or a runtime-dependency ?

>  
>  # We could also support --with-authfw=pam
>  POLKIT_CONF_OPTS = \
>  	--with-authfw=shadow \
>  	--with-os-type=unknown \
>  	--disable-man-pages \
> -	--disable-examples
> +	--disable-examples \
> +	--disable-libelogind \
> +	--disable-libsystemd-login
> +
> +define POLKIT_USERS
> +	polkitd -1 polkitd -1 * /usr/lib/polkit-1 /bin/sh - Polkit Daemon
> +endef

Is this related to the version bump ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-11-25 20:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25 17:50 [Buildroot] [PATCH/next v3 0/4] spidermonkey: new package aduskett at gmail.com
2019-11-25 17:50 ` [Buildroot] [PATCH/next v3 1/4] " aduskett at gmail.com
2019-11-25 20:30   ` Thomas Petazzoni
2019-11-25 17:50 ` [Buildroot] [PATCH/next v3 2/4] package/polkit: bump to version 0.116 aduskett at gmail.com
2019-11-25 20:33   ` Thomas Petazzoni [this message]
2019-11-25 17:50 ` [Buildroot] [PATCH/next v3 3/4] package/polkit: support different authentication frameworks aduskett at gmail.com
2019-11-25 17:50 ` [Buildroot] [PATCH/next v3 4/4] package/polkit: enable systemd login support aduskett at gmail.com
2019-11-25 20:35   ` Thomas Petazzoni

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=20191125213340.0ae2291f@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox