Debian Codegraph @

debian/patches/system-dpf.patch

raw
1 Description: Use DPF files provided by Debian packages
2 Author: IOhannes m zmölnig
3 Origin: Debian
4 Forwarded: not-needed
5 Last-Update: 2026-09-24
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- hvcc.orig/hvcc/generators/c2dpf/c2dpf.py
9 +++ hvcc/hvcc/generators/c2dpf/c2dpf.py
10 @@ -70,6 +70,11 @@
11 shutil.copytree(Path(Path(__file__).parent, "static"), out_dir)
12 shutil.copy(Path(Path(__file__).parent, "static/README.md"), f'{out_dir}/../')
13
14 + # copy over DPF infrastructure from Debian
15 + dpf_source = Path("/usr/share/dpf")
16 + if dpf_source.exists():
17 + shutil.copytree(dpf_source, f'{out_dir}/../dpf')
18 +
19 # copy over generated C source files
20 source_dir = Path(out_dir, "source")
21 shutil.copytree(c_src_dir, source_dir)