rename-libnet.patch 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. https://evolvis.org/scm/viewvc.php/jalimo/trunk/oe-overlay/packages/openjdk/openjdk-6-6b18-1.8/icedtea-libnet-renaming.patch?revision=864&view=markup&pathrev=867
  2. --- w-openjdk-6.orig/openjdk-6/jdk/make/java/net/Makefile 2011-02-28 17:06:10.000000000 +0100
  3. +++ w-openjdk-6/openjdk-6/jdk/make/java/net/Makefile 2011-09-02 16:20:55.597991415 +0200
  4. @@ -25,7 +25,7 @@
  5. BUILDDIR = ../..
  6. PACKAGE = java.net
  7. -LIBRARY = net
  8. +LIBRARY = javanet
  9. PRODUCT = sun
  10. include $(BUILDDIR)/common/Defs.gmk
  11. --- w-openjdk-6.orig/openjdk-6/jdk/make/java/nio/Makefile 2011-02-28 17:06:11.000000000 +0100
  12. +++ w-openjdk-6/openjdk-6/jdk/make/java/nio/Makefile 2011-09-02 16:21:37.817990454 +0200
  13. @@ -135,11 +135,11 @@
  14. endif
  15. ifeq ($(PLATFORM), linux)
  16. COMPILER_WARNINGS_FATAL=true
  17. -OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
  18. +OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -ljavanet -lpthread -ldl
  19. endif
  20. ifeq ($(PLATFORM), solaris)
  21. OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 -ldl \
  22. - -L$(LIBDIR)/$(LIBARCH) -ljava -lnet
  23. + -L$(LIBDIR)/$(LIBARCH) -ljava -ljavanet
  24. endif # PLATFORM
  25. #
  26. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2011-02-28 17:06:22.000000000 +0100
  27. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2011-09-02 16:22:26.507995127 +0200
  28. @@ -59,7 +59,7 @@
  29. */
  30. static {
  31. java.security.AccessController.doPrivileged(
  32. - new sun.security.action.LoadLibraryAction("net"));
  33. + new sun.security.action.LoadLibraryAction("javanet"));
  34. }
  35. /**
  36. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2011-02-28 17:06:22.000000000 +0100
  37. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2011-09-02 16:22:58.041740544 +0200
  38. @@ -79,7 +79,7 @@
  39. */
  40. static {
  41. java.security.AccessController.doPrivileged(
  42. - new sun.security.action.LoadLibraryAction("net"));
  43. + new sun.security.action.LoadLibraryAction("javanet"));
  44. }
  45. /**
  46. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/java/net/DatagramPacket.java 2011-02-28 17:06:22.000000000 +0100
  47. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/java/net/DatagramPacket.java 2011-09-02 16:23:20.197991292 +0200
  48. @@ -47,7 +47,7 @@
  49. */
  50. static {
  51. java.security.AccessController.doPrivileged(
  52. - new sun.security.action.LoadLibraryAction("net"));
  53. + new sun.security.action.LoadLibraryAction("javanet"));
  54. init();
  55. }
  56. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/java/net/InetAddress.java 2011-02-28 17:06:22.000000000 +0100
  57. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/java/net/InetAddress.java 2011-09-02 16:23:57.670490341 +0200
  58. @@ -231,7 +231,7 @@
  59. static {
  60. preferIPv6Address = java.security.AccessController.doPrivileged(
  61. new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue();
  62. - AccessController.doPrivileged(new LoadLibraryAction("net"));
  63. + AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  64. init();
  65. }
  66. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/java/net/NetworkInterface.java 2011-02-28 17:06:22.000000000 +0100
  67. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/java/net/NetworkInterface.java 2011-09-02 16:24:13.879239438 +0200
  68. @@ -52,7 +52,7 @@
  69. private boolean virtual = false;
  70. static {
  71. - AccessController.doPrivileged(new LoadLibraryAction("net"));
  72. + AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  73. init();
  74. }
  75. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2011-02-28 17:06:34.000000000 +0100
  76. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2011-09-02 16:24:50.877990409 +0200
  77. @@ -89,7 +89,7 @@
  78. }});
  79. if (b != null && b.booleanValue()) {
  80. java.security.AccessController.doPrivileged(
  81. - new sun.security.action.LoadLibraryAction("net"));
  82. + new sun.security.action.LoadLibraryAction("javanet"));
  83. hasSystemProxies = init();
  84. }
  85. }
  86. --- w-openjdk-6.orig/openjdk-6/jdk/src/share/classes/sun/nio/ch/Util.java 2011-02-28 17:06:35.000000000 +0100
  87. +++ w-openjdk-6/openjdk-6/jdk/src/share/classes/sun/nio/ch/Util.java 2011-09-02 16:25:45.749240462 +0200
  88. @@ -354,7 +354,7 @@
  89. return;
  90. loaded = true;
  91. java.security.AccessController
  92. - .doPrivileged(new sun.security.action.LoadLibraryAction("net"));
  93. + .doPrivileged(new sun.security.action.LoadLibraryAction("javanet"));
  94. java.security.AccessController
  95. .doPrivileged(new sun.security.action.LoadLibraryAction("nio"));
  96. // IOUtil must be initialized; Its native methods are called from
  97. --- w-openjdk-6.orig/openjdk-6/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2011-02-28 17:06:48.000000000 +0100
  98. +++ w-openjdk-6/openjdk-6/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2011-09-02 16:26:36.017990742 +0200
  99. @@ -244,7 +244,7 @@
  100. static {
  101. java.security.AccessController.doPrivileged(
  102. - new sun.security.action.LoadLibraryAction("net"));
  103. + new sun.security.action.LoadLibraryAction("javanet"));
  104. }
  105. }
  106. --- w-openjdk-6.orig/openjdk-6/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2011-02-28 17:06:51.000000000 +0100
  107. +++ w-openjdk-6/openjdk-6/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2011-09-02 16:27:07.069240501 +0200
  108. @@ -160,7 +160,7 @@
  109. static {
  110. java.security.AccessController.doPrivileged(
  111. - new sun.security.action.LoadLibraryAction("net"));
  112. + new sun.security.action.LoadLibraryAction("javanet"));
  113. init0();
  114. // start the address listener thread