Skip to content

Commit

Permalink
totem-pl-parser: fix build on older systems
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed May 12, 2024
1 parent cd90aeb commit 0a529b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gnome/totem-pl-parser/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ long_description totem-pl-parser is a simple GObject-based library to parse \
a host of playlist formats, as well as save those

homepage https://gitlab.gnome.org/GNOME/${name}
platforms darwin
master_sites gnome:sources/${name}/${branch}/

use_xz yes
Expand All @@ -41,6 +40,16 @@ configure.args -Denable-libarchive=yes \
-Denable-uchardet=yes \
-Denable-gtk-doc=true

# /usr/include/unistd.h: error: redundant redeclaration of ‘_Exit’ etc.
compiler.blacklist-append \
*gcc-4.0 *gcc-4.2

# error: 'ret' may be used uninitialized [-Werror=maybe-uninitialized]
if {[string match *gcc* ${configure.compiler}]} {
patchfiles-append \
patch-fix-gcc-build.diff
}

# uses g-ir-scanner, which uses $CC from env
if {${universal_possible} && [variant_isset universal]} {
foreach arch ${configure.universal_archs} {
Expand Down
10 changes: 10 additions & 0 deletions gnome/totem-pl-parser/files/patch-fix-gcc-build.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- meson.build 2021-06-25 20:17:41.000000000 +0800
+++ meson.build 2024-05-12 13:11:07.000000000 +0800
@@ -123,7 +123,6 @@
'-Werror=pointer-to-int-cast',
'-Werror=empty-body',
'-Werror=write-strings',
- '-Werror=maybe-uninitialized',
]
else
test_cflags = []

0 comments on commit 0a529b6

Please sign in to comment.