Skip to content

Commit

Permalink
app-cdr/cuecue: fix configure w/ clang 16
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Nov 22, 2022
1 parent e41d8af commit 806eccf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EAPI=8

inherit toolchain-funcs
inherit autotools toolchain-funcs

DESCRIPTION="Cuecue converts .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
Expand All @@ -30,8 +30,16 @@ PATCHES=(
"${FILESDIR}"/${P}-namespace.patch
"${FILESDIR}"/${P}-unused.patch
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-configure.patch
)

src_prepare() {
default

# Clang 16
eautoreconf
}

src_configure() {
econf \
$(use_enable flac) \
Expand Down
13 changes: 13 additions & 0 deletions app-cdr/cuecue/files/cuecue-0.2.2-configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-ansi -pednatic breaks various configure tests. autoconf already says
not to use -Werror but any -W* is dangerous for configure itself.
--- a/configure.in
+++ b/configure.in
@@ -4,7 +4,7 @@ dnl AM_INIT_AUTOMAKE

AC_CONFIG_SRCDIR(src/libcuecue/cuecue.c)

-CFLAGS="$CFLAGS -Wall -ansi -pedantic -g -Os"
+CFLAGS="-Wall -O2 ${CFLAGS}"
VERSION=0.2.2

PACKAGE="cuecue"

0 comments on commit 806eccf

Please sign in to comment.