[Buildroot] [PATCH 31/49 v2] package/corosync: new package

Arnout Vandecappelle arnout at mind.be
Sat Sep 23 16:58:06 UTC 2017



On 09-09-17 23:39, Yann E. MORIN wrote:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> ---
>  package/Config.in              |  1 +
>  package/corosync/Config.in     | 20 ++++++++++++++++++
>  package/corosync/corosync.hash |  2 ++
>  package/corosync/corosync.mk   | 47 ++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 70 insertions(+)
>  create mode 100644 package/corosync/Config.in
>  create mode 100644 package/corosync/corosync.hash
>  create mode 100644 package/corosync/corosync.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index a6c63a0ad9..104acbb3ad 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1405,6 +1405,7 @@ menu "Other"
>  	source "package/boost/Config.in"
>  	source "package/clapack/Config.in"
>  	source "package/classpath/Config.in"
> +	source "package/corosync/Config.in"
>  	source "package/cppcms/Config.in"
>  	source "package/cracklib/Config.in"
>  	source "package/dawgdic/Config.in"
> diff --git a/package/corosync/Config.in b/package/corosync/Config.in
> new file mode 100644
> index 0000000000..1dda488109
> --- /dev/null
> +++ b/package/corosync/Config.in
> @@ -0,0 +1,20 @@
> +config BR2_PACKAGE_COROSYNC
> +	bool "corosync"
> +	depends on BR2_USE_MMU # fork()
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnsp

 Put arch deps in the beginning.

> +	depends on !BR2_STATIC_LIBS # libnss
> +	select BR2_PACKAGE_LIBNSS
> +	select BR2_PACKAGE_LIBQB
> +	select BR2_PACKAGE_ZLIB
> +	help
> +	  The Corosync Cluster Engine is a Group Communication System
> +	  with additional features for implementing high availability
> +	  within applications.
> +
> +	  https://corosync.github.io/corosync/
> +
> +comment "corosync needs a toolchain w/ threads, dunamic library"

 dynamic

> +	depends on BR2_USE_MMU
> +	depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/corosync/corosync.hash b/package/corosync/corosync.hash
> new file mode 100644
> index 0000000000..5c009dee19
> --- /dev/null
> +++ b/package/corosync/corosync.hash
> @@ -0,0 +1,2 @@
> +# sha256 locally computed
> +sha256  0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63  corosync-v2.4.2.tar.gz
> diff --git a/package/corosync/corosync.mk b/package/corosync/corosync.mk
> new file mode 100644
> index 0000000000..865f5e0f8d
> --- /dev/null
> +++ b/package/corosync/corosync.mk
> @@ -0,0 +1,47 @@
> +################################################################################
> +#
> +# corosync
> +#
> +################################################################################
> +
> +COROSYNC_VERSION = v2.4.2
> +COROSYNC_SITE = $(call github,corosync,corosync,$(COROSYNC_VERSION))

 Anything wrong with the official
http://build.clusterlabs.org/corosync/releases/corosync-2.4.2.tar.gz download
location?

> +
> +COROSYNC_LICENSE = BSD-3c
> +COROSYNC_LICENSE_FILES = LICENSE
> +
> +COROSYNC_DEPENDENCIES = libnss libqb zlib
> +COROSYNC_AUTORECONF = YES
> +COROSYNC_INSTALL_STAGING = YES
> +
> +define COROSYNC_M4
> +	$(INSTALL) -d -m 0755 $(@D)/m4
> +endef
> +COROSYNC_POST_EXTRACT_HOOKS += COROSYNC_M4
> +
> +# Don't build HTML manpages
> +COROSYNC_CONF_ENV = ac_cv_prog_GROFF=
> +
> +COROSYNC_CONF_OPTS = \
> +	--disable-fatal-warnings \
> +	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
> +	--enable-secure-build \
> +	--disable-user-flags \
> +	--disable-coverage \
> +	--disable-small-memory-footprint \
> +	--disable-dbus \
> +	--disable-testagents \
> +	--disable-rdma \
> +	--disable-monitoring \
> +	--disable-watchdog \
> +	--disable-augeas \
> +	--disable-systemd \

 Hm, below you add a --enable-systemd...

> +	--disable-upstart \
> +	$(if $(BR2_INIT_SYSTEMD),--enable-systemd,--disable-systemd) \

 No dependency on systemd needed? It just installs units?

 Regards,
 Arnout

> +	--disable-upstart \
> +	--disable-snmp \
> +	--disable-xmlconf \
> +	--disable-qdevices \
> +	--disable-qnet
> +
> +$(eval $(autotools-package))
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list