From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 17 01:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9C327742 for ; Fri, 17 May 2013 01:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7E13CB06 for ; Fri, 17 May 2013 01:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4H1e0iX063985 for ; Fri, 17 May 2013 01:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4H1e0DV063984; Fri, 17 May 2013 01:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 17 May 2013 01:40:00 GMT Resent-Message-Id: <201305170140.r4H1e0DV063984@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Javad Kouhi Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12135737 for ; Fri, 17 May 2013 01:38:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 050C9AFF for ; Fri, 17 May 2013 01:38:35 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4H1cYct064553 for ; Fri, 17 May 2013 01:38:34 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4H1cYoR064552; Fri, 17 May 2013 01:38:34 GMT (envelope-from nobody) Message-Id: <201305170138.r4H1cYoR064552@oldred.FreeBSD.org> Date: Fri, 17 May 2013 01:38:34 GMT From: Javad Kouhi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178699: [fix] devel/xdg-utils fails without ${LOCALBASE}/share/desktop-directories X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 01:40:00 -0000 >Number: 178699 >Category: ports >Synopsis: [fix] devel/xdg-utils fails without ${LOCALBASE}/share/desktop-directories >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 17 01:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Javad Kouhi >Release: 9.1-STABLE >Organization: >Environment: FreeBSD minootux 9.1-STABLE FreeBSD 9.1-STABLE #0 r249996: Sun Apr 28 03:10:00 IRDT 2013 root@minootux:/usr/obj/usr/src/sys/GIGABYTE amd64 >Description: If the "${LOCALBASE}/share/desktop-directories" directory does not exist in the system, the command "xdg-desktop-menu install .desktop-file" will fail. >How-To-Repeat: 1. Install devel/xdg-utils 2. Make sure "${LOCALBASE}/share/desktop-directories" does not exist 3. Try installing a .desktop file with the "xdg-desktop-menu install" command 4. The above command will fail because that directory does not exist in the system 5. The following message will be printed: xdg_user_dir: /root/.local/share/desktop-directories xdg_global_dir: kde_user_dir: kde_global_dir: gnome_user_dir: gnome_global_dir: xdg-desktop-menu: No writable system menu directory found. 6. Create an empty "${LOCALBASE}/share/desktop-directories" and try again. 7. This time the .desktop file will be installed successfully. >Fix: Index: Makefile =================================================================== --- Makefile (revision 318348) +++ Makefile (working copy) @@ -30,6 +30,7 @@ xdg-screensaver PLIST_FILES+= ${XDG_FILES:S|^|bin/|} +PLIST_DIRS= share/desktop-directories MAN1+= ${XDG_FILES:S|$|.1|} pre-patch: @@ -39,4 +40,7 @@ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/scripts/xdg-* +post-install: + @${MKDIR} ${LOCALBASE}/share/desktop-directories + .include >Release-Note: >Audit-Trail: >Unformatted: