[Forensics-changes] [yara] 01/05: Add patch to improve handling of generated files (Closes: #866709)
Hilko Bengen
bengen at moszumanska.debian.org
Wed Jul 5 17:04:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository yara.
commit 06f416c15a09fb80af7724db9ac46ff7019605b2
Author: Hilko Bengen <bengen at debian.org>
Date: Sat Jul 1 13:21:04 2017 +0200
Add patch to improve handling of generated files (Closes: #866709)
---
...dling-of-intermediate-files-generated-by-.patch | 48 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 49 insertions(+)
diff --git a/debian/patches/0001-Improve-handling-of-intermediate-files-generated-by-.patch b/debian/patches/0001-Improve-handling-of-intermediate-files-generated-by-.patch
new file mode 100644
index 0000000..58ff55f
--- /dev/null
+++ b/debian/patches/0001-Improve-handling-of-intermediate-files-generated-by-.patch
@@ -0,0 +1,48 @@
+From: Hilko Bengen <bengen at debian.org>
+Date: Sat, 1 Jul 2017 13:16:23 +0200
+Subject: Improve handling of intermediate files generated by lex, yacc.
+
+The Automake manual recommends not to put intermediate files into
+SOURCES. The *.c files go into BUILT_SOURCES to ensure that those
+files get built before everything else.
+---
+ libyara/Makefile.am | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/libyara/Makefile.am b/libyara/Makefile.am
+index 638c364..ecc43da 100644
+--- a/libyara/Makefile.am
++++ b/libyara/Makefile.am
+@@ -82,6 +82,14 @@ yarainclude_HEADERS = \
+
+ lib_LTLIBRARIES = libyara.la
+
++BUILT_SOURCES = \
++ lexer.c \
++ hex_lexer.c \
++ re_lexer.c \
++ grammar.c \
++ hex_grammar.c \
++ re_grammar.c
++
+ libyara_la_LDFLAGS = -version-number 3:6:2
+
+ libyara_la_SOURCES = \
+@@ -100,9 +108,7 @@ libyara_la_SOURCES = \
+ hash.c \
+ hash.h \
+ hex_grammar.y \
+- hex_lexer.h \
+ hex_lexer.l \
+- lexer.h \
+ lexer.l \
+ libyara.c \
+ mem.c \
+@@ -119,7 +125,6 @@ libyara_la_SOURCES = \
+ re.c \
+ re.h \
+ re_grammar.y \
+- re_lexer.h \
+ re_lexer.l \
+ rules.c \
+ scan.c \
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..af77149
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Improve-handling-of-intermediate-files-generated-by-.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list