gnu: Add abcl.
[jackhill/guix/guix.git] / gnu / packages / patches / abcl-fix-build-xml.patch
1 ABCL's build calls the hostname command, and needs the internet to download
2 JUnit. Neither of these are really required, though, so we can patch them out
3 to make it build.
4
5 We also remove the Implemetation-Build property that ends up in the manifest
6 file, because it stores information about the time of the build, which makes
7 it non-deterministic.
8
9 --- a/build.xml
10 +++ b/build.xml
11 @@ -327,7 +327,7 @@ from ${abcl.home.dir}
12 <property name="abcl.build.path"
13 value="${build.classes.dir}/org/armedbear/lisp/build"/>
14 <target name="abcl.stamp"
15 - depends="abcl.compile,abcl.stamp.version,abcl.stamp.hostname">
16 + depends="abcl.compile,abcl.stamp.version">
17 <mkdir dir="${abcl.build.path}/.."/>
18 <loadfile property="abcl.version"
19 srcFile="${abcl.version.path}"/>
20 @@ -455,11 +455,6 @@ from ${abcl.home.dir}
21 value="${abcl.version}-${abcl.version.src}"/>
22 </target>
23
24 - <target name="abcl.stamp.hostname" if="unix">
25 - <exec executable="hostname" outputproperty="abcl.hostname"/>
26 - <echo>abcl.hostname: ${abcl.hostname}</echo>
27 - </target>
28 -
29 <target name="abcl.system.uptodate">
30 <condition property="abcl.system.needs-update.p">
31 <and>
32 @@ -500,8 +495,6 @@ from ${abcl.home.dir}
33 value="ABCL"/>
34 <attribute name="Implementation-Version"
35 value="${abcl.implementation.version}"/>
36 - <attribute name="Implementation-Build"
37 - value="${build}"/>
38 </section>
39 </manifest>
40 <metainf dir="${src.dir}/META-INF">
41 @@ -1019,8 +1012,7 @@ ${basedir}/../cl-bench
42 </unzip>
43 </target>
44
45 - <target name="abcl.test.compile"
46 - depends="abcl.test.pre-compile">
47 + <target name="abcl.test.compile" >
48 <mkdir dir="${abcl.test.classes.dir}"/>
49 <javac destdir="${abcl.test.classes.dir}"
50 classpathref="abcl.test.compile.classpath"