Skip to contentSkip to conversation

package/ace: new package

PATCH Superseded Matt Weber 3 participants 3 messages Apr 12, 2021 – Apr 13, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 package/ace: new package

ACE is an open-source framework that provides many components and patterns for developing high-performance, distributed real-time and embedded systems. It provides powerful, yet efficient abstractions for sockets, demultiplexing loops, threads, synchronization primitives.

---
 DEVELOPERS            |  1 +
 package/Config.in     |  1 +
 package/ace/Config.in | 10 +++++++
 package/ace/ace.hash  |  3 +++
 package/ace/ace.mk    | 63 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 78 insertions(+)
 create mode 100644 package/ace/Config.in
 create mode 100644 package/ace/ace.hash
 create mode 100644 package/ace/ace.mk
DEVELOPERS +1 -0
index 5c36fc413e..02553a76b0 100644
@@ -1722,6 +1722,7 @@ F:	board/qemu/ppc64-e5500/
 F:	configs/freescale_p*
 F:	configs/freescale_t*
 F:	configs/qemu_ppc64_e5500_defconfig
+F:	package/ace/
 F:	package/argp-standalone/
 F:	package/aufs/
 F:	package/aufs-util/
package/Config.in +1 -0
index f47ee9f1c5..373d85f28f 100644
@@ -1851,6 +1851,7 @@ menu "Networking"
 endmenu
 
 menu "Other"
+	source "package/ace/Config.in"
 	source "package/appstream-glib/Config.in"
 	source "package/apr/Config.in"
 	source "package/apr-util/Config.in"
package/ace/Config.in new file +10 -0
new file mode 100644
index 0000000000..7755327b21
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_ACE
+	bool "ace"
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_OPENSSL
+	help
+	  The ADAPTIVE Communication Environment (ACE(TM))
+	  An OO Network Programming Toolkit in C++.
+
+	  See http://www.dre.vanderbilt.edu/~schmidt/ACE.html
package/ace/ace.hash new file +3 -0
new file mode 100644
index 0000000000..92fd42e131
@@ -0,0 +1,3 @@
+# Locally Computed:
+sha256  a28339750620c70cd29a8a7088a4bc6ebaf1ff7ba667498a0279ac97f0e32e01  ACE-7.0.1.tar.gz
+sha256  687bf9d16119e0caf6fb5c18214928fd6ea0da10df91e906255b7613af8061d8  COPYING
package/ace/ace.mk new file +63 -0

63 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/ace: new package

Hello Matt,

Thanks for this submission. Please see below some comments.

package/ace/Config.in line 4

Quoted 10 lines · On Mon, 12 Apr 2021 11:55:24 -0500 Matt Weber…
package/ace/Config.in new file +4 -0
new file mode 100644
index 0000000000..7755327b21
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_ACE
+	bool "ace"
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on !BR2_STATIC_LIBS

These means a Config.in comment is needed.

package/ace/Config.in line 10

Quoted 6 lines
package/ace/Config.in new file +6 -0
+	select BR2_PACKAGE_OPENSSL
+	help
+	  The ADAPTIVE Communication Environment (ACE(TM))
+	  An OO Network Programming Toolkit in C++.
+
+	  See http://www.dre.vanderbilt.edu/~schmidt/ACE.html

Drop the "See " at the beginning, we want the last thing in the help text to be just the URL of upstream project home page.

Quoted 6 lines
package/ace/ace.mk new file +0 -0
new file mode 100644
index 0000000000..80d50665d9

package/ace/ace.mk line 10

Quoted 10 lines
package/ace/ace.mk new file +10 -0
@@ -0,0 +1,63 @@
+################################################################################
+#
+# ace
+#
+################################################################################
+
+ACE_VERSION=7.0.1
+ACE_SOURCE=ACE-$(ACE_VERSION).tar.gz
+ACE_SITE=http://download.dre.vanderbilt.edu/previous_versions
+ACE_DEPENDENCIES=openssl

Spaces around = sign. I think this is reported by "make check-package".

package/ace/ace.mk line 11

Quoted 1 line
package/ace/ace.mk new file +1 -0
+ACE_LICENSE = DOC

I checked, this is indeed a valid SPDX identifier. Interesting special license...

package/ace/ace.mk line 13

Quoted 2 lines
package/ace/ace.mk new file +2 -0
+ACE_LICENSE_FILES = COPYING
+ACE_INSTALL_STAGING=YES

Spaces around =.

Quoted 6 lines
package/ace/ace.mk new file +6 -0
+ACE_CPE_ID_VENDOR = vanderbilt
+ACE_CPE_ID_PRODUCT = adaptive_communication_environment
+
+# configure the target build
+# refer: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
+define ACE_CONFIGURE_CMDS

package/ace/ace.mk line 29

