[jflex] 05/05: Run jflex and cup before the actual build to fix a compilation error.

Markus Koschany apo at moszumanska.debian.org
Thu Jul 28 04:29:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository jflex.

commit ba71bc415796e42a527a7a401c339304545d88ad
Author: Markus Koschany <apo at debian.org>
Date:   Thu Jul 28 06:10:15 2016 +0200

    Run jflex and cup before the actual build to fix a compilation error.
    
    JFlex normally requires an older version for building itself (really ugly
    stuff) and this prevents a FTBFS
---
 debian/changelog | 1 +
 debian/rules     | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 99d17f9..3a396ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ jflex (1.6.1-2) unstable; urgency=medium
   * Drop LexScan.flex.patch. No longer necessary with version 1.6.1 of jflex
     which is available in the archive now.
   * Update build.patch for compilation with jflex 1.6.1. (Closes: #832645)
+  * Run jflex and cup before the actual build to fix a compilation error.
 
  -- Markus Koschany <apo at debian.org>  Thu, 28 Jul 2016 06:01:51 +0200
 
diff --git a/debian/rules b/debian/rules
index ac8068d..81ff589 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,15 @@ export JAVA_HOME := /usr/lib/jvm/default-java
 	dh $@ --parallel --with maven_repo_helper
 
 override_dh_auto_build:
+	mkdir -p build/generated-sources/jflex
+	java -jar /usr/share/java/cup.jar \
+		-parser LexParse \
+		-interface \
+		-destdir build/generated-sources/jflex/ \
+		src/main/cup/LexParse.cup
+	jflex -d build/generated-sources/jflex/ \
+		--skel src/main/jflex/skeleton.nested \
+		src/main/jflex/LexScan.flex
 	ant -buildfile build.xml jar
 
 override_dh_auto_clean:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jflex.git



More information about the pkg-java-commits mailing list