Bug 233124 - Unknown platform 'FreeBSD'
Summary: Unknown platform 'FreeBSD'
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 11.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 08:00 UTC by Aleks
Modified: 2018-11-11 16:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleks 2018-11-11 08:00:13 UTC
jenkins android-sdk  gradle


11.1-STABLE FreeBSD 11.1-STABLE #0 r332428

Download https://jcenter.bintray.com/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
Download https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.2.71/kotlin-stdlib-common-1.2.71.jar
Download https://maven.google.com/com/android/tools/analytics-library/crash/26.2.1/crash-26.2.1.jar

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Unknown platform 'FreeBSD'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 41s
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE
Comment 1 Aleks 2018-11-11 10:26:10 UTC
export REPO_OS_OVERRIDE=linux


 code results in pixnet/android-platform-tools-base or view all results on GitHub
ddmlib/src/main/java/com/android/ddmlib/DdmConstants.java
Showing the top match Last indexed on Jun 29
Java
        } else if (os.startsWith("Linux")) {                //$NON-NLS-1$
            return PLATFORM_LINUX;
        } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$
sdklib/src/main/java/com/android/sdklib/internal/repository/archives/ArchFilter.java
Showing the top match Last indexed on Jun 29
Java
        } else if (os.startsWith("Linux")) {                //$NON-NLS-1$
            hostOS = HostOs.LINUX;
        } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$
sdklib/src/test/java/com/android/sdklib/util/BSPatchTest.java
Showing the top match Last indexed on Jun 29
Java
     * Based on bspatch.c as identified by <br/>
     * {@code $FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $}
common/src/main/java/com/android/SdkConstants.java
Showing the top two matches Last indexed on Jun 29
Java
            return PLATFORM_LINUX;
        } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$
            return PLATFORM_LINUX;
            return "Linux";                                 //$NON-NLS-1$
        } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$

........
........
        https://github.com/pixnet/android-platform-tools-base/search?q=FreeBSD&unscoped_q=FreeBSD

export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
export ANDROID_HOME=/usr/local/share/android-sdk



export ANDROID_NDK_HOME=/usr/local/opt/android-ndk
export GRADLE_HOME=/usr/local/share/gradle
#export GRADLE_HOME=/root/gradle


 export GRADLE_USER_HOME=/usr/local/jemkins/.gradle
 export GRADLE_PATH=./app/build.gradle   # path to the gradle file
 export  workspace=/usr/local/jenkins/workspace


export PATH="$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools:$PATH:$ANDROID_SDK_ROOT/tools/bin:$GRADLE_HOME/bin:$GRADLE_HOME:$ANDROID_SDK_ROOT/tools/lib"
#$PATH


/usr/local/jenkins
local.properties 
sdk.dir = /usr/local/share/android-sdk




build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven { url "https://maven.google.com" }
        maven {
            url 'https://maven.fabric.io/public'
        }

        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath "io.realm:realm-gradle-plugin:5.1.0"
        classpath 'com.novoda:bintray-release:0.5.0'
        classpath 'com.google.gms:google-services:3.2.1'
        classpath 'io.fabric.tools:gradle:1.25.4'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven {
            url 'https://maven.google.com/'
        }
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir







   cd /usr/home/base
#   cd common/src/main/java && jar uf ${ANDROID_HOME}/tools/lib/ddmlib-25.3.1.jar   ddmlib/src/main/java/com/android/ddmlib/DdmConstants.class
   cd common/src/main/java && jar uf ${ANDROID_HOME}/tools/lib/ddmlib-25.3.1.jar   sdklib/src/test/java/com/android/sdklib/util/BSPatchTest.java
   cd /usr/home/base

# common/src/main/java/com/android/SdkConstants.java
# Showing the top two matches Last indexed on Jun 29
# Java
#             return PLATFORM_LINUX;
#         } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$
#             return PLATFORM_LINUX;
#             return "Linux";                                 //$NON-NLS-1$
#         } else if (os.startsWith("FreeBSD")) {              //$NON-NLS-1$


.
    chown -R root:jenkins /usr/local/share/android-sdk
    chmod  -R 775  /usr/local/share/android-sdk
   /usr/local/share/android-sdk/tools/bin/sdkmanager --licenses

   rm -rf  /usr/local/jenkins/.gradle/caches/*

    service jenkins restart
.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2018-11-11 16:56:39 UTC
To which part of FreeBSD does this PR apply?