Quoted 10 lines
package/ace/ace.mk new file +10 -0
+	# create a config file
+	echo ' #include "ace/config-linux.h" ' > $(@D)/ace/config.h
+	# fix link error with ARM EABI tools
+	# http://list.isis.vanderbilt.edu/pipermail/ace-users/2008-January/002742.html
+	echo 'no_hidden_visibility = 1' > $(@D)/include/makeinclude/platform_macros.GNU
+	# create a platform macros file
+	echo 'include $(@D)/include/makeinclude/platform_linux.GNU' \
+		>> $(@D)/include/makeinclude/platform_macros.GNU
+	# enable ssl
+	echo 'ssl = 1' >> $(@D)/include/makeinclude/platform_macros.GNU

Does that mean OpenSSL is an optional dependency ? :-)

package/ace/ace.mk line 33

Quoted 4 lines
package/ace/ace.mk new file +4 -0
+	# disable RPATH
+	echo 'install_rpath = 0' >> $(@D)/include/makeinclude/platform_macros.GNU
+	# set the installation prefix
+	echo 'INSTALL_PREFIX = /usr' >> $(@D)/include/makeinclude/platform_macros.GNU

Why not just provide platform_macros.GNU in package/ace/ instead ? All values are hardcoded at least as it is now.

The EABI stuff from 2008 is odd though...

package/ace/ace.mk line 44

Quoted 11 lines
package/ace/ace.mk new file +11 -0
+endef
+
+# Note: We are excluding examples, apps and tests
+# Only compiling ACE libraries (no TAO)
+ACE_LIBARIES = ace ace/SSL ACEXML Kokyu netsvcs protocols/ace
+
+# compile ace,ACEXML, Kokyu, netsvcs & protocols/ace
+define ACE_BUILD_CMDS
+	for dir in $(ACE_LIBARIES) ; do \
+		$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" all || exit 1 ; \
+	done

Use a make $(foreach ...) loop.

package/ace/ace.mk line 52

Quoted 8 lines
package/ace/ace.mk new file +8 -0
+endef
+
+define  ACE_INSTALL_STAGING_CMDS
+	# create below folder required by ACE makefiles during install
+	mkdir -p $(STAGING_DIR)/usr/share/ace
+	for dir in $(ACE_LIBARIES) ; do \
+		$(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" DESTDIR=$(STAGING_DIR) install || exit 1 ; \
+	done

Same a make $(foreach ...) loop. Will avoid the need for the || exit 1

package/ace/ace.mk line 60

Quoted 8 lines
package/ace/ace.mk new file +8 -0
+endef
+
+define  ACE_INSTALL_TARGET_CMDS
+	# create below folder required by ACE makefiles during install
+	mkdir -p $(TARGET_DIR)/usr/share/ace
+	for dir in $(ACE_LIBARIES) ; do \
+		$(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" DESTDIR=$(TARGET_DIR) install || exit 1 ; \
+	done

Well, same.

Other than that, looks pretty straightforward.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/ace: new package

. Thomas,

Quoted 41 lines · Thomas Petazzoni

Hello Matt,

Thanks for this submission. Please see below some comments.

package/ace/Config.in line 4

Quoted 10 lines · On Mon, 12 Apr 2021 11:55:24 -0500 Matt Weber…
package/ace/Config.in new file +4 -0
new file mode 100644
index 0000000000..7755327b21
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_ACE
+     bool "ace"
+     depends on BR2_TOOLCHAIN_USES_GLIBC
+     depends on !BR2_STATIC_LIBS

These means a Config.in comment is needed.

package/ace/Config.in line 10

Quoted 6 lines
package/ace/Config.in new file +6 -0
+     select BR2_PACKAGE_OPENSSL
+     help
+       The ADAPTIVE Communication Environment (ACE(TM))
+       An OO Network Programming Toolkit in C++.
+
+       See http://www.dre.vanderbilt.edu/~schmidt/ACE.html

Drop the "See " at the beginning, we want the last thing in the help text to be just the URL of upstream project home page.

Quoted 10 lines
package/ace/ace.mk new file +4 -0
new file mode 100644
index 0000000000..80d50665d9
@@ -0,0 +1,63 @@
+################################################################################
+#
+# ace
+#
Quoted 8 lines

package/ace/ace.mk line 10

Quoted 6 lines
package/ace/ace.mk new file +6 -0
+################################################################################
+
+ACE_VERSION=7.0.1
+ACE_SOURCE=ACE-$(ACE_VERSION).tar.gz
+ACE_SITE=http://download.dre.vanderbilt.edu/previous_versions
+ACE_DEPENDENCIES=openssl

Spaces around = sign. I think this is reported by "make check-package".

It looks like "make check-package"did not catch it but we've cleaned
those assignments + other items up in
http://patchwork.ozlabs.org/project/buildroot/patch/20210413134139.13281-1-matthew.weber at rockwellcollins.com/

Regards,
Matt