[Dovecot] problems compiling

Imre Gergely imre.gergely at astral.ro
Thu Jan 19 07:32:24 EET 2006


Peter Svensson wrote:
> On Wed, 18 Jan 2006, Marcus Rueckert wrote:
> 
>> On 2006-01-18 17:58:25 +0200, Imre Gergely wrote:
>>> that specfile included in the tar.gz looks fine, the problem is the
>>> plugins
>>> won't install in the temporary location, it wants to install it
>>> direct in the
>>> root directory, during the rpmbuild process, that's not so good :)
>>
>> can you post your spec file?
>>
>> i have build rpms for all alpha builds and now the beta build and never
>> saw your issue.
> 
> We have faced the same problem. We replaced the line
>   %makeinstall
> with
>   make DESTDIR=%{buildroot} install
> 
> The "%makeinstall" macro does not specify a new module directory, nor
> does it set the DESTDIR variable.
> 
> Peter
> 
> 

I tried this also, it didn't work... the spec file i'm using is from the tar.gz
itself. i just added a --with-mysql option to configure, to build it with mysql
support. that's all i changed.

first i did a rpmbuild -ta dovecot-1.0.beta1.tar.gz, this takes the
dovecot.spec directly from the tar.gz. that didn't work. it can be compiled but
only as root, and that's not alright with me.
then i fiddled around in the Makefiles, and took out the part with the plugin
so it doesn't compile nor install the plugins, that worked, but that's not so
good either :)

i'm using:

[gimre at imi dovecot-1.0.beta1]$ cat /etc/issue
Fedora Core release 4 (Stentz)
Kernel \r on an \m
[gimre at imi dovecot-1.0.beta1]$ make -v
GNU Make 3.80
[gimre at imi dovecot-1.0.beta1]$ automake --version
automake (GNU automake) 1.9.5
[gimre at imi dovecot-1.0.beta1]$ autoconf --version
autoconf (GNU Autoconf) 2.59
[gimre at imi dovecot-1.0.beta1]$ rpm --version
RPM version 4.4.1
[gimre at imi dovecot-1.0.beta1]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)



More information about the dovecot mailing list