File: rules

package info (click to toggle)
mpj 0.44%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 7,592 kB
  • sloc: java: 49,853; ansic: 2,508; xml: 596; sh: 311; perl: 156; makefile: 27
file content (64 lines) | stat: -rwxr-xr-x 2,700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f

JAVA_HOME=/usr/lib/jvm/default-java

include /usr/share/dpkg/default.mk
DEBPKGNAME:=lib$(DEB_SOURCE)-java
BINDIR=debian/$(DEBPKGNAME)/usr/bin
MPJ_HOME=/usr/share/mpj
LIBDIR=debian/$(DEBPKGNAME)/$(MPJ_HOME)

%:
	dh $@ --with javahelper

#override_dh_auto_build:
#	dh_auto_build -- -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8

override_dh_install:
	dh_install
	mkdir -p $(BINDIR)
	for bin in bin/* ; do \
	    realbin=`basename $${bin} .sh` ; \
	    sed '1a export MPJ_HOME=$(MPJ_HOME)' $${bin} > $(BINDIR)/$${realbin} ; \
	done

override_jh_installlibs:
	jh_installlibs
	# Amongst the resulting JARs we have /usr/share/java/mpi.jar which is
        # also in libopenmpi-java.  So all JARs will go into private MPJ_HOME
	# and only /usr/share/java/mpj.jar will be exposed in /usr/share/java
	mkdir -p $(LIBDIR)/lib
	mv debian/$(DEBPKGNAME)/usr/share/java/* $(LIBDIR)/lib
	mkdir -p debian/$(DEBPKGNAME)/usr/share/java/
	for lib in $(LIBDIR)/lib/mpj[-.0-9]*jar ; do \
	    echo "linking $${lib}" ; \
	    ln -s ../mpj/lib/`basename $${lib}` debian/$(DEBPKGNAME)/usr/share/java/`basename $${lib}` ; \
	done

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/$(DEBPKGNAME)/etc/mpj/local2.conf

#override_dh_auto_test:
#	ant -f test/build.xml
#
# Needs more work:
#
#    [javac] /build/mpj-0.44+dfsg/test/build.xml:7: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
#    [javac] Compiling 5 source files
#    [javac] Note: /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/jgfutil/JGFInstrumentor.java uses unchecked or unsafe operations.
#    [javac] Note: Recompile with -Xlint:unchecked for details.
#    [javac] /build/mpj-0.44+dfsg/test/build.xml:10: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
#    [javac] Compiling 9 source files
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFAlltoallBench.java:28: error: cannot find symbol
#    [javac] public class JGFAlltoallBench implements JGFSection1{
#    [javac]                                          ^
#    [javac]   symbol: class JGFSection1
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFBarrierBench.java:27: error: cannot find symbol
#    [javac] public class JGFBarrierBench implements JGFSection1{
#    [javac]                                         ^
#    [javac]   symbol: class JGFSection1
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFBcastBench.java:28: error: cannot find symbol
#    [javac] public class JGFBcastBench implements JGFSection1{
#    [javac]                                       ^
#