Сравнение wine-proton-10.0.4 с wine-proton-11.0.2

/usr/portage/app-emulation/wine-proton/wine-proton-11.0.2.ebuild 2026-08-26 20:03:05.150476276 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{11..14} )
7
inherit optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine
6
PYTHON_COMPAT=( python3_{12..14} )
7
inherit eapi9-ver flag-o-matic optfeature python-any-r1
8
inherit readme.gentoo-r1 toolchain-funcs wine
8 9

  
9 10
WINE_GECKO=2.47.4
10 11
WINE_MONO=10.4.1
......
17 18
else
18 19
	SRC_URI="https://github.com/ValveSoftware/wine/archive/refs/tags/proton-wine-${WINE_PV}.tar.gz"
19 20
	S=${WORKDIR}/${PN}-wine-${WINE_PV}
20
	KEYWORDS="-* amd64 ~x86"
21
	KEYWORDS="-* ~amd64 ~x86"
21 22
fi
22 23

  
23 24
DESCRIPTION="Valve Software's fork of Wine"
24 25
HOMEPAGE="https://github.com/ValveSoftware/wine/"
25 26

  
26 27
LICENSE="
27
	LGPL-2.1+ BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff
28
	LGPL-2.1+
29
	BSD BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain
28 30
	|| ( WTFPL-2 public-domain )
29 31
"
30 32
SLOT="${PV}"
......
116 118
"
117 119
DEPEND="
118 120
	${WINE_COMMON_DEPEND}
119
	|| (
120
		sys-devel/gcc:*
121
		llvm-runtimes/compiler-rt:*[atomic-builtins(-)]
122
	)
123
	sys-kernel/linux-headers
121
	>=sys-kernel/linux-headers-6.14
124 122
	X? ( x11-base/xorg-proto )
125 123
"
126 124
BDEPEND="
127 125
	${PYTHON_DEPS}
128 126
	dev-lang/perl
127
	sys-devel/binutils:*
129 128
	sys-devel/bison
130 129
	sys-devel/flex
130
	sys-devel/gcc:*
131 131
	virtual/pkgconfig
132 132
	nls? ( sys-devel/gettext )
133 133
	wayland? ( dev-util/wayland-scanner )
......
138 138
	res_getservers # false positive
139 139
)
140 140
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
141
# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06
142
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine.*-preloader"
141 143

  
142 144
PATCHES=(
143 145
	"${FILESDIR}"/${PN}-7.0.4-musl.patch
144 146
	"${FILESDIR}"/${PN}-7.0.4-noexecstack.patch
145 147
	"${FILESDIR}"/${PN}-8.0.1c-unwind.patch
146
	"${FILESDIR}"/${PN}-8.0.4-restore-menubuilder.patch
147 148
	"${FILESDIR}"/${PN}-9.0-rpath.patch
148
	"${FILESDIR}"/${PN}-9.0.4-binutils2.44.patch
149
	"${FILESDIR}"/${PN}-11.0.1-restore-menubuilder.patch
149 150
)
150 151

  
151 152
src_prepare() {
......
154 155

  
155 156
	wine_src_prepare
156 157

  
157
	# this is kind-of best effort and ignores llvm slots, ideally
158
	# atomic-builtins should be package.use.force then could drop this
159
	if tc-is-clang && [[ $(tc-get-c-rtlib) == compiler-rt ]] &&
160
		has_version -d 'llvm-runtimes/compiler-rt[-atomic-builtins(-)]'
161
	then
162
		# needed by Valve's fsync patches if using compiler-rt w/o atomics
163
		sed -e '/^UNIX_LIBS.*=/s/$/ -latomic/' \
164
			-i dlls/{ntdll,winevulkan}/Makefile.in || die
165
	fi
166

  
167 158
	# proton variant also needs specfiles and vulkan
168 159
	tools/make_specfiles || die # perl
169 160
	dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python
170 161
}
171 162

  
172 163
src_configure() {
164
	# Valve does not really support anything but gcc+bfd, and some of
165
	# their modifications have been fragile and accumulating issues
166
	# that they seemingly have no interest in fixing (bug #977021)
167
	tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP
168
	tc-ld-is-bfd || append-ldflags -fuse-ld=bfd
169
	strip-unsupported-flags
170

  
173 171
	local wineconfargs=(
174 172
		# upstream (Valve) doesn't really support misc configurations (e.g.
175 173
		# adds vulkan code not always guarded by --with-vulkan), so force
......
184 182
		--without-cups
185 183
		--without-gphoto
186 184
		--without-gssapi
185
		--without-hwloc
187 186
		--without-krb5
188 187
		--without-netapi
189 188
		--without-opencl
190 189
		--without-pcap
191 190
		--without-pcsclite
192 191
		--without-sane
192
		ac_cv_header_bluetooth_bluetooth_h=no
193
		ac_cv_header_bluetooth_rfcomm_h=no
193 194
		ac_cv_lib_soname_odbc=
194 195

  
195 196
		$(use_enable gecko mshtml)
......
204 205
		$(use_with fontconfig)
205 206
		$(use_with gstreamer)
206 207
		$(use_with nls gettext)
207
		--without-osmesa # media-libs/mesa no longer supports this
208 208
		--without-oss # media-sound/oss is not packaged (OSSv4)
209 209
		$(use_with pulseaudio pulse)
210 210
		$(use_with sdl)
......
253 253
	ewarn "with real Steam+Proton, and Gentoo is largely unable to help"
254 254
	ewarn "unless it is a build/packaging issue. So, if need support, try"
255 255
	ewarn "normal Wine or Proton instead."
256

  
257
	if ver_replacing -lt 11; then
258
		elog
259
		elog "Note that >=${PN}-11 now has ntsync support that can be used"
260
		elog "rather than setting WINEFSYNC=1. It is used by default if /dev/ntsync"
261
		elog "exists unless PROTON_NO_NTSYNC=1 is set. Requires CONFIG_NTSYNC in"
262
		elog "the kernel and, if built as a module, will need a file containing"
263
		elog "ntsync in ${EROOT}/etc/modules-load.d/ to be auto-loaded."
264
	fi
256 265
}
Спасибо!