installation of jhbuild and gtk+ fails on azure-pipelines
Find Yaml-Sripts below.
We try to install jhbuild on an azure-mac-pipeline. But the execution of the installation-script fails with:
Found existing installation: enum34 1.1.10
Uninstalling enum34-1.1.10:
Successfully uninstalled enum34-1.1.10
Traceback (most recent call last):
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/cli/command.py", line 7, in <module>
import crayons
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/patched/crayons.py", line 48, in <module>
is_powershell = "powershell" in shellingham.detect_shell()[0]
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/__init__.py", line 22, in detect_shell
shell = get_shell(pid, max_depth=max_depth)
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 54, in get_shell
mapping = _get_process_mapping()
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 15, in _get_process_mapping
mapping = impl.get_process_mapping()
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/ps.py", line 18, in get_process_mapping
'ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=',
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=']' returned non-zero exit status 1
Traceback (most recent call last):
File "/Users/runner/.new_local/bin/pipenv", line 5, in <module>
from pipenv import cli
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/__init__.py", line 23, in <module>
from .cli import cli
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/cli/__init__.py", line 3, in <module>
from .command import cli
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/cli/command.py", line 7, in <module>
import crayons
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/patched/crayons.py", line 48, in <module>
is_powershell = "powershell" in shellingham.detect_shell()[0]
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/__init__.py", line 22, in detect_shell
shell = get_shell(pid, max_depth=max_depth)
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 54, in get_shell
mapping = _get_process_mapping()
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/__init__.py", line 15, in _get_process_mapping
mapping = impl.get_process_mapping()
File "/Users/runner/.new_local/lib/python/site-packages/pipenv/vendor/shellingham/posix/ps.py", line 18, in get_process_mapping
'ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=',
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['ps', '-ww', '-o', 'pid=', '-o', 'ppid=', '-o', 'args=']' returned non-zero exit status 1
##[error]Bash exited with code '1'.
ci.yml
stages:
- stage: 'Build_Test_Stage'
jobs:
- job: macOS
pool:
vmImage: 'macOS-10.15'
displayName: 'Test Xournal++ on MacOS'
steps:
- template: steps/build_mac.yml
parameters:
build_type: 'Debug'
cmake_flags: '-DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_CPPUNIT=ON -DDEBUG_COMPILE=ON'
- bash: |
export PATH="$HOME/.local/bin:/Users/git-bin/gtk/inst/bin:$PATH"
install_name_tool -add_rpath /Users/git-bin/gtk/inst/lib/. test/test-loadHandler
install_name_tool -add_rpath /Users/git-bin/gtk/inst/lib/. test/test-util
CI=true ctest --verbose
workingDirectory: ./build
displayName: 'Run tests'
build_mac.yml
steps:
- bash: |
rm -R /Users/runner/hostedtoolcache
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
enabled: true
displayName: "nuke brew"
- bash: |
curl -O -L https://www.python.org/ftp/python/3.9.2/python-3.9.2-macosx10.9.pkg
sudo installer -pkg python-3.9.2-macosx10.9.pkg -target ~/
displayName: "install python"
# - task: UsePythonVersion@0 #does not work without brew
- bash: |
export PATH="$HOME/.new_local/bin:$PATH"
curl -L -O https://gitlab.gnome.org/GNOME/gtk-osx/raw/master/gtk-osx-setup.sh
chmod +x gtk-osx-setup.sh
./gtk-osx-setup.sh
jhbuild bootstrap-gtk-osx
jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-gtk3
displayName: 'Install jhbuild and build gtk+'
Edited by Fabian Keßler