You are not logged in.
Hello!
Just installed Devuan (daedalus, 6.1.0-16-amd64) in a KVM vm.
Installation of Systemtap (4.8-2) went ok, but the importent step,
executing 'stap-prep' failed:
$ stap-prep
Configuring for kernel release 6.1.0-16-amd64
Debuginfo automatic downloading is not configured via $DEBUGINFOD_URLS
/usr/bin/stap-prep: line 80: rpm: command not found
Quite easy to see, there is usually no rpm, has to be apt ....
How can this be fixed?
Thanks,
Manfred
Offline
Hello!
According to the given error message:
$ stap-prep
Configuring for kernel release 6.1.0-16-amd64
Debuginfo automatic downloading is not configured via $DEBUGINFOD_URLS
/usr/bin/stap-prep: line 80: rpm: command not found
Now, I found time to look into the script.
The error is obviously easy to see, the root cause is in line 182:
(180) DISTRO="$(lsb_release --id --short 2> /dev/null)"
(181) case "$DISTRO" in
(182) Debian|Ubuntu) <===
(183) prep_deb_based "$@"
(184) ;;
(185) *)
(186) prep_rpm_based "$@"
(187) ;;
(188) esac
Just insert "|Devuan" after "Ubuntu" in the case expression and it works.
Sad, but usual for the SystemTap installations all the time, the script
contains - ALWAYS(??) - such errors.
Additionally, at the end of the result (of running 'stap-prep'), you get this:
......
Processing triggers for runit (2.1.2-54) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
You need package linux-image-6.1.0-16-amd64-dbgsym but it does not seem to be available
No such package exist, but systemtap is running now (say, at least my old script).
Another pointless waste of time.
Regards,
Manfred
Offline
Someone should contact packagemanagement or whoever is responsible for this.
I dont know!
Regards,
Manfred
Offline
Seems to be a poor way to differentiate between deb-based and rpm-based systems. Devuan wont be the only Debian derivative to fail this test.
I would recommend reporting this as an issue in to upstream SystemTap, maybe with the suggestion to change the logic to whether the relevant binaries exist - i.e. along the lines of if [ -x /usr/bin/dpkg ] elif [ -x /usr/bin/rpm ] else "error unknown system"
3.1415P265E589T932E846R64338
Offline
Hi!
Just stumpled over this ...
Yes, I told them!
Regards,
Manfred
Offline