NetBSD Problem Report #47523

From bad@bsd.de  Sat Feb  2 00:02:09 2013
Return-Path: <bad@bsd.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id BD82563E568
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  2 Feb 2013 00:02:08 +0000 (UTC)
Message-Id: <20130201235655.857299F@limiting-factor.k.bsd.de>
Date: Sat,  2 Feb 2013 00:56:55 +0100 (MET)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@gnats.NetBSD.org
Subject: misc/xdg-utils completely broken because of rampant absolute paths
X-Send-Pr-Version: 3.95

>Number:         47523
>Category:       pkg
>Synopsis:       xdg-utils doesn't know about pkgsrc directories
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 02 00:05:00 +0000 2013
>Closed-Date:    
>Last-Modified:  Sat Dec 31 05:51:37 +0000 2022
>Originator:     Christoph Badura
>Release:        NetBSD 5.1_STABLE
>Organization:
bozotic software testing labs

>Environment:


System: NetBSD limiting-factor 5.1_STABLE NetBSD 5.1_STABLE (nervous-energy) #4: Fri Nov 4 16:57:02 MET 2011 root@youll-thank-me-later:/m/obj/m/src/sys/arch/i386/compile/nervous-energy i386
Architecture: i386
Machine: i386
>Description:
programs from xdg-utils bomb out randomly depending on whether various
directories at absolute paths exist or not, none of which are in standard
pkgsrc locations.

Found by code inspection after packaging fotoxx failed with:
	xdg-desktop-menu: No writable system menu directory found.

>How-To-Repeat:

( cd /usr/pkgsrc/graphics/fotoxx && make )
>Fix:
	at least xdg-desktop-menu is full with absolute paths that may or may
	not exist in a pkgsrc environment, none of which are in standard
	pkgsrc locations and are inappropriate for USER_DESTDIR in any case.
	Locations checked include but are not limited to e.g. /usr/share,
	/usr/local/share, /etc/xdg.


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 18 Sep 2018 11:03:47 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 11:09:44 +0000
State-Changed-Why:
I think that xdg-utils-1.1.3nb1 contains a fix for that, JFTR here
the commit message:

 revision 1.14
 date: 2018-08-20 02:43:33 +0200;  author: leot;  state: Exp;  lines: +9 -1;  commitid: m2EPYZbXvtWXfNOA;
 xdg-utils: Avoid hardcoded paths via a SUBST

 Previously all xdg-utils scripts just honored system /usr/local and /etc, fix
 that by substitute them via SUBST framework.

 Bump PKGREVISION

Can you please let us know if that fixes the issue?
(if that's the case we can also remove the workaround for that
in graphics/fotoxx/Makefile)


Thank you!


From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/47523 (xdg-utils doesn't know about pkgsrc directories)
Date: Thu, 20 Sep 2018 14:19:47 +0200

 On Tue, Sep 18, 2018 at 11:09:44AM +0000, leot@NetBSD.org wrote:
 > I think that xdg-utils-1.1.3nb1 contains a fix for that, JFTR here
 > the commit message:
 > [...] 
 > Can you please let us know if that fixes the issue?
 > (if that's the case we can also remove the workaround for that
 > in graphics/fotoxx/Makefile)

 I can't test easily.  I would have to bootstrap a test system.

 Maybe someone can test by disabling the workaround in fotoxx?

 --chris

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 31 Dec 2022 05:51:37 +0000
State-Changed-Why:
feedback provided in 2018, submitter can't test.
ideally someone should test and remove the hopefully-uneeded workaround.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.