[arachne-pnr] 07/07: Added patch to set VER and GIT_REV

Ruben Undheim rubund-guest at moszumanska.debian.org
Thu Mar 3 23:44:47 UTC 2016


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

rubund-guest pushed a commit to branch master
in repository arachne-pnr.

commit 16663f23ca1e90680dc3b320d7ce65f098591cc6
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Fri Mar 4 00:23:15 2016 +0100

    Added patch to set VER and GIT_REV
---
 debian/changelog                                  |  2 ++
 debian/patches/05_prevent_dependency_on_git.patch | 17 +++++++++++++++++
 debian/patches/series                             |  1 +
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0d00444..ab81c57 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ arachne-pnr (0.1+20151224git1a4fdf9-1) unstable; urgency=medium
   * New upstream version
     - Fixes FTBFS (Closes: #816579)
   * d/rules: Minor typo fix
+  * d/patches/05_prevent_dependency_on_git.patch:
+    - Set VER and GIT_REV explicitly
 
  -- Ruben Undheim <ruben.undheim at gmail.com>  Thu, 03 Mar 2016 23:55:14 +0100
 
diff --git a/debian/patches/05_prevent_dependency_on_git.patch b/debian/patches/05_prevent_dependency_on_git.patch
new file mode 100644
index 0000000..c3ecf14
--- /dev/null
+++ b/debian/patches/05_prevent_dependency_on_git.patch
@@ -0,0 +1,17 @@
+Description: Set VER and GIT_REV explicitly so that the build does not
+ need to be done in a git repository.
+Author: Ruben Undheim <ruben.undheim at gmail.com>
+
+--- arachne-pnr-0.1+20151224git1a4fdf9.orig/Makefile
++++ arachne-pnr-0.1+20151224git1a4fdf9/Makefile
+@@ -18,8 +18,8 @@ ICEBOX = /usr/share/fpga-icestorm/chipdb
+ .PHONY: all
+ all: bin/arachne-pnr share/arachne-pnr/chipdb-1k.bin share/arachne-pnr/chipdb-8k.bin
+ 
+-VER = 0.1+$(shell echo `git log --oneline | wc -l`)+$(shell echo `git diff --name-only HEAD | wc -l`)
+-GIT_REV = $(shell git rev-parse --verify --short HEAD)
++VER = 0.1+20151224git1a4fdf9
++GIT_REV = 1a4fdf9
+ 
+ VER_HASH = $(shell echo "$(VER) $(GIT_REV)" | sum | cut -d ' ' -f -1)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 6ff9a5d..78646a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 02_dont_run_tests.patch
 03_fix_install_dir.patch
 04_cxxflags.patch
+05_prevent_dependency_on_git.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arachne-pnr.git



More information about the debian-science-commits mailing list