package: installation-report severity: normal tags: patch
While experimenting with the new DirectFB 1.0, i noticed the report-hw script has the 0.9.25 version of DirectFB hardcoded into it. As a consequence, it looks for the diagnostig dfbinfo tool into /usr/lib/directfb-0.9.25/bin/, while libdirectfb-1.0-0-udeb provides such tool into /usr/lib/directfb-1.0.0/bin/ and future versions of this package may install dfbinfo in other paths. So, i propose to make the script dfb version agnostic with the attached patch: is it ok committing the patch ? regards Attilio Fiandrotti
Index: report-hw =================================================================== --- report-hw (revisione 50086) +++ report-hw (copia locale) @@ -67,7 +67,7 @@ if [ "$DEBIAN_FRONTEND" = gtk ]; then addfile /proc/fb addfile /etc/directfbrc - if [ -x /usr/lib/directfb-0.9.25/bin/dfbinfo ]; then - /usr/lib/directfb-0.9.25/bin/dfbinfo 2>&1 | addinfo dfbinfo + if [ -x /usr/lib/directfb-*/bin/dfbinfo ]; then + /usr/lib/directfb-*/bin/dfbinfo 2>&1 | addinfo dfbinfo fi fi