[Dovecot] Install fails when libdir and libexecdir are the same directory

River Tarnell river at loreley.flyingparchment.org.uk
Tue Dec 29 19:21:28 EET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm using Dovecot 1.2.9.  I configured it like this:

  % ./configure --prefix=/opt/rt --libdir=/opt/rt/lib \
       --libexecdir=/opt/rt/lib [other args...]

It compiled fine, but failed to install, because it tries to install a
directory called <libdir>/dovecot/imap, and a file called
<libexecdir>/dovecat/imap, which obviously doesn't work when libdir and
libexecdir are the same directory:

gmake[5]: Entering directory `/home/river/hp-pkg/mail/dovecot/work/dovecot-1.2.9/src/plugins/imap-acl'
gmake[5]: Nothing to be done for `install-exec-am'.
test -z "/opt/rt/lib/dovecot/imap" || /opt/rt/bin/gmkdir -p "/home/river/hp-pkg/mail/dovecot/install/opt/rt/lib/dovecot/imap"
/opt/rt/bin/gmkdir: cannot create directory `/home/river/hp-pkg/mail/dovecot/install/opt/rt/lib/dovecot/imap': File exists
gmake[5]: *** [install-imap_moduleLTLIBRARIES] Error 1

As a workaround I used --libexecdir=/opt/rt/lib/dovecot/libexec, but
perhaps one of the conflicting files could be moved or renamed.  (On
System Vish platforms, e.g. Solaris and HP-UX, 'libexec' isn't used --
files that other systems put into 'libexec' go into 'lib'.)

	- river.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (HP-UX)

iEYEARECAAYFAks6OpgACgkQIXd7fCuc5vJ2IACfSXNKUbHi1r0mRWIvfTgl6ATk
HMEAn1uAhwdFn+yQMAnAP/RrYx07wlIv
=t1pG
-----END PGP SIGNATURE-----


More information about the dovecot mailing list