Package: powerline Version: 1.2-2 I've inlined the updated patches: $ cat add_powerline_compile_flags.patch diff --git a/setup.py b/setup.py index 7dbf021..dacad5b 100755 --- a/setup.py +++ b/setup.py @@ -29,9 +29,10 @@ def compile_client(): from distutils.ccompiler import new_compiler compiler = new_compiler().compiler cflags = os.environ.get('CFLAGS', '-O3') + ldflags = os.environ.get('LDFLAGS', '') # A normal split would do a split on each space which might be incorrect. The # shlex will not split if a space occurs in an arguments value. - subprocess.check_call(compiler + shlex.split(cflags) + ['client/powerline.c', '-o', 'scripts/powerline']) + subprocess.check_call(compiler + shlex.split(cflags) + shlex.split(ldflags) + ['client/powerline.c', '-o', 'scripts/powerline'])
try: compile_client() $ $ cat config_files_path.patch diff --git a/powerline/__init__.py b/powerline/__init__.py index 9d2bb68..0feefc9 100644 --- a/powerline/__init__.py +++ b/powerline/__init__.py @@ -148,8 +148,7 @@ def get_config_paths(): config_dirs = os.environ.get('XDG_CONFIG_DIRS', DEFAULT_SYSTEM_CONFIG_DIR) if config_dirs is not None: config_paths[:0] = reversed([join(d, 'powerline') for d in config_dirs.split(':')]) - plugin_path = join(os.path.realpath(os.path.dirname(__file__)), 'config_files') - config_paths.insert(0, plugin_path) + config_paths.insert(0, '/usr/share/powerline/config_files') return config_paths $ Thanks,