From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: James Knight <james.d.knight@live.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2] package/swaybg: new package
Date: Mon, 31 Jul 2023 23:17:34 +0200 [thread overview]
Message-ID: <20230731231734.5d0c439b@windsurf> (raw)
In-Reply-To: <SN4P221MB06821CB27E755AE089BB76D9A0609@SN4P221MB0682.NAMP221.PROD.OUTLOOK.COM>
Hello James,
On Thu, 20 Apr 2023 21:42:34 -0400
James Knight <james.d.knight@live.com> wrote:
> Provides the `swaybg` utility, which is commonly used with `sway` to
> manage background images/color configuration for the compositor.
>
> Signed-off-by: James Knight <james.d.knight@live.com>
Thanks, I've applied, with minor tweaks.
> ---
> package/Config.in | 1 +
> package/swaybg/Config.in | 13 +++++++++++++
> package/swaybg/swaybg.hash | 3 +++
> package/swaybg/swaybg.mk | 35 +++++++++++++++++++++++++++++++++++
> 4 files changed, 52 insertions(+)
You forgot an entry in the DEVELOPERS file.
> diff --git a/package/swaybg/Config.in b/package/swaybg/Config.in
> new file mode 100644
> index 0000000000000000000000000000000000000000..63aa8cdb6a7f72c09644d47238d8705da19329d1
> --- /dev/null
> +++ b/package/swaybg/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_SWAYBG
> + bool "swaybg"
> + default y if BR2_PACKAGE_SWAY
We normally don't do this, but I kind of agree here it makes sense, so
I kept it. Let's see if other maintainers disagree :-)
> + depends on !BR2_STATIC_LIBS # wayland -> dlfcn.h
> + depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
> + select BR2_PACKAGE_CAIRO
> + select BR2_PACKAGE_CAIRO_PNG
> + select BR2_PACKAGE_WAYLAND
> + select BR2_PACKAGE_WAYLAND_PROTOCOLS
> + help
> + Wallpaper tool for Wayland compositors.
> +
> + https://github.com/swaywm/swaybg
> index 0000000000000000000000000000000000000000..4cb738286fb9ec6651754c0a591f5c1cc60b705d
> --- /dev/null
> +++ b/package/swaybg/swaybg.mk
> @@ -0,0 +1,35 @@
> +################################################################################
> +#
> +# swaybg
> +#
> +################################################################################
> +
> +SWAYBG_VERSION = 1.2.0
> +SWAYBG_SITE = https://github.com/swaywm/swaybg/releases/download/v$(SWAYBG_VERSION)
> +SWAYBG_LICENSE = MIT
> +SWAYBG_LICENSE_FILES = LICENSE
> +
> +SWAYBG_DEPENDENCIES = \
> + cairo \
> + wayland \
> + wayland-protocols
> +
> +SWAYBG_CONF_OPTS = \
> + -Dman-pages=disabled
> +
> +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
> +# swaybg does not build against uClibc, swaybg uses POSIX defines to indicate
> +# support for `strdup`, which is not enough for uClibc to provide a declaration
> +# of `strdup`. The implicit use of the function causes a build failure. To
> +# avoid this, turn off the "warnings are errors" flag.
> +SWAYBG_CONF_OPTS += -Dwerror=false
I was not able to reproduce the uClibc build issues, and in general we
don't try to make Werror disabling conditional on the exact situation
where they happen, and we simply disable Werror unconditionally for the
package, which is what I did here.
Applied with those tweaks. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-07-31 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-21 1:42 [Buildroot] [PATCH v2] package/swaybg: new package James Knight
2023-07-31 21:17 ` Thomas Petazzoni via buildroot [this message]
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=20230731231734.5d0c439b@windsurf \
--to=buildroot@buildroot.org \
--cc=james.d.knight@live.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox