mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
app-emulation/wine-proton: force gcc+bfd for wine-proton-11
May be there permanently unless Valve gains an interest in doing support outside their own usecase. Would rather not accumulate downstream fixes and workarounds. For users that do not want to pull gcc, I'd recommend to stick to regular wine-vanilla/staging which does care about clang support. Closes: https://bugs.gentoo.org/977021 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -117,18 +117,16 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
|| (
|
||||
sys-devel/gcc:*
|
||||
llvm-runtimes/compiler-rt:*[atomic-builtins(-)]
|
||||
)
|
||||
>=sys-kernel/linux-headers-6.14
|
||||
X? ( x11-base/xorg-proto )
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl
|
||||
sys-devel/binutils:*
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gcc:*
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
@@ -156,22 +154,19 @@ src_prepare() {
|
||||
|
||||
wine_src_prepare
|
||||
|
||||
# this is kind-of best effort and ignores llvm slots, ideally
|
||||
# atomic-builtins should be package.use.force then could drop this
|
||||
if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] &&
|
||||
has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]'
|
||||
then
|
||||
# needed by Valve's fsync patches if using compiler-rt w/o atomics
|
||||
sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \
|
||||
-i dlls/{ntdll,winevulkan}/Makefile.in || die
|
||||
fi
|
||||
|
||||
# proton variant also needs specfiles and vulkan
|
||||
tools/make_specfiles || die # perl
|
||||
dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Valve does not really support anything but gcc+bfd, and some of
|
||||
# their modifications to Wine have been fragile and accumulating
|
||||
# issues that they have no interest in fixing (bug #977021)
|
||||
tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP
|
||||
tc-ld-is-bfd || append-ldflags -fuse-ld=bfd
|
||||
strip-unsupported-flags
|
||||
|
||||
local wineconfargs=(
|
||||
# upstream (Valve) doesn't really support misc configurations (e.g.
|
||||
# adds vulkan code not always guarded by --with-vulkan), so force
|
||||
|
||||
@@ -117,18 +117,16 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
|| (
|
||||
sys-devel/gcc:*
|
||||
llvm-runtimes/compiler-rt:*[atomic-builtins(-)]
|
||||
)
|
||||
>=sys-kernel/linux-headers-6.14
|
||||
X? ( x11-base/xorg-proto )
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl
|
||||
sys-devel/binutils:*
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gcc:*
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
@@ -156,22 +154,19 @@ src_prepare() {
|
||||
|
||||
wine_src_prepare
|
||||
|
||||
# this is kind-of best effort and ignores llvm slots, ideally
|
||||
# atomic-builtins should be package.use.force then could drop this
|
||||
if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] &&
|
||||
has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]'
|
||||
then
|
||||
# needed by Valve's fsync patches if using compiler-rt w/o atomics
|
||||
sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \
|
||||
-i dlls/{ntdll,winevulkan}/Makefile.in || die
|
||||
fi
|
||||
|
||||
# proton variant also needs specfiles and vulkan
|
||||
tools/make_specfiles || die # perl
|
||||
dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Valve does not really support anything but gcc+bfd, and some of
|
||||
# their modifications have been fragile and accumulating issues
|
||||
# that they seemingly have no interest in fixing (bug #977021)
|
||||
tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP
|
||||
tc-ld-is-bfd || append-ldflags -fuse-ld=bfd
|
||||
strip-unsupported-flags
|
||||
|
||||
local wineconfargs=(
|
||||
# upstream (Valve) doesn't really support misc configurations (e.g.
|
||||
# adds vulkan code not always guarded by --with-vulkan), so force
|
||||
|
||||
Reference in New Issue
Block a user