summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-03 13:20:37 +0000
committerJay Freeman <saurik@saurik.com>2008-02-03 13:20:37 +0000
commit29b1502c9d7cdcdf4b09e96e29a7c201d1a15f29 (patch)
tree68da22078450a42a45f1762300b055af6aa5e7d3
parentf648dabb05b3e53cc68ef896a08d39da19d8972c (diff)
Many fixes for Name, Section, and mDNSResponder.
git-svn-id: http://svn.telesphoreo.org/trunk@65 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/jamvm/_metadata/name1
-rw-r--r--data/jamvm/_metadata/section2
-rw-r--r--data/jamvm/make.sh1
-rw-r--r--data/jamvm/mdns.diff23
4 files changed, 26 insertions, 1 deletions
diff --git a/data/jamvm/_metadata/name b/data/jamvm/_metadata/name
new file mode 100644
index 000000000..189605d85
--- /dev/null
+++ b/data/jamvm/_metadata/name
@@ -0,0 +1 @@
+JamVM
diff --git a/data/jamvm/_metadata/section b/data/jamvm/_metadata/section
index f3d360b1c..bf4484b6c 100644
--- a/data/jamvm/_metadata/section
+++ b/data/jamvm/_metadata/section
@@ -1 +1 @@
-java
+Java
diff --git a/data/jamvm/make.sh b/data/jamvm/make.sh
index 165b49794..8e9332b11 100644
--- a/data/jamvm/make.sh
+++ b/data/jamvm/make.sh
@@ -1,5 +1,6 @@
pkg:extract
cd *
+pkg:patch
CFLAGS=-O0 pkg:configure --with-classpath-install-dir=/usr --disable-ffi
make
pkg:install
diff --git a/data/jamvm/mdns.diff b/data/jamvm/mdns.diff
new file mode 100644
index 000000000..ff63e8957
--- /dev/null
+++ b/data/jamvm/mdns.diff
@@ -0,0 +1,23 @@
+diff -ru jamvm-1.5.1/src/jam.c jamvm-1.5.1+iPhone/src/jam.c
+--- jamvm-1.5.1/src/jam.c 2007-10-19 01:10:32.000000000 +0000
++++ jamvm-1.5.1+iPhone/src/jam.c 2008-01-31 08:04:48.000000000 +0000
+@@ -1,3 +1,5 @@
++#include <mach-o/nlist.h>
++
+ /*
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007
+ * Robert Lougher <rob@lougher.org.uk>.
+@@ -292,6 +294,13 @@
+ }
+
+ int main(int argc, char *argv[]) {
++ struct nlist nl[2];
++ memset(nl, 0, sizeof(nl));
++ nl[0].n_un.n_name = "_useMDNSResponder";
++ nlist("/usr/lib/libc.dylib", nl);
++ if (nl[0].n_type != N_UNDF)
++ *(int *) nl[0].n_value = 0;
++
+ Class *array_class, *main_class;
+ Object *system_loader, *array;
+ MethodBlock *mb;