diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:40:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:40:17 +0000 |
commit | 38a4353f63924f0734ee6d85efdf848a6d93bc7e (patch) | |
tree | a62557ea80510890872e67e39fd4de63167b9db7 /debian/patches/0003-add_powerline_compile_flags.patch | |
parent | Adding upstream version 2.8.3. (diff) | |
download | powerline-38a4353f63924f0734ee6d85efdf848a6d93bc7e.tar.xz powerline-38a4353f63924f0734ee6d85efdf848a6d93bc7e.zip |
Adding debian version 2.8.3-4.debian/2.8.3-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0003-add_powerline_compile_flags.patch')
-rw-r--r-- | debian/patches/0003-add_powerline_compile_flags.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/0003-add_powerline_compile_flags.patch b/debian/patches/0003-add_powerline_compile_flags.patch new file mode 100644 index 0000000..955824e --- /dev/null +++ b/debian/patches/0003-add_powerline_compile_flags.patch @@ -0,0 +1,20 @@ +Author: Jerome Charaoui <jerome@riseup.net> +Description: Adds CPPFLAGS and LDFLAGS to scripts/powerline compiler +Forwarded: not-needed + +diff -Naurp powerline.orig/setup.py powerline/setup.py +--- powerline.orig/setup.py ++++ powerline/setup.py +@@ -30,9 +30,11 @@ def compile_client(): + from distutils.ccompiler import new_compiler + compiler = new_compiler().compiler + cflags = os.environ.get('CFLAGS', str('-O3')) ++ ldflags = os.environ.get('LDFLAGS', '') ++ cppflags = os.environ.get('CPPFLAGS', '') + # 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) + shlex.split(cppflags) + ['client/powerline.c', '-o', 'scripts/powerline']) + + try: + compile_client() |