install-julia-hack
authorDebian Julia Team <pkg-julia-devel@lists.alioth.debian.org>
Sat, 2 Mar 2019 23:41:50 +0000 (23:41 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 2 Mar 2019 23:41:50 +0000 (23:41 +0000)
If DESTDIR is defined in d/rules, embedded LLVM installation would break.
If DESTDIR is not defined in d/rules, embedded LLVM installation works, but Julia breaks.
This hack makes both LLVM and Julia happy.

Gbp-Pq: Name install-julia-hack.patch

Makefile

index 688d49ab2e892be76c4dfc10fd08d7161c6b45b8..035d4b74d7411929ae16adc1098cd82a3880cc65 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -328,6 +328,7 @@ JL_PRIVATE_LIBS-0 += libgfortran libgcc_s libquadmath
 endif
 
 
+override DESTDIR=./debian/tmp/
 install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html
        @$(MAKE) $(QUIET_MAKE) all
        @for subdir in $(bindir) $(datarootdir)/julia/stdlib/$(VERSDIR) $(docdir) $(man1dir) $(includedir)/julia $(libdir) $(private_libdir) $(sysconfdir); do \