| 1 |
|
| 2 |
# minimal arch qemu VM 2021-02-19 |
| 3 |
|
| 4 |
|
| 5 |
### Install graphical environment |
| 6 |
# pacman -Syy # similar: apt update |
| 7 |
# pacman -Syu # similar: apt update && apt dist-upgrade |
| 8 |
# pacman -S xorg-server xorg-xinit xf86-video-vesa xfce4 lightdm lightdm-gtk-greeter |
| 9 |
# systemctl enable lightdm |
| 10 |
|
| 11 |
|
| 12 |
### Install dependencies |
| 13 |
# pacman -S git fakeroot base-devel qt5 libao libmad a52dec wget desktop-file-utils gdb |
| 14 |
|
| 15 |
|
| 16 |
mkdir dvbcut |
| 17 |
cd dvbcut |
| 18 |
wget https://raw.githubusercontent.com/bernhardu/dvbcut-deb/master/contrib/arch/PKGBUILD |
| 19 |
wget https://raw.githubusercontent.com/bernhardu/dvbcut-deb/master/contrib/arch/dvbcut.install |
| 20 |
# Taken and updated from https://aur.archlinux.org/dvbcut.git |
| 21 |
|
| 22 |
makepkg |
| 23 |
|
| 24 |
|
| 25 |
### Install package: |
| 26 |
# pacman -U /home/user/path/to/dvbcut-0.7.4-1-x86_64.pkg.tar.zst |
| 27 |
|
| 28 |
|
| 29 |
### Debug |
| 30 |
# uncomment "options=(debug !strip)" in PKGBUILD and rebuild (with a clean directory), reinstall |
| 31 |
|
| 32 |
# Run from the build directory, as somehow the binary in the package still gets stripped. |
| 33 |
$ gdb -q --args ./src/dvbcut-deb-0.7.4/src/dvbcut |
| 34 |
(gdb) run |
| 35 |
|
| 36 |
# When gdb stopps because of the crash |
| 37 |
(gdb) bt full |
| 38 |
|
| 39 |
|
| 40 |
# Maybe some hints in debugging: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces |