From 7d6f2533db7635bb5d341dfe188333f636a66bf6 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 18 Nov 2014 07:32:17 -0500 Subject: [PATCH] work around pinf hang under Travis by forcing the TERM to dumb. --- .travis.yml | 1 + MasterPassword/C/build | 5 +++++ MasterPassword/ObjC/Mac/MPMacAppDelegate.m | 3 +-- Scripts/genassets | 2 -- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index cf501986..4fab439b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,6 @@ language: objective-c xcode_project: MasterPassword/ObjC/iOS/MasterPassword-iOS.xcodeproj xcode_scheme: MasterPassword iOS (Development) xcode_sdk: iphonesimulator +env: TERM=dumb git: submodules: true diff --git a/MasterPassword/C/build b/MasterPassword/C/build index c6824e95..90525aa4 100755 --- a/MasterPassword/C/build +++ b/MasterPassword/C/build @@ -2,6 +2,8 @@ # # TROUBLESHOOTING # - To enable verbose algorithm/implementation debugging, use ./build -DDEBUG +# - If you see 'undefined reference to `AES_encrypt'', +# make sure you have openssl installed. # - If you see 'undefined reference to `clock_gettime'', # try ./build -lrt instead. # - If you see 'x86.S:202: Error: junk at end of line, first unrecognized character is `,'', @@ -245,6 +247,9 @@ mpw-bench() { ### TARGETS +haslib() { + LC_ALL=C cc -l"$1" 2>&1 | ! grep -q 'library not found' +} cc() { if hash llvm-gcc 2>/dev/null; then llvm-gcc "$@" diff --git a/MasterPassword/ObjC/Mac/MPMacAppDelegate.m b/MasterPassword/ObjC/Mac/MPMacAppDelegate.m index 3ab72444..27a6079d 100644 --- a/MasterPassword/ObjC/Mac/MPMacAppDelegate.m +++ b/MasterPassword/ObjC/Mac/MPMacAppDelegate.m @@ -109,8 +109,7 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven // Global hotkey. EventHotKeyRef hotKeyRef; EventTypeSpec hotKeyEvents[1] = { { .eventClass = kEventClassKeyboard, .eventKind = kEventHotKeyPressed } }; - OSStatus status = InstallApplicationEventHandler( NewEventHandlerUPP( MPHotKeyHander ), GetEventTypeCount( hotKeyEvents ), - hotKeyEvents, (__bridge void *)self, NULL ); + OSStatus status = InstallApplicationEventHandler( NewEventHandlerUPP( MPHotKeyHander ), GetEventTypeCount( hotKeyEvents ), hotKeyEvents, (__bridge void *)self, NULL ); if (status != noErr) err( @"Error installing application event handler: %i", (int)status ); status = RegisterEventHotKey( 35 /* p */, controlKey + cmdKey, MPShowHotKey, GetApplicationEventTarget(), 0, &hotKeyRef ); diff --git a/Scripts/genassets b/Scripts/genassets index 01565578..53638fbf 100755 --- a/Scripts/genassets +++ b/Scripts/genassets @@ -56,7 +56,6 @@ copyImage() { local src=$1 dst=$2 if [[ $src = *.9.png || $src = *.9@*.png ]]; then -exit pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}" niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return while IFS='=' read var value; do @@ -68,7 +67,6 @@ exit done <<< "$niftyNinePatch" fnip else -exit pinf '%s -> %s' "${src##*/}" "${dst##*/}" cp "$src" "$dst" fnip