ports/180843: [PATCH] desktop-file-utils.mk really make update-desktop-database silent
Pawel Pekala
pawel at FreeBSD.org
Thu Jul 25 15:10:00 UTC 2013
>Number: 180843
>Category: ports
>Synopsis: [PATCH] desktop-file-utils.mk really make update-desktop-database silent
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 25 15:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Pawel Pekala
>Release: 10.0-CURRENT
>Organization:
>Environment:
FreeBSD blaviken.slowicza.org 10.0-CURRENT FreeBSD 10.0-CURRENT #25 r253503M: Sat Jul 20 18:38:51 CEST 2013 corn at blaviken.slowicza.org:/usr/obj/usr/src/sys/BLAVIKEN64 amd64
>Description:
Silencing of update-desktop-database does not work, error messages
go to stderr and showup on pacakge installation/deinstallation:
# /usr/local/bin/update-desktop-database > /dev/null
Error in file "/usr/local/share/applications/kde/printers.desktop": "print/manager" is an invalid MIME type ("print" is an unregistered media type)
Error in file "/usr/local/share/applications/kde/kfontview.desktop": "fonts/package" is an invalid MIME type ("fonts" is an unregistered media type)
I propose using -q option instead.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: desktop-file-utils.mk
===================================================================
--- desktop-file-utils.mk (wersja 323645)
+++ desktop-file-utils.mk (kopia robocza)
@@ -24,11 +24,11 @@
desktop-file-post-install:
# run for port post-install
- @-update-desktop-database
+ @-update-desktop-database -q
# plist entries for packages.
- @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true" \
+ @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q || /usr/bin/true" \
>> ${TMPPLIST}; \
- ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true" \
+ ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database -q || /usr/bin/true" \
>> ${TMPPLIST}
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list