mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
cdrtools-native: Fix build with GCC 14
Add a patch to fix do_configure with GCC 14. Disable building cdda2wav because it doesn't build with GCC 14. (From OE-Core rev: 748d5f637f5aff3bc110b156cc3cb8e008f284c9) Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0fbe1766abb00edeb8ec9a0c8bdb4e723be4f352) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
3f86c9b37c
commit
0c585f6b66
@@ -14,6 +14,7 @@ SRC_URI = " \
|
|||||||
${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${PV}.tar.bz2 \
|
${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${PV}.tar.bz2 \
|
||||||
file://0001-Don-t-set-uid-gid-during-install.patch \
|
file://0001-Don-t-set-uid-gid-during-install.patch \
|
||||||
file://riscv64-linux-gcc.rul \
|
file://riscv64-linux-gcc.rul \
|
||||||
|
file://gcc14-fix.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b"
|
SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b"
|
||||||
@@ -27,6 +28,9 @@ export ac_cv_prog_CC = "${CC}"
|
|||||||
inherit native
|
inherit native
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
# cdda2wav does not build with GCC 14
|
||||||
|
rm -f ${S}/TARGETS/55cdda2wav
|
||||||
|
|
||||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf
|
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf
|
||||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf
|
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf
|
||||||
install -m 0644 ${WORKDIR}/riscv64-linux-gcc.rul ${S}/RULES/
|
install -m 0644 ${WORKDIR}/riscv64-linux-gcc.rul ${S}/RULES/
|
||||||
|
|||||||
13
meta/recipes-devtools/cdrtools/cdrtools/gcc14-fix.patch
Normal file
13
meta/recipes-devtools/cdrtools/cdrtools/gcc14-fix.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
|
||||||
|
Upstream-Status: Inappropriate [native]
|
||||||
|
--- cdrtools-3.01/autoconf/configure~ 2015-07-06 23:41:27.000000000 +0200
|
||||||
|
+++ cdrtools-3.01/autoconf/configure 2024-05-01 09:37:40.897253690 +0200
|
||||||
|
@@ -1205,7 +1205,7 @@
|
||||||
|
#line 1206 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
|
||||||
|
-main(){return(0);}
|
||||||
|
+int main(){return(0);}
|
||||||
|
EOF
|
||||||
|
if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
|
ac_cv_prog_cc_works=yes
|
||||||
Reference in New Issue
Block a user