From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH v4 2/9] at-spi2-core: new package
Date: Fri, 15 Jun 2018 21:45:38 +0200 [thread overview]
Message-ID: <20180615214538.54851060@windsurf> (raw)
In-Reply-To: <20180614224820.27126-3-joseph.kogut@gmail.com>
Hello,
On Thu, 14 Jun 2018 15:48:13 -0700, Joseph Kogut wrote:
> diff --git a/package/at-spi2-core/Config.in b/package/at-spi2-core/Config.in
> new file mode 100644
> index 0000000000..9c60c51792
> --- /dev/null
> +++ b/package/at-spi2-core/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_AT_SPI2_CORE
> + bool "at-spi2-core"
> + select BR2_PACKAGE_DBUS
> + select BR2_PACKAGE_XLIB_LIBXTST
Your package also uses libglib2 in its DEPENDENCIES, so you should have
a "select BR2_PACKAGE_LIBGLIB2" here.
In addition, you should replicate the dependencies of the options
you're selecting. So, something like:
depends on BR2_PACKAGE_XORG7 # xlib-libxtst
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
depends on BR2_USE_MMU # dbus, libglib2
depends on BR2_USE_WCHAR # libglib2
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_XLIB_LIBXTST
> + help
> + The At-Spi2 Core package is a part of the GNOME Accessibility Project.
> + It provides a Service Provider Interface for the Assistive Technologies
> + available on the GNOME platform and a library against which
> + applications can be linked.
Wrap to 72 characters please, and add the upstream URL of the project.
Essentially, please run your new packages through ./utils/check-package
to spot such coding style issues.
You'll also need to add Config.in comments to help the user with the
dependencies. See all other packages in Buildroot.
> diff --git a/package/at-spi2-core/at-spi2-core.hash b/package/at-spi2-core/at-spi2-core.hash
> new file mode 100644
> index 0000000000..e792cc0e0a
> --- /dev/null
> +++ b/package/at-spi2-core/at-spi2-core.hash
> @@ -0,0 +1,4 @@
> +# locally calculated
> +sha256 42a2487ab11ce43c288e73b2668ef8b1ab40a0e2b4f94e80fca04ad27b6f1c87 at-spi2-core-2.28.0.tar.xz
> +sha256 c6105b34ab6829ff5c70eba234f40053215fa9f8383ced271b0e370a1923624b COPYING
> +
Unneeded empty line.
> diff --git a/package/at-spi2-core/at-spi2-core.mk b/package/at-spi2-core/at-spi2-core.mk
> new file mode 100644
> index 0000000000..88800e2ce7
> --- /dev/null
> +++ b/package/at-spi2-core/at-spi2-core.mk
> @@ -0,0 +1,46 @@
> +################################################################################
> +#
> +# at-spi2-core
> +#
> +################################################################################
> +
> +AT_SPI2_CORE_VERSION_MAJOR = 2.28
> +AT_SPI2_CORE_VERSION = $(AT_SPI2_CORE_VERSION_MAJOR).0
> +AT_SPI2_CORE_SOURCE = at-spi2-core-$(AT_SPI2_CORE_VERSION).tar.xz
> +AT_SPI2_CORE_SITE = http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/$(AT_SPI2_CORE_VERSION_MAJOR)
> +AT_SPI2_CORE_LICENSE = LGPL-2.0+
> +AT_SPI2_CORE_LICENSE_FILES = COPYING
> +AT_SPI2_CORE_INSTALL_STAGING = YES
> +AT_SPI2_CORE_DEPENDENCIES = host-meson host-pkgconf dbus libglib2 xlib_libXtst
> +
> +AT_SPI2_CORE_MESON_OPTS += \
> + --prefix=/usr \
> + --libdir=/usr/lib \
> + --sysconfdir=/etc \
> + --buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
> + --cross-file=$(HOST_DIR)/etc/meson/cross-compilation.conf
> +
> +AT_SPI2_CORE_NINJA_OPTS = $(if $(VERBOSE),-v) -j$(PARALLEL_JOBS)
> +
> +define AT_SPI2_CORE_CONFIGURE_CMDS
> + rm -rf $(@D)/build
> + mkdir -p $(@D)/build
> + $(TARGET_MAKE_ENV) meson $(AT_SPI2_CORE_MESON_OPTS) $(@D) $(@D)/build
> +endef
> +
> +define AT_SPI2_CORE_BUILD_CMDS
> + $(TARGET_MAKE_ENV) ninja $(AT_SPI2_CORE_NINJA_OPTS) -C $(@D)/build
> +endef
> +
> +define AT_SPI2_CORE_INSTALL_STAGING_CMDS
> + $(TARGET_MAKE_ENV) DESTDIR=$(STAGING_DIR) \
> + ninja $(AT_SPI2_CORE_NINJA_OPTS) -C $(@D)/build install
> +endef
> +
> +define AT_SPI2_CORE_INSTALL_TARGET_CMDS
> + $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) \
> + ninja $(AT_SPI2_CORE_NINJA_OPTS) -C $(@D)/build install
> +endef
> +
> +$(eval $(generic-package))
Please use meson-package instead, this will greatly simplify this
package. See
http://nightly.buildroot.org/#_infrastructure_for_meson_based_packages
for details.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-06-15 19:45 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 22:59 [Buildroot] [RFC PATCH 0/8] chromium: new package Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 1/8] atk: bump to version 2.25.2 Joseph Kogut
2018-06-09 17:36 ` Thomas Petazzoni
2018-06-09 18:19 ` Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 2/8] at-spi2-core: new package Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 3/8] at-spi2-atk: " Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 4/8] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 5/8] llvm: add config to build backend for host arch Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 6/8] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-12 14:34 ` Valentin Korenblit
2018-06-12 17:07 ` Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 7/8] clang: " Joseph Kogut
2018-06-08 22:59 ` [Buildroot] [RFC PATCH 8/8] chromium: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 0/9] " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 1/9] atk: bump to version 2.25.2 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 2/9] at-spi2-core: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 3/9] at-spi2-atk: " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 7/9] clang: " Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 8/9] lld: new package Joseph Kogut
2018-06-10 20:44 ` [Buildroot] [RFC PATCH v2 9/9] chromium: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v2 0/9] " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 2/9] at-spi2-core: new package Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 3/9] at-spi2-atk: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-11 9:06 ` Valentin Korenblit
2018-06-11 16:24 ` Joseph Kogut
2018-06-11 17:54 ` Joseph Kogut
2018-06-12 13:46 ` Valentin Korenblit
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 7/9] clang: " Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 8/9] lld: new package Joseph Kogut
2018-06-10 20:54 ` [Buildroot] [RFC PATCH v3 9/9] chromium: " Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 0/9] " Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 1/9] atk: bump to version 2.28.1 Joseph Kogut
2018-06-15 19:38 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 2/9] at-spi2-core: new package Joseph Kogut
2018-06-15 19:45 ` Thomas Petazzoni [this message]
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 3/9] at-spi2-atk: " Joseph Kogut
2018-06-15 19:47 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 4/9] libgtk3: remove patch to disable atk-bridge support Joseph Kogut
2018-06-15 19:53 ` Thomas Petazzoni
2018-06-20 18:05 ` Joseph Kogut
2018-06-21 8:48 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 5/9] llvm: add config to build backend for host arch Joseph Kogut
2018-06-15 20:10 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 6/9] llvm: bump to version 6.0.0 Joseph Kogut
2018-06-15 20:20 ` Thomas Petazzoni
2018-06-15 20:44 ` Joseph Kogut
2018-06-15 20:51 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 7/9] clang: " Joseph Kogut
2018-06-15 20:51 ` Thomas Petazzoni
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 8/9] lld: new package Joseph Kogut
2018-06-15 21:01 ` Thomas Petazzoni
2018-06-20 19:14 ` Joseph Kogut
2018-06-21 12:45 ` Thomas Petazzoni
2018-06-21 23:32 ` Joseph Kogut
2018-06-14 22:48 ` [Buildroot] [RFC PATCH v4 9/9] chromium: " Joseph Kogut
2018-06-20 20:57 ` Matthew Weber
2018-06-20 23:07 ` Joseph Kogut
2018-06-21 2:29 ` Matthew Weber
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=20180615214538.54851060@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