From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 07:19:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3AEA16A4CE for ; Mon, 8 Nov 2004 07:19:26 +0000 (GMT) Received: from chello084114137224.1.15.vie.surfer.at (chello084114137224.1.15.vie.surfer.at [84.114.137.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 1F34143D1D for ; Mon, 8 Nov 2004 07:19:25 +0000 (GMT) (envelope-from 4711@chello.at) Received: (qmail 30176 invoked from network); 8 Nov 2004 07:19:24 -0000 Received: from matrix010.matrix.net (192.168.123.10) by ns.matrix.net with SMTP; 8 Nov 2004 07:19:23 -0000 From: Christian Hiris <4711@chello.at> To: freebsd-questions@freebsd.org Date: Mon, 8 Nov 2004 08:19:08 +0100 User-Agent: KMail/1.7 References: In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411080819.23437.4711@chello.at> cc: Joe Kraft Subject: Re: Build maildrop from port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 07:19:26 -0000 -----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-----