From a847b3522a508c7b22f05a87a001421402071526 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Thu, 21 Nov 2019 15:05:20 +0700 Subject: [PATCH 1/3] Update Jenkinsfile as of ubports/build-tools@ba2d4bb --- Jenkinsfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a122443..7ea1808 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,13 @@ +String stashFileList = '*.gz,*.bz2,*.xz,*.deb,*.ddeb,*.dsc,*.changes,*.buildinfo,lintian.txt' +String archiveFileList = '*.gz,*.bz2,*.xz,*.deb,*.ddeb,*.dsc,*.changes,*.buildinfo' + pipeline { agent any stages { stage('Build source') { steps { sh '/usr/bin/build-source.sh' - stash(name: 'source', includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt') + stash(name: 'source', includes: stashFileList) cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) } } @@ -17,7 +20,7 @@ pipeline { unstash 'source' sh '''export architecture="armhf" build-binary.sh''' - stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-armhf') + stash(includes: stashFileList, name: 'build-armhf') cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) } @@ -29,7 +32,7 @@ build-binary.sh''' unstash 'source' sh '''export architecture="arm64" build-binary.sh''' - stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-arm64') + stash(includes: stashFileList, name: 'build-arm64') cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) } }, @@ -39,7 +42,7 @@ build-binary.sh''' unstash 'source' sh '''export architecture="amd64" build-binary.sh''' - stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-amd64') + stash(includes: stashFileList, name: 'build-amd64') cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) } } @@ -52,7 +55,7 @@ build-binary.sh''' unstash 'build-armhf' unstash 'build-arm64' unstash 'build-amd64' - archiveArtifacts(artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo', fingerprint: true, onlyIfSuccessful: true) + archiveArtifacts(artifacts: archiveFileList, fingerprint: true, onlyIfSuccessful: true) sh '''/usr/bin/build-repo.sh''' } } From 295d46cb7ed75d901e9409ecdc7859979e8c6b0d Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Thu, 21 Nov 2019 23:49:32 +0700 Subject: [PATCH 2/3] CMakeList: fix android-headers pkg-config name We uses versioned android-headers. Change it to the version we depends on. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c2c62d..b4ffb7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ pkg_check_modules(GIO-UNIX REQUIRED gio-unix-2.0) pkg_check_modules(WDS REQUIRED wds) pkg_check_modules(MIRCLIENT REQUIRED mirclient) pkg_check_modules(HYBRIS_MEDIA REQUIRED libmedia) -pkg_check_modules(ANDROID_HEADERS REQUIRED android-headers) +pkg_check_modules(ANDROID_HEADERS REQUIRED android-headers-19) include(cmake/EnableCoverageReport.cmake) From b1556e43ace09a976a286e461e532e365352f144 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Thu, 21 Nov 2019 15:52:41 +0700 Subject: [PATCH 3/3] Don't wait for upstart-property-watcher This Android service doesn't exist in Halium 7.1. AFAIK aethercast doesn't actually need it to be functional. Instead, wait for a property that is guaranteed to be set. --- conf/aethercast.conf.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/aethercast.conf.in b/conf/aethercast.conf.in index 5bc9365..6dcd39e 100644 --- a/conf/aethercast.conf.in +++ b/conf/aethercast.conf.in @@ -8,7 +8,11 @@ respawn script if [ -f /system/build.prop ] ; then # Wait for Android properties to be set - while [ "$(getprop init.svc.upstart-watcher)" != "running" ]; do sleep 0.2; done + # In theory we can wait for the socket to show up. However, the read of + # system properties can happen a bit later. Instead, wait for + # "wifi.interface" property, which is usually set together with + # "wifi.direct.interface" (if it's set). + while [ -z "$(getprop wifi.interface)" ]; do sleep 0.2; done iface=`getprop wifi.direct.interface` if [ "$iface" != "" ] ; then