diff options
author | Pablo <pord@tuta.io> | 2020-01-07 10:14:09 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-01-09 08:00:59 +0200 |
commit | b9730df95f348f29a57c02cd3c9febdff47d1ead (patch) | |
tree | 559830393d9df6fea83f388f29a6d6615cd6cc6c /x11-terms/kitty/files | |
parent | dev-ruby/rack-cache: add 1.11.0 (diff) | |
download | gentoo-b9730df95f348f29a57c02cd3c9febdff47d1ead.tar.gz gentoo-b9730df95f348f29a57c02cd3c9febdff47d1ead.tar.bz2 gentoo-b9730df95f348f29a57c02cd3c9febdff47d1ead.zip |
x11-terms/kitty: bump to 0.15.1 and add support for python 3.8
Signed-off-by: Pablo Orduna <pabloorduna98@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14081
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-terms/kitty/files')
-rw-r--r-- | x11-terms/kitty/files/kitty-0.15.1-flags.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/x11-terms/kitty/files/kitty-0.15.1-flags.patch b/x11-terms/kitty/files/kitty-0.15.1-flags.patch new file mode 100644 index 000000000000..cf09a4a5bab8 --- /dev/null +++ b/x11-terms/kitty/files/kitty-0.15.1-flags.patch @@ -0,0 +1,49 @@ +Respect user CFLAGS. + +--- a/setup.py ++++ b/setup.py +@@ -204,7 +204,7 @@ + if ccver >= (5, 0): + df += ' -Og' + float_conversion = '-Wfloat-conversion' +- optimize = df if debug or sanitize else '-O3' ++ optimize = '' + sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set() + cppflags = os.environ.get( + 'OVERRIDE_CPPFLAGS', '-D{}DEBUG'.format('' if debug else 'N'), +@@ -217,7 +217,7 @@ + cflags = os.environ.get( + 'OVERRIDE_CFLAGS', ( + '-Wextra {} -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11' +- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden' ++ ' -pedantic-errors {} {} -fwrapv {} {} {} -fvisibility=hidden' + ).format( + float_conversion, std, + optimize, +@@ -232,7 +232,7 @@ + ) + ldflags = os.environ.get( + 'OVERRIDE_LDFLAGS', +- '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3') ++ '-Wall ' + ' '.join(sanitize_args) + ) + ldflags = shlex.split(ldflags) + ldflags.append('-shared') +@@ -614,7 +614,7 @@ + + + def build_launcher(args, launcher_dir='.', bundle_type='source'): +- cflags = '-Wall -Werror -fpie'.split() ++ cflags = '-Wall -fpie'.split() + cppflags = [] + libs = [] + if args.profile or args.sanitize: +@@ -626,8 +626,6 @@ + cflags.append('-g') + if args.profile: + libs.append('-lprofiler') +- else: +- cflags.append('-O3') + if bundle_type.endswith('-freeze'): + cppflags.append('-DFOR_BUNDLE') + cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version())) |