From owner-freebsd-ports@freebsd.org Sat Feb 13 18:11:04 2016 Return-Path: Delivered-To: freebsd-ports@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 E587EAA786A for ; Sat, 13 Feb 2016 18:11:03 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) 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 C50BC1941 for ; Sat, 13 Feb 2016 18:11:03 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C237BAA7868; Sat, 13 Feb 2016 18:11:03 +0000 (UTC) Delivered-To: ports@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 A7990AA7866; Sat, 13 Feb 2016 18:11:03 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D8751939; Sat, 13 Feb 2016 18:11:03 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mail-lb0-x22d.google.com with SMTP id ap4so2631228lbd.1; Sat, 13 Feb 2016 10:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=eRMojrda3Fgqu7+RuvGSQQk+sMDNrqXn1bg1Qgu6z9g=; b=OoqiQpLY1xRyJ8GoG407nwZgEuDxCcKMi/8JKhPeRqYq2I1803afFWWMHzdXpqyk9O SRC77LAvVMkH0REc5/9s17fS+02k1EyPi7LlL1lZ1UmeXIIjlulluHB4cI3yMOM5IZlV uh+pn6yA3pvOexjZWUDoR9RMwf+y/hUIbXU29HyLC5dD4MQS1R4NtnmO7CObC4KHscSI 2fiQa8J1WN8p5I7dkjqePt+QgCqM+Lx099/smY3jbLI1I7FdbeNE+oPshsY6NTkgBX4L 5JVnSu6rpHBmqrDYeORSqNLgE31q2AUeVPXmcTiEnRjlyfPqKgoYIrfSltWlLVRWpYhJ u/Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=eRMojrda3Fgqu7+RuvGSQQk+sMDNrqXn1bg1Qgu6z9g=; b=Q3qGOaPk/+eYMljBrCnLIAYL5O20ZXMNGeclwmUAmvG2SZLsOGENQZoBI+6pL21XFX y2VAp6vdTEHNdPSjaPWHH8yPUsDCK2hS61AudpiSTT4lyn/iNgnsOZSkxRYffU31+tA/ knJR2eivGlB8YKio7Id/JMjXFIafRy4mAaZ7mczcV4k9mSb7u48ps2pDHIdJgK7JLufK DikEVHiv1oKU2/sXRe3/tYvWao0ZR21IQY91cRYEoyFWbdVdNIQIA0rfUna2e542bIwA LWeUZUEZaq4YN/iHdEwMb4IV51+UM0qBxTuxWJCQ+jaZ7SmXIlhng7pim010bcjfx8Io qqZg== X-Gm-Message-State: AG10YORtq0nVlP5EZlVuQP2TUMyitwXUgXZeZXOpcOh2P6hMvxuCMug6SZjhVRUSCBvLNQ== X-Received: by 10.112.126.229 with SMTP id nb5mr2898270lbb.28.1455387061444; Sat, 13 Feb 2016 10:11:01 -0800 (PST) Received: from alex.super (stone.g-service.ru. [84.22.141.217]) by smtp.googlemail.com with ESMTPSA id m8sm2566924lfe.32.2016.02.13.10.10.59 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Feb 2016 10:11:00 -0800 (PST) Subject: Re: FreeBSD Port: deskutils/calibre To: Guido Falsi , "ports@FreeBSD.org Ports" 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> <56BF6CBF.6000508@FreeBSD.org> Cc: gnome@FreeBSD.org From: "Alex V. Petrov" Message-ID: <56BF71B2.7070608@gmail.com> Date: Sun, 14 Feb 2016 01:10:58 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56BF6CBF.6000508@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2016 18:11:04 -0000 Guido, your patch works for me. Thank you! 14.02.2016 00:49, Guido Falsi пишет: > 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. > -- ----- Alex.