Skip to content

Commit

Permalink
update to newer Ubuntu and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch committed Oct 19, 2023
1 parent 12bb7d3 commit b3049a5
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,40 @@ ports:
# last one is seen first
tasks:

- name: setup coding environment on Ubuntu 20.04
- name: setup coding environment on Ubuntu 22.04
before: |
# note: sadly we need this to be done every time as only /workspace is kept, but linked
# against those dependencies; and also we do want to recompile after adjustments
# this can all be dropped as soon as we can use a prepared docker
sudo add-apt-repository ppa:beineri/opt-qt-5.15.4-focal -y
sudo add-apt-repository ppa:kubuntu-ppa/backports -y
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y qt515base qt515svg qt515x11extras cmake libdwarf-dev mesa-common-dev \
sudo apt-get install -y qtbase5-dev qtbase5-private-dev libqt5svg5-dev libqt5x11extras5-dev \
cmake libdwarf-dev mesa-common-dev libqcustomplot-dev \
libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev \
build-essential curl git wget autotools-dev autoconf libtool liblzma-dev libz-dev gettext cmake \
libzstd-dev ninja-build libdw-dev libelf-dev extra-cmake-modules \
libkf5archive-dev libkf5threadweaver-dev libkf5i18n-dev libkf5configwidgets-dev \
libkf5coreaddons-dev libkf5itemviews-dev libkf5itemmodels-dev libkf5kio-dev libkf5parts-dev \
libkf5solid-dev libkf5windowsystem-dev libkf5notifications-dev libkf5iconthemes-dev \
libqt5svg5-dev libqcustomplot-dev libkf5syntaxhighlighting-dev \
libqt5x11extras5-dev # this one is optional for Hotspot, but required for KDDockWidgets
libkf5solid-dev libkf5windowsystem-dev libkf5notifications-dev libkf5iconthemes-dev libkf5syntaxhighlighting-dev \
libqt5x11extras5-dev \
|| (echo ERROR: broken setup && exit 1)
# note: libqt5x11extras5-dev is optional for Hotspot, but required for KDDockWidgets
gp sync-done system-prepare
- name: manual addition of KDDockWidgets (once)
env:
KDDW_VER: 1.6.0
KDDW_VER: 1.7.0
before: |
gp sync-await system-prepare
init: |
cd /workspace
wget https://github.com/KDAB/KDDockWidgets/releases/download/v$KDDW_VER/kddockwidgets-$KDDW_VER.tar.gz
tar -xf kddockwidgets-$KDDW_VER.tar.gz
cd kddockwidgets-$KDDW_VER
export PATH="/opt/bin:/opt/qt515/bin:${PATH}"
export PKG_CONFIG_PATH="/opt/qt515/lib/pkgconfig:${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH="/opt/qt515/lib:/opt/qt515/lib/x86_64-linux-gnu"
cmake -DCMAKE_INSTALL_PREFIX=/opt/KDAB .
command: |
gp sync-done kddw-prepared
- name: manual addition of KDDockWidgets (install)
env:
KDDW_VER: 1.6.0
KDDW_VER: 1.7.0
command: |
gp sync-await kddw-prepared
cd /workspace/kddockwidgets-$KDDW_VER
Expand All @@ -59,21 +53,20 @@ tasks:
- name: manual addition of perf
env:
PERF_VER: perf-tools-for-v5.15-2021-09-11
PERF_VER: perf-tools-for-v6.1-2-2022-10-16
# KERNEL_REPO: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git not full featured git server, so mirror
KERNEL_REPO: https://github.com/torvalds/linux.git
before: |
gp sync-await system-prepare
sudo apt install -y linux-tools-generic libpython2.7 # to have the general perf and depedencies setup
sudo apt install -y linux-tools-generic libpython3-dev # to have the general perf and depedencies setup
init: |
gp sync-await system-prepare
sudo apt install -y bison flex libelf-dev libnewt-dev libdw-dev libaudit-dev libiberty-dev libunwind-dev \
libcap-dev libzstd-dev liblzma-dev libnuma-dev libssl-dev systemtap-sdt-dev libbabeltrace-ctf-dev \
libperl-dev \
libperl-dev libtraceevent-dev \
binutils-dev gcc-multilib \
python2-dev
# python3-dev python3-setuptools - python3 only with newer versions
# libgtk2.0-dev still not found
python3-dev python3-setuptools \
libgtk2.0-dev
# asciidoc optional, only for manpages, depdencies are huge
cd /workspace
git clone --depth 1 --filter=blob:none --sparse $KERNEL_REPO
Expand All @@ -92,9 +85,6 @@ tasks:
- name: actual building and running of hotspot
before: | # necessary when re-running the workspace
export PATH="/opt/bin:/opt/qt515/bin:${PATH}"
export PKG_CONFIG_PATH="/opt/qt515/lib/pkgconfig:${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH="/opt/qt515/lib:/opt/qt515/lib/x86_64-linux-gnu"
export PERF_EXEC_PATH="/workspace/linux/tools/perf"
export PATH"=/workspace/linux/tools/perf:${PATH}"
init: |
Expand Down

0 comments on commit b3049a5

Please sign in to comment.