pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49079: devel/gobject-introspection needs shoehorning of path



The following reply was made to PR pkg/49079; it has been noted by GNATS.

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/49079: devel/gobject-introspection needs shoehorning of path
Date: Thu, 24 Aug 2017 17:06:52 +0100

 As obache@ points out, there is an open question on what pkgsrc should do
 about XDG variables.
 
 He hints at bsd.pkg.mk
 
 # To sanitise environment set PKGSRC_SETENV=${SETENV} -i
 # This will however cause build failures (e.g. "www/firefox"). Settings
 # like "ALLOW_VULNERABLE_PACKAGES" will also not be correctly passed
 # to dependence builds.
 PKGSRC_SETENV?= ${SETENV}
 
 at tweaking/removing the XDG variables.
 
 At the other end of the chain, gobject-introspection contains:
 
 def get_system_data_dirs():
     '''
     This is a Python reimplemention of `g_get_system_data_dirs()` because we don't want to
     rely on the python-xdg package and we can't depend on GLib via introspection.
     If any changes are made to that function they'll need to be copied here.
     '''
     xdg_data_dirs = [x for x in os.environ.get('XDG_DATA_DIRS', '').split(os.pathsep)]
     if not xdg_data_dirs and os.name != 'nt':
         xdg_data_dirs.append('/usr/local/share')
         xdg_data_dirs.append('/usr/share')
 
     return xdg_data_dirs
 


Home | Main Index | Thread Index | Old Index