diff --git a/SECURITY.md b/SECURITY.md index 4dc36015cf..b89c982bff 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -52,12 +52,6 @@ In Maven, you can use the [os-maven-plugin](https://github.com/trustin/os-maven- ```xml - - - - fedora - - io.netty @@ -76,6 +70,31 @@ In Maven, you can use the [os-maven-plugin](https://github.com/trustin/os-maven- 1.4.0.Final + + + + org.apache.maven.plugins + maven-antrun-plugin + + + initialize + + true + + + + + + + + run + + + + + ``` @@ -97,11 +116,15 @@ buildscript { // Use the osdetector-gradle-plugin apply plugin: "com.google.osdetector" -// Configure a special classifier on Fedora-"like" systems. -osdetector.classifierWithLikes = ['fedora'] +def tcnative_classifier = osdetector.classifier; +// Fedora variants use a different soname for OpenSSL than other linux distributions +// (see http://netty.io/wiki/forked-tomcat-native.html). +if (osdetector.os == "linux" && osdetector.release.isLike("fedora")) { + tcnative_classifier += "_fedora"; +} dependencies { - compile 'io.netty:netty-tcnative:1.1.33.Fork7:' + osdetector.classifier + compile 'io.netty:netty-tcnative:1.1.33.Fork7:' + tcnative_classifier } ``` diff --git a/build.gradle b/build.gradle index e7b1c2740b..7bc3c22cca 100644 --- a/build.gradle +++ b/build.gradle @@ -17,8 +17,6 @@ subprojects { apply plugin: "jacoco" apply plugin: "com.google.osdetector" - // Configure a special classifier on Fedora-"like" systems. - osdetector.classifierWithLikes = ['fedora'] group = "io.grpc" version = "0.10.0-SNAPSHOT" @@ -112,6 +110,13 @@ subprojects { } } + def tcnative_suffix = osdetector.classifier; + // Fedora variants use a different soname for OpenSSL than other linux distributions + // (see http://netty.io/wiki/forked-tomcat-native.html). + if (osdetector.os == "linux" && osdetector.release.isLike("fedora")) { + tcnative_suffix += "_fedora"; + } + def epoll_suffix = ""; if (osdetector.classifier in ["linux-x86_64"]) { // The native code is only pre-compiled on certain platforms. @@ -131,7 +136,7 @@ subprojects { protobuf_plugin: 'com.google.protobuf:protobuf-gradle-plugin:0.7.0', netty: 'io.netty:netty-codec-http2:4.1.0.Beta6', - netty_tcnative: 'io.netty:netty-tcnative:1.1.33.Fork7:' + osdetector.classifier, + netty_tcnative: 'io.netty:netty-tcnative:1.1.33.Fork7:' + tcnative_suffix, netty_transport_native_epoll: 'io.netty:netty-transport-native-epoll:4.1.0.Beta6' + epoll_suffix, // Test dependencies.