summaryrefslogtreecommitdiff
path: root/debian/patches/05_abc_executable.patch
diff options
context:
space:
mode:
authorSebastian Kuzminsky <seb@highlab.com>2016-02-28 22:30:43 -0700
committerSebastian Kuzminsky <seb@highlab.com>2016-03-23 16:22:35 -0600
commit9ab64c6c700eaf51184704e9da8eb4fd14b9242c (patch)
tree8a907f4a8b85874a8c578c54daebb5afadee323d /debian/patches/05_abc_executable.patch
parentee6d4ad9ebcf958c61fc99cf3a80b04dd83d3770 (diff)
look for berkeley-abc in the PATH
Before this change to the patch, yosys would determine the directory that the yosys program lived in and would look for abc there. After this change, it just looks in the PATH. This change is generally an improvement because it simplifies the code, but it's also required to build the documentation. When we're building the package, abc is in /usr/bin/ (provided by the build-dependency on berkeley-abc). Before this change to the patch, the abc.cc code used look for abc in the same directory as the test program lived in, and thus would fail to find it.
Diffstat (limited to 'debian/patches/05_abc_executable.patch')
-rw-r--r--debian/patches/05_abc_executable.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/patches/05_abc_executable.patch b/debian/patches/05_abc_executable.patch
index d5546814..2f6d9870 100644
--- a/debian/patches/05_abc_executable.patch
+++ b/debian/patches/05_abc_executable.patch
@@ -13,7 +13,7 @@ Index: yosys/passes/techmap/abc.cc
log_push();
- std::string exe_file = proc_self_dirname() + "yosys-abc";
-+ std::string exe_file = proc_self_dirname() + "berkeley-abc";
++ std::string exe_file = "berkeley-abc";
std::string script_file, liberty_file, constr_file, clk_str, delay_target;
bool fast_mode = false, dff_mode = false, keepff = false, cleanup = true;
bool show_tempdir = false;