Build maildrop from port

Christian Hiris 4711 at chello.at
Sun Nov 7 23:19:26 PST 2004


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

On Monday 08 November 2004 06:53, Joe Kraft wrote:
> I'm trying to install maildrop from ports.  It will build and install
> fine when doing the default build, but I want to include the userdb
> support.  When I build with the WITH_USERDB=yes WITH_GDBM=yes knobs, it
> seems to build OK but then won't install.  It gives this error:
>
> /bin/sh ./mkinstalldirs /usr/local/bin
> /bin/sh ./mkinstalldirs /usr/local/bin
> install  -o root -g wheel -m 555 makedat/makedat /usr/local/bin/makedat
> install: /usr/local/bin/makedat: Too many levels of symbolic links
> *** Error code 71

This looks like the install-target creates a recursive link. The original 
Makefile.in would create two different diectories, one to install the makedat 
binary and another one where it places a link to the makedat binary.   

Excerpt from Makefile.in:
[...]
scriptdir = $(pkgdatadir)/scripts
[...]
@INSTALL_MAKEDAT_TRUE at install-makedat:
@INSTALL_MAKEDAT_TRUE@  $(mkinstalldirs) $(DESTDIR)$(bindir)
@INSTALL_MAKEDAT_TRUE@  $(mkinstalldirs) $(DESTDIR)$(scriptdir)

@INSTALL_MAKEDAT_TRUE@  $(INSTALL_SCRIPT) makedat/makedat 
$(DESTDIR)$(scriptdir)/makedat
[...]
@INSTALL_MAKEDAT_TRUE@  $(LN_S) $(scriptdir)/makedat 
$(DESTDIR)$(bindir)/makedat

Our patch in the ports files/patch-Makefile.in modifies the variable scriptdir 
to $(bindir). As results "$(DESTDIR)$(bindir)" and "$(DESTDIR)$(scriptdir)" 
are both set to "/usr/local/bin" and the ln command fails.

- -scriptdir = $(pkgdatadir)/scripts
+scriptdir = $(bindir)

Because link and link-target are the same, I would comment out the respective 
line in Makefile.in and try again. Maybe there are some more symbolic links, 
which are targeted by this issue.  
 
Cheers,
ch

- -- 
Christian Hiris <4711 at chello.at> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBjx3709WjGjvKU74RAjGFAJsHEk9bLFYEDhDGiKbz1si8dpVm7ACbBKwt
9CC8as6RX2t9w+LELMWIElM=
=o+0l
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list