Re: Attaching rocminfo to bug reports
Hi,
On Fri, Aug 01, 2025 at 10:56:14PM -0600, Cordell Bloor wrote:
>
<snip>
> I created a very simple script and tested it by filing Bug #1110251 [3]:
>
> $ cat /usr/share/bug/rocm-smi
> #!/bin/bash
>
> rocminfo_path="$(type -p rocminfo)"
> if [ -n "$rocminfo_path" ]; then
> yesno "Attach output of 'rocminfo' to this bug report? (y/N) "
> if [ "$REPLY" = "yep" ]; then
> rocminfo >&3
> fi
> fi
>
<snip>
>
> The part that I'm most unsure about is how to add this script to all the
> relevant packages. It would quickly become a maintenance burden to
> copy/paste this script into every package and keep it up-to-date. I suppose
> we could just have one copy somewhere and each package could install a
> symlink to this script? Or is there a standard way of handling this?
Otoh: since it's only about 200 bytes, I guess it's ok to keep copy/paste-ing it
around?
My € 0,02.
Bye,
Joost
Reply to: