PATCH: fix for RPM

Pavel Roskin proski at
Tue Jun 18 10:49:41 CDT 2002

Hello, Kristian!

I have downloaded the latest Wine RPM from
It doesn't work at all, at least in the configuration without Windows.
The trace shows that Wine cannot load KERNEL32.dll because it looks in 
/tmp/wine-rpm-root/usr/lib/wine/ instead of /usr/lib/wine/:

08072a70:warn:module:BUILTIN32_dlopen cannot open .so lib for builtin 
kernel32.dll: /tmp/wine-rpm-root/usr/lib/wine/ cannot open 
shared object file: No such file or directory
08072a70:warn:module:MODULE_LoadLibraryExA Failed to load module 
'C:\WINDOWS\SYSTEM\KERNEL32.dll'; error=2
08072a70:trace:heap:RtlFreeHeap (40370000,00000002,40370e50): returning 
08072a70:err:module:PE_fixup_imports Module (file) KERNEL32.dll (which is 
needed by C:\windows\IsUninst.exe) not found

Wine should not be configured with the /usr prefix.  The prefix should 
only be changed to $RPM_BUILD_ROOT/usr during the install.

I'm copying my message to the list, because I'm afraid that the RPMs on are not really maintained.  I remember seeing
the same error a few months ago, I just didn't have time to report it.  
How can this error remain unfixed for months, if it makes Wine useless?

This patch has been tested.  The resulting RPM works.

--- wine.spec.unstrip
+++ wine.spec.unstrip
@@ -18,14 +18,14 @@
 %setup -q 
-./configure --without-curses --prefix=$RPM_BUILD_ROOT/usr \
+./configure --without-curses --prefix=/usr \
 make depend
 make CFLAGS='-O2 -Wall'
-make install
+make install prefix=$RPM_BUILD_ROOT/usr
 mkdir -p $RPM_BUILD_ROOT/etc/wine
 cp documentation/samples/config $RPM_BUILD_ROOT/etc/wine/config
 cp tools/fnt2bdf $RPM_BUILD_ROOT/usr/bin

Pavel Roskin

More information about the wine-devel mailing list