From owner-freebsd-gnome@freebsd.org Sat Feb 13 17:49:57 2016 Return-Path: Delivered-To: freebsd-gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC231AA7DB3 for ; Sat, 13 Feb 2016 17:49:57 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C7F9E1BBF for ; Sat, 13 Feb 2016 17:49:57 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id C3DB5AA7DAF; Sat, 13 Feb 2016 17:49:57 +0000 (UTC) Delivered-To: gnome@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3543AA7DAE; Sat, 13 Feb 2016 17:49:57 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8AC941BBC; Sat, 13 Feb 2016 17:49:56 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3q2fNL2mytzZqp; Sat, 13 Feb 2016 18:49:54 +0100 (CET) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id jTOFqsQ-ozmY; Sat, 13 Feb 2016 18:49:52 +0100 (CET) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Sat, 13 Feb 2016 18:49:52 +0100 (CET) Subject: Re: FreeBSD Port: deskutils/calibre To: "Alex V. Petrov" , "ports@FreeBSD.org Ports" , John Marino References: <56BF1388.8040105@marino.st> <56BF2619.1060904@FreeBSD.org> <56BF27FF.8060400@gmail.com> <56BF48B9.1010307@FreeBSD.org> <56BF534C.8050304@gmail.com> <56BF5C5C.30402@FreeBSD.org> Cc: gnome@FreeBSD.org From: Guido Falsi Message-ID: <56BF6CBF.6000508@FreeBSD.org> Date: Sat, 13 Feb 2016 18:49:51 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56BF5C5C.30402@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2016 17:49:58 -0000 On 02/13/16 17:39, Guido Falsi wrote: > On 02/13/16 17:01, Alex V. Petrov wrote: >> I reinstalled xdg-utils. It did not change anything. >> > > I was finally able to reproduce the issue. > > Now at least I can run tests myself. > > Thanks all for the kind help! > I'm adding gnome@ as CC, because I'm not sure at this point if this issue should be looked in the xdg-utils port. II have generated a patch I'd like affected parties too test, you can get it here: https://people.freebsd.org/~madpilot/calibre.diff Please test it and report back, I'm performing my own testing here right now. I'll commit it once I am reasonably sure it does address the problem. It is a simple workaround. By reading the sources of xdg-desktop-menu I noticed it expects the file PREFIX/share/applications/defaults.list to always exist (also when working in STAGEDIR), and calls grep with a this non existent file as argument, causing it to hang. The offending line is line 93 in the xdg-utuils distribution file scripts/xdg-desktop-menu.in, in function make_lazy_default() (thanks to Christoph Moench-Tegeder for pointing me in this direction). My workaround is to touch this file in STAGEDIR so the script does not hang. I then remove it to avoid stage orphans. Anyone has a better solution or can tell if the final fault lays in calibre or xdg-utils? Thanks in advance. -- Guido Falsi