diff options
author | Maxime Hadjinlian <maxime.hadjinlian@gmail.com> | 2014-10-19 19:21:01 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-10-26 16:57:27 +0100 |
commit | cfb4d2451ba0feac9e5e050319e542e128b3aec9 (patch) | |
tree | 58561e0bb8148901e853c0139223c9fe04c639da /package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch | |
parent | a732c545246d4066d8eb389ac17c6983c0b4e20e (diff) | |
download | buildroot-cfb4d2451ba0feac9e5e050319e542e128b3aec9.tar.gz buildroot-cfb4d2451ba0feac9e5e050319e542e128b3aec9.zip |
libevent: Use github call & fix patch
We want to use the github helper since there is not a specific releases
tarball that we can download, as specified in the manual.
This tarball is generated from the tag, which doesn't contains the
autotools generated files, we then need to use AUTORECONF.
We want to use the github helper anyway as the current URL use an old
GitHub feature which was called 'Download' where you could upload files
along your repositories, theses files were not related to your tags.
This features has been replaced with the 'Release' option where you can
create a release from a git tag. But these tarball are generated from
the sources and they don't contains all the generated autotools file.
Since the old URL scheme can be deprecated at any time, we want to
switch to the new URL scheme, which in the case of libevent, implies
having to do an AUTORECONF.
The patch that was already present is updated to apply against
Makefile.am instead of Makefile.in
The second patch is backported from upstream to remove the use of
$(top_src_dirs) which makes current autotools error out.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch')
-rw-r--r-- | package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch b/package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch new file mode 100644 index 0000000000..54f03cc57a --- /dev/null +++ b/package/libevent/0002-Avoid-using-top_srcdir-in-TESTS.patch @@ -0,0 +1,71 @@ +From 366165fc19e862d08ff51ee2bbbff253fc234dd1 Mon Sep 17 00:00:00 2001 +From: Nick Mathewson <nickm@torproject.org> +Date: Fri, 8 Feb 2013 22:10:05 -0500 +Subject: [PATCH 2/2] Avoid using $(top_srcdir) in TESTS. + +Newer automakes don't like this. + +Signed-off-by: Nick Mathewson <nickm@torproject.org> +---- +Patch backported from upstream: +https://github.com/libevent/libevent/commit/2863c837007c9f28ae542663a6098c91e704b3ca.patch + +Slight modifications to test/Makefile.am + +Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> +--- + Makefile.am | 4 +++- + test/Makefile.am | 10 +++++++++- + 2 files changed, 12 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index dc90359..c34576d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,6 +128,8 @@ endif + + SUBDIRS = . include sample + ++DISTCLEANFILES= ++ + if BUILD_WIN32 + + SYS_LIBS = -lws2_32 -lshell32 -ladvapi32 +@@ -239,5 +241,5 @@ doxygen: FORCE + doxygen $(srcdir)/Doxyfile + FORCE: + +-DISTCLEANFILES = *~ libevent.pc ./include/event2/event-config.h ++DISTCLEANFILES += *~ libevent.pc ./include/event2/event-config.h + +diff --git a/test/Makefile.am b/test/Makefile.am +index b10c41a..e2f4f4e 100644 +--- a/test/Makefile.am ++++ b/test/Makefile.am +@@ -5,6 +5,7 @@ + # See LICENSE for copying information. + + AUTOMAKE_OPTIONS = foreign ++DISTCLEANFILES= + + AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL + +@@ -19,7 +20,14 @@ endif + EXTRA_PROGRAMS = regress + noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h + +-TESTS = $(top_srcdir)/test/test.sh ++# We need to copy this file, since automake doesn't want us to use top_srcdir ++# in TESTS. ++TESTS = test/test-script.sh ++ ++test/test-script.sh: test/test.sh ++ cp $< $@ ++ ++DISTCLEANFILES += test/test-script.s + + BUILT_SOURCES = + if BUILD_REGRESS +-- +2.1.1 + |