All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3] package/trinity: New package
@ 2014-10-08 15:12 Vicente Olivert Riera
  2014-10-08 19:39 ` Samuel Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2014-10-08 15:12 UTC (permalink / raw
  To: buildroot

Adding the Trinity Linux System call fuzz tester.

Fails to compile for uClibc because it tries to include 'execinfo.h'
which is only available if uClibc has been built with
UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this
package for uClibc by now until upstream fixes this problem.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/Config.in          |    1 +
 package/trinity/Config.in  |   14 ++++++++++++++
 package/trinity/trinity.mk |   31 +++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 0 deletions(-)
 create mode 100644 package/trinity/Config.in
 create mode 100644 package/trinity/trinity.mk

diff --git a/package/Config.in b/package/Config.in
index ea89c96..3b570ee 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -89,6 +89,7 @@ endif
 	source "package/sysprof/Config.in"
 	source "package/tinymembench/Config.in"
 	source "package/trace-cmd/Config.in"
+	source "package/trinity/Config.in"
 	source "package/valgrind/Config.in"
 	source "package/whetstone/Config.in"
 endmenu
diff --git a/package/trinity/Config.in b/package/trinity/Config.in
new file mode 100644
index 0000000..ea2c458
--- /dev/null
+++ b/package/trinity/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_TRINITY
+	bool "trinity"
+	# Fails to compile for uClibc because it tries to include 'execinfo.h'
+	# which is only available if uClibc has been built with
+	# UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this
+	# package for uClibc by now until upstream fixes this problem.
+	depends on !BR2_TOOLCHAIN_USES_UCLIBC
+	help
+	  A Linux System call fuzz tester
+
+	  http://codemonkey.org.uk/projects/trinity/
+
+comment "trinity is not supported for uClibc"
+	depends on BR2_TOOLCHAIN_USES_UCLIBC
diff --git a/package/trinity/trinity.mk b/package/trinity/trinity.mk
new file mode 100644
index 0000000..1e6c54a
--- /dev/null
+++ b/package/trinity/trinity.mk
@@ -0,0 +1,31 @@
+################################################################################
+#
+# trinity
+#
+################################################################################
+
+TRINITY_VERSION = c02034ec08d951cde3429905e64afe450cbc47db
+TRINITY_SITE = $(call github,kernelslacker,trinity,$(TRINITY_VERSION))
+TRINITY_LICENSE = GPLv2
+TRINITY_LICENSE_FILES = COPYING
+
+define TRINITY_CONFIGURE_CMDS
+	(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure.sh)
+endef
+
+define TRINITY_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define TRINITY_INSTALL_TARGET_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
+endef
+
+# Install helper scripts
+define TRINITY_INSTALL_HELPER_SCRIPTS
+	mkdir -p $(TARGET_DIR)/usr/libexec/trinity
+	cp -p $(@D)/scripts/* $(TARGET_DIR)/usr/libexec/trinity/
+endef
+TRINITY_POST_INSTALL_TARGET_HOOKS += TRINITY_INSTALL_HELPER_SCRIPTS
+
+$(eval $(generic-package))
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v3] package/trinity: New package
  2014-10-08 15:12 [Buildroot] [PATCH v3] package/trinity: New package Vicente Olivert Riera
@ 2014-10-08 19:39 ` Samuel Martin
  2014-10-09  8:08   ` Vicente Olivert Riera
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Martin @ 2014-10-08 19:39 UTC (permalink / raw
  To: buildroot

Hi Vincente,

On Wed, Oct 8, 2014 at 5:12 PM, Vicente Olivert Riera
<Vincent.Riera@imgtec.com> wrote:
> Adding the Trinity Linux System call fuzz tester.
>
> Fails to compile for uClibc because it tries to include 'execinfo.h'
> which is only available if uClibc has been built with
> UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this
> package for uClibc by now until upstream fixes this problem.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
>  package/Config.in          |    1 +
>  package/trinity/Config.in  |   14 ++++++++++++++
>  package/trinity/trinity.mk |   31 +++++++++++++++++++++++++++++++
>  3 files changed, 46 insertions(+), 0 deletions(-)
>  create mode 100644 package/trinity/Config.in
>  create mode 100644 package/trinity/trinity.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index ea89c96..3b570ee 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -89,6 +89,7 @@ endif
>         source "package/sysprof/Config.in"
>         source "package/tinymembench/Config.in"
>         source "package/trace-cmd/Config.in"
> +       source "package/trinity/Config.in"
>         source "package/valgrind/Config.in"
>         source "package/whetstone/Config.in"
>  endmenu
> diff --git a/package/trinity/Config.in b/package/trinity/Config.in
> new file mode 100644
> index 0000000..ea2c458
> --- /dev/null
> +++ b/package/trinity/Config.in
> @@ -0,0 +1,14 @@
> +config BR2_PACKAGE_TRINITY
> +       bool "trinity"
> +       # Fails to compile for uClibc because it tries to include 'execinfo.h'
> +       # which is only available if uClibc has been built with
> +       # UCLIBC_HAS_BACKTRACE=y (which it isn't by default). We disable this
> +       # package for uClibc by now until upstream fixes this problem.
> +       depends on !BR2_TOOLCHAIN_USES_UCLIBC
> +       help
> +         A Linux System call fuzz tester
> +
> +         http://codemonkey.org.uk/projects/trinity/
> +
> +comment "trinity is not supported for uClibc"
> +       depends on BR2_TOOLCHAIN_USES_UCLIBC

It looks like you can now bump the version to [1] and get rid of this
uclibc stuff ;-)

[1] https://github.com/kernelslacker/trinity/commit/1cc389fb22ca4a7447011a7a14bb526d44197255

Regards,

-- 
Samuel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v3] package/trinity: New package
  2014-10-08 19:39 ` Samuel Martin
