pkgsrc-Bugs archive

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

Re: pkg/51074: devel/meld doesn't work with base Xorg



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

From: coypu%SDF.ORG@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/51074: devel/meld doesn't work with base Xorg
Date: Tue, 14 Jun 2016 17:16:54 +0000

 Hi,
 
 setup.py in python27 has the following:
 
     def add_multiarch_paths(self):
         # Debian/Ubuntu multiarch support.
         # https://wiki.ubuntu.com/MultiarchSpec
         cc = sysconfig.get_config_var('CC')
         tmpfile = os.path.join(self.build_temp, 'multiarch')
         if not os.path.exists(self.build_temp):
             os.makedirs(self.build_temp)
         ret = os.system(
             '%s -print-multiarch > %s 2> /dev/null' % (cc, tmpfile))
         multiarch_path_component = ''
         try:
             if ret >> 8 == 0:
                 with open(tmpfile) as fp:
                     multiarch_path_component = fp.readline().strip()
         finally:
             os.unlink(tmpfile)
 
         if multiarch_path_component != '':
             add_dir_to_list(self.compiler.library_dirs,
                             '/usr/lib/' + multiarch_path_component)
             add_dir_to_list(self.compiler.include_dirs,
                             '/usr/include/' + multiarch_path_component)
 
 Does that sound like it will work?
 I am not familiar enough with python to use this.
 


Home | Main Index | Thread Index | Old Index