[Wine] Re: make depend fails when building Wine 1.1.40

hellork wineforum-user at winehq.org
Sat Mar 6 04:07:12 CST 2010


Forget about that. The maintainers, for whatever reason, enabled maintainer mode in the wine.spec file and wine's configure.ac is enabling -Werror in maintainer mode, which doesn't belong in there. Maintainer mode is for automatically detecting when files like configure.ac change and rebuilding them, but anyway I don't want to get into an argument over what maintainer mode is for. Personally, I don't use it... My relevant section now looks like:


Code:
autoreconf

%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure \
	--sysconfdir=%{_sysconfdir}/wine \
	--x-includes=%{_includedir} --x-libraries=%{_libdir} \
	--with-pulse \
        --with-x \
%ifarch x86_64
	--enable-win64 \
%endif
	--disable-tests > /dev/null

%{__make} TARGETFLAGS="" %{?_smp_mflags} -s > /dev/null

%install
rm -rf %{buildroot}




	Notice I got rid of the extraneous "make depend" as it is no longer needed.


	Ignore the -s > /dev/null bits. Those are my personal preferences and I sometimes use them at my own risk and discretion ;)


	Also add after %{_libdir}/wine/dinput8.dll.so the line:
%{_libdir}/wine/dispex.dll.so


64Bit Note: On x86_64 systems wine.spec builds 64 bit wine, which might not be what you want, since it will only run 64 bit windows programs. I had to change the first line in wine.spec to read "%define no64bit 1", create a new wine.src.rpm with rpmbuild -bs and install mock to rebuild the new .src rpm as 32 bit.







More information about the wine-users mailing list