Skip to content

Commit

Permalink
package elfutils debuginfos
Browse files Browse the repository at this point in the history
this patch adds the elfutils debuginfo files to the debuginfo.zip file
fixes: #560
  • Loading branch information
lievenhey committed Jan 29, 2024
1 parent 1ceac8a commit 89f0d7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/appimage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ RUN cd /opt && git clone --recursive https://github.com/KDAB/KDDockWidgets.git -
cd KDDockWidgets && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDDockWidgets_EXAMPLES=0 -DKDDockWidgets_FRONTENDS="qtwidgets" .. && \
make -j && make install && cd /opt && rm -Rf KDDockWidgets

# install debuginfos
RUN debuginfo-install -y devtoolset-11-elfutils-libs

FROM intermediate

WORKDIR /
Expand Down
8 changes: 7 additions & 1 deletion scripts/appimage/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
make -j
DESTDIR=appdir make install

# copy elfutils debuginfos
cp /usr/lib/debug/opt/rh/devtoolset-11/root/usr/lib64/lib{elf,dw}-*.debug appdir/usr/lib64

tar -cjvf "/output/hotspot-debuginfo-$gitversion-x86_64.tar.bz2" \
--transform="s#appdir/#hotspot-debuginfo-$gitversion/#" \
appdir/usr/bin/hotspot appdir/usr/lib64/libexec/hotspot-perfparser
appdir/usr/bin/hotspot appdir/usr/lib64/libexec/hotspot-perfparser \
appdir/usr/lib64/lib{elf,dw}*.debug

rm appdir/usr/lib64/lib{elf,dw}*.debug

# FIXME: Do in CMakeLists.txt
mkdir -p "appdir/usr/share/applications/"
Expand Down

0 comments on commit 89f0d7b

Please sign in to comment.