From owner-freebsd-doc@FreeBSD.ORG Thu Oct 28 03:44:45 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0544F16A4CE for ; Thu, 28 Oct 2004 03:44:45 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A18B43D54 for ; Thu, 28 Oct 2004 03:44:44 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a148.otenet.gr [212.205.215.148]) i9S3iewt004333; Thu, 28 Oct 2004 06:44:42 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i9S3icJe032162; Thu, 28 Oct 2004 06:44:38 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i9S3icOC032161; Thu, 28 Oct 2004 06:44:38 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Thu, 28 Oct 2004 06:44:38 +0300 From: Giorgos Keramidas To: Ion-Mihai Tetcu Message-ID: <20041028034438.GD2784@gothmog.gr> References: <20041028005852.303005b0@it.buh.cameradicommercio.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041028005852.303005b0@it.buh.cameradicommercio.ro> cc: freebsd-doc@freebsd.org Subject: Re: Problem building with doc/ll_LL symlinked X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 03:44:45 -0000 On 2004-10-28 00:58, Ion-Mihai Tetcu wrote: > Hi, > > I'm trying to translate some docs in Romanian. > > So I have symlinked > /usr/doc/ro_RO.ISO8859-2 -> /home/itetcu/projects/FRDP/freebsd-ro-l10n/doc/ro_RO.ISO8859-2 Don't. It's not really going to work. > When, in /usr/doc I > make DOC_LANG=ro_RO.ISO8859-2 > I get > ===> ro_RO.ISO8859-2 > "Makefile", line 18: Could not find /home/itetcu/projects/FRDP/freebsd-ro-l10n/doc/ro_RO.ISO8859-2/../share/mk/doc.project.mk > make: fatal errors encountered -- cannot continue > *** Error code 1 > > Stop in /usr/doc. The makefiles of the doc tree set DOC_PREFIX to ${.CURDIR} as you have noticed already. The value make(1) gives to this variable is the `real path' of the directory: % cd /tmp % mkdir foo % cat > foo/Makefile all: @echo ${.CURDIR} ^D % ln -s foo bar % cd bar % make /tmp/foo > However defining DOC_PREFIX works: > # make DOC_LANG=ro_RO.ISO8859-2 DOC_PREFIX=/usr/doc > ===> ro_RO.ISO8859-2 > ===> ro_RO.ISO8859-2/articles > ===> ro_RO.ISO8859-2/articles/cvsup-advanced > ............ > > But in /usr/doc/Makefile I see: > DOC_PREFIX?= ${.CURDIR} > and in /usr/doc: > # make DOC_LANG=ro_RO.ISO8859-2 -VDOC_PREFIX > /usr/doc > > DOC_PREFIX?= ${.CURDIR} is propagated down the tree in each Makefile > inclusive in directories holding article.sgml / book.sgml. If you don't explicitly set DOC_PREFIX the makefiles will try to `discover' its correct value by using the real path of the current directory. This will not work for symlinked directories. By setting DOC_PREFIX to /usr/doc you turn off the lookup of symbolic links and it all works again.