@ 2014-10-09  8:08   ` Vicente Olivert Riera
  2014-10-09 15:20     ` Vicente Olivert Riera
  0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2014-10-09  8:08 UTC (permalink / raw
  To: buildroot

Dear Samuel Martin,

On 10/08/2014 08:39 PM, Samuel Martin wrote:
> It looks like you can now bump the version to [1] and get rid of this
> uclibc stuff ;-)
>
> [1] https://github.com/kernelslacker/trinity/commit/1cc389fb22ca4a7447011a7a14bb526d44197255
>
> Regards,

the upstream maintainer and me are working together to fix the problems 
with uClibc. That was the first problem and is now fixed. However, there 
are more problems after that one, so this package is not yet ready to be 
built for uClibc.

Regards,

-- 
Vicente Olivert Riera
Graduate Software Engineer, MIPS Processor IP
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH v3] package/trinity: New package
  2014-10-09  8:08   ` Vicente Olivert Riera
@ 2014-10-09 15:20     ` Vicente Olivert Riera
  0 siblings, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2014-10-09 15:20 UTC (permalink / raw
  To: buildroot

Dear all,

On 10/09/2014 09:08 AM, Vicente Olivert Riera wrote:
> Dear Samuel Martin,
>
> On 10/08/2014 08:39 PM, Samuel Martin wrote:
>> It looks like you can now bump the version to [1] and get rid of this
>> uclibc stuff ;-)
>>
>> [1]
>> https://github.com/kernelslacker/trinity/commit/1cc389fb22ca4a7447011a7a14bb526d44197255
>>
>>
>> Regards,
>
> the upstream maintainer and me are working together to fix the problems
> with uClibc. That was the first problem and is now fixed. However, there
> are more problems after that one, so this package is not yet ready to be
> built for uClibc.
>
> Regards,
>

patch v4 submitted to set the version to the latest upstream commit.

   http://patchwork.ozlabs.org/patch/398071/

All the uClibc issues have been fixed upstream and should be fine now.

Regards,

-- 
Vicente Olivert Riera
Graduate Software Engineer, MIPS Processor IP
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-09 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 15:12 [Buildroot] [PATCH v3] package/trinity: New package Vicente Olivert Riera
2014-10-08 19:39 ` Samuel Martin
2014-10-09  8:08   ` Vicente Olivert Riera
2014-10-09 15:20     ` Vicente Olivert Riera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.