git: 94dd820deba4 - main - deskutils/budgie-desktop-view: Disable predefined optimization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jul 2023 17:55:41 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=94dd820deba4ed7aa8a2c2b1297e27088181f221 commit 94dd820deba4ed7aa8a2c2b1297e27088181f221 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-07-05 17:48:21 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-07-05 17:48:31 +0000 deskutils/budgie-desktop-view: Disable predefined optimization Disable optimization set by upstream which overrides framework and also tries to clever by breaking meson's internal handling of optimization Reported by: jbeich Approved by: portmgr (blanket) --- .../budgie-desktop-view/files/patch-meson.build | 15 ++++++++++++-- .../files/patch-src_meson.build | 24 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/deskutils/budgie-desktop-view/files/patch-meson.build b/deskutils/budgie-desktop-view/files/patch-meson.build index 272db9c221fe..af0ea397d357 100644 --- a/deskutils/budgie-desktop-view/files/patch-meson.build +++ b/deskutils/budgie-desktop-view/files/patch-meson.build @@ -1,6 +1,17 @@ ---- meson.build.orig 2022-03-06 16:37:45 UTC +--- meson.build.orig 2023-01-29 14:42:17 UTC +++ meson.build -@@ -75,7 +75,7 @@ if xdg_appdir == '' +@@ -4,10 +4,8 @@ project( + version: '1.2.1', + license: [ 'Apache-2.0' ], + default_options: [ +- 'b_lto=false', + 'c_std=c11', + 'buildtype=release', +- 'optimization=3', + 'werror=true', + 'warning_level=3', + ], +@@ -75,7 +73,7 @@ if xdg_appdir == '' if with_stateless == true xdg_appdir = join_paths(datadir, 'xdg', 'autostart') else diff --git a/deskutils/budgie-desktop-view/files/patch-src_meson.build b/deskutils/budgie-desktop-view/files/patch-src_meson.build new file mode 100644 index 000000000000..87e1c8e6a054 --- /dev/null +++ b/deskutils/budgie-desktop-view/files/patch-src_meson.build @@ -0,0 +1,24 @@ +--- src/meson.build.orig 2023-07-05 17:42:24 UTC ++++ src/meson.build +@@ -21,14 +21,6 @@ desktop_view_deps = [ + + c_flags = [] + +-optimization_level = get_option('optimization') +- +-if optimization_level == '0' +- warning('We recommend setting an optimization level') +-else +- c_flags += '-O'+optimization_level +-endif +- + executable( + 'org.buddiesofbudgie.budgie-desktop-view', + desktop_view_sources, +@@ -42,4 +34,4 @@ executable( + install: true, + install_dir: join_paths(get_option('prefix'), get_option('bindir')), + c_args: c_flags, +-) +\ No newline at end of file ++)