Skip to content

Instantly share code, notes, and snippets.

@naaman
Last active December 15, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naaman/5297494 to your computer and use it in GitHub Desktop.
Save naaman/5297494 to your computer and use it in GitHub Desktop.
Notes on patching NetworkInterface.c
$ cd $ICEDTEA_PATH
$ find . -name NetworkInterface.c
./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c
...
$ cp ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c ./NetworkInterface.c
$ vi NetworkInterface.c
/fscanf
note: fscanf should only match one line
replace first 02x with 08x
:wq
$ diff -u ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c ./NetworkInterface.c > patches/8009591-network_interface.patch
$ rm NetworkInterface.c
$ vi Makefile
/ICEDTEA_PATCHES
append patches/8009591-network_interface.patch
:wq
$ make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment