diff options
author | Stephan Hartmann <sultan@gentoo.org> | 2022-05-15 13:10:36 +0200 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2022-05-15 13:11:15 +0200 |
commit | 39b86fa4aea725bf8020389cbfb81c8eac5f848d (patch) | |
tree | 0058aa0364286262798cbf7e664b5b85ab744f73 /app-shells/ksh/files | |
parent | dev-python/httpx: Fix sed expression (diff) | |
download | gentoo-39b86fa4aea725bf8020389cbfb81c8eac5f848d.tar.gz gentoo-39b86fa4aea725bf8020389cbfb81c8eac5f848d.tar.bz2 gentoo-39b86fa4aea725bf8020389cbfb81c8eac5f848d.zip |
app-shells/ksh: fix building with gcc-12
Bug: https://bugs.gentoo.org/840538
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'app-shells/ksh/files')
-rw-r--r-- | app-shells/ksh/files/ksh-1.0.0-beta.2-gcc12.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-shells/ksh/files/ksh-1.0.0-beta.2-gcc12.patch b/app-shells/ksh/files/ksh-1.0.0-beta.2-gcc12.patch new file mode 100644 index 000000000000..1d46cc3b3f5e --- /dev/null +++ b/app-shells/ksh/files/ksh-1.0.0-beta.2-gcc12.patch @@ -0,0 +1,63 @@ +From 4a1dbcbaa04b6edf4c8c5d950031c6d853acf358 Mon Sep 17 00:00:00 2001 +From: Vincent Mihalkovic <vmihalko@redhat.com> +Date: Wed, 11 May 2022 14:27:35 +0200 +Subject: [PATCH] Mamfile: add -lm flag where needed + +--- + src/cmd/builtin/Mamfile | 2 +- + src/cmd/ksh93/Mamfile | 8 ++++---- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/cmd/builtin/Mamfile b/src/cmd/builtin/Mamfile +index 16974ae54ad2..f6e726105e43 100644 +--- a/src/cmd/builtin/Mamfile ++++ b/src/cmd/builtin/Mamfile +@@ -50,7 +50,7 @@ make install + exec - ${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""builtin"\" -D_PACKAGE_ast -DCMD_STANDALONE=b_pty -c pty.c + done pty.o generated + bind -lutil dontcare +- exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} -lm ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o pty pty.o ${mam_libutil} ${mam_libast} ${mam_libcmd} ++ exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o pty pty.o ${mam_libutil} ${mam_libast} ${mam_libcmd} -lm + done pty generated + make ${INSTALLROOT}/bin + exec - if silent test ! -d ${INSTALLROOT}/bin +diff --git a/src/cmd/ksh93/Mamfile b/src/cmd/ksh93/Mamfile +index 3936ff926902..e2899523b634 100644 +--- a/src/cmd/ksh93/Mamfile ++++ b/src/cmd/ksh93/Mamfile +@@ -1219,7 +1219,7 @@ make install + make data/math.tab implicit + done data/math.tab + done features/math.sh dontcare +- exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} : run features/math.sh ${PACKAGEROOT}/src/cmd/ksh93/data/math.tab ++ exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdll} ${mam_libcmd} ${mam_libast} ${mam_libm} ${mam_libnsl} -lm : run features/math.sh ${PACKAGEROOT}/src/cmd/ksh93/data/math.tab + make ${PACKAGE_ast_INCLUDE}/ast_standards.h implicit + done ${PACKAGE_ast_INCLUDE}/ast_standards.h dontcare + make ${INSTALLROOT}/src/lib/libast/FEATURE/float implicit +@@ -1386,7 +1386,7 @@ make install + prev +li + prev ${mam_libsocket} + prev ${mam_libsecdb} +- exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ++ exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o ksh pmain.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm + done ksh generated + make shcomp + make shcomp.o +@@ -1408,7 +1408,7 @@ make install + prev +li + prev ${mam_libsocket} + prev ${mam_libsecdb} +- exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} ++ exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o shcomp shcomp.o ${mam_libshell} ${mam_libnsl} ${mam_libast} -lm + done shcomp generated + make suid_exec + make suid_exec.o +@@ -1429,7 +1429,7 @@ make install + prev +li + prev ${mam_libsocket} + prev ${mam_libsecdb} +- exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} -lm ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast} ++ exec - ${CC} ${CCLDFLAGS} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${KSH_SHOPTFLAGS} ${CCFLAGS} ${LDFLAGS} ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -o suid_exec suid_exec.o ${mam_libast} ${mam_libnsl} ${mam_libast} -lm + done suid_exec generated + make shell + prev libshell.a archive |