You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-misc/mendeleydesktop/files/mendeleydesktop-1.17.8-libd...

20 lines
578 B

Patch to find libstdc++.
https://bugs.funtoo.org/browse/FL-3519
--- a/bin/mendeleydesktop
+++ b/bin/mendeleydesktop
@@ -29,6 +29,13 @@ def library_paths():
paths.append("/usr/lib/x86_64-linux-gnu")
paths.append("/usr/lib/i386-linux-gnu")
+ gcc_libpath = subprocess.Popen(
+ '/usr/bin/gcc-config -L', shell=True, stdout=subprocess.PIPE,
+ ).stdout.read().decode('utf-8').replace('\n', '').split(':')
+ for path in gcc_libpath:
+ if len(path) > 0:
+ paths.append(path)
+
return paths
def library_version_from_path(lib_path):