right way to compile wine with a "buildroot" DESTDIR is missing

Raul Dias chaos at swi.com.br
Wed Aug 14 18:59:04 CDT 2002


Ove Kaaven <ovehk at ping.uio.no> wrote:
>On Wed, 14 Aug 2002, Raul Dias wrote:
>> Alexandre Julliard <julliard at winehq.com> wrote:
>> >Raul Dias <chaos at swi.com.br> writes:
>> >> So what I really would like to know is
>> >> which way is the right way to install wine in a dir different
>> >> than %prefix or /usr/local (default %prefix)?
>> >
>> >The right way is to run configure with the final prefix, run make, and
>> >then run make install with the prefix set to the package build
>> >location.
>> >
>> 
>> just setting the prefix in the make install won't work.
>
>It works for my Debian packages with just prefix and libdir:
>
>$(MAKE) install prefix=`pwd`/debian/tmp/usr libdir=`pwd`/debian/tmp/usr/lib
>

Are you sure?
here I get:

[chaos at speedy wine-20020804]$ make prefix=/var/tmp/wine_root/usr libdir=/var/tmp/wine_root/usr/lib install

cd `dirname include/__install__` && make install
make[1]: Entering directory `/chaos/rpm/BUILD/wine-20020804/include'
../tools/mkinstalldirs /usr/include/wine/wine /usr/include/wine/wine/wine /usr/include/wine/wine/msvcrt /usr/include/wine/wine/msvcrt/sys
mkdir -p -- /usr/include/wine/wine/wine /usr/include/wine/wine/msvcrt /usr/include/wine/wine/msvcrt/sys
mkdir: cannot create directory `/usr/include/wine/wine/wine': Permissão negada
mkdir: cannot create directory `/usr/include/wine/wine/msvcrt': Permissão negada
mkdir: cannot create directory `/usr/include/wine/wine/msvcrt': Permissão negada
make[1]: *** [install] Error 1
make[1]: Leaving directory `/chaos/rpm/BUILD/wine-20020804/include'
make: *** [include/__install__] Error 2


Please not that if this has being done as root, the problem wouldn't be notices 
(as root may write in /usr/include).





More information about the wine-devel mailing list