Date: Mon, 8 Nov 2004 08:19:08 +0100 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Cc: Joe Kraft <hishadow@netcabo.pt> Subject: Re: Build maildrop from port Message-ID: <200411080819.23437.4711@chello.at> In-Reply-To: <cmn1oc$1je$1@sea.gmane.org> References: <cmn1oc$1je$1@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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@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@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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411080819.23437.4711>