Date: Tue, 29 Dec 2009 17:53:29 +0300 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: Yuri Pankov <yuri.pankov@gmail.com> Cc: freebsd-ports@freebsd.org, autotools@freebsd.org Subject: Re: (no subject) Message-ID: <osAHOpnFpLRnBa7Dc9Cik/yyEs8@SNwcwk2DeGhgeFqjLEiQrEAOiKg> In-Reply-To: <20091229115025.GA1654@darklight.org.ru> References: <790a9fff0912282328o35ba5abfg580c01ec851e6c95@mail.gmail.com> <20091229074002.GA3117@darklight.org.ru> </usblcMV/8PFi4OD7Eef21XnwjM@SNwcwk2DeGhgeFqjLEiQrEAOiKg> <20091229115025.GA1654@darklight.org.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Tue, Dec 29, 2009 at 02:50:25PM +0300, Yuri Pankov wrote: > Thanks for explanation. Welcome ;)) > I just wonder how PREFIX is different from > LOCALBASE (i.e., devel/gettext uses .if exists(${PREFIX}/.....) without > including bsd.port.pre.mk). It is no different. Using PREFIX without bsd.port.pre.mk is an error. CC'ing gettext maintainers. Gentlemen, you have an error of using PREFIX inside .if clause without prior inclusion of bsd.port.pre.mk before it. With the current Makefile, make tries to search /bin/kaffe. The below transript shows the problem: ----- $ pwd /usr/ports/devel/gettext $ LANG=C ls -l /usr/local/bin/kaffe /bin/kaffe; make pre-extract ls: /usr/local/bin/kaffe: No such file or directory -rw-r--r-- 1 root wheel 0 Dec 29 17:46 /bin/kaffe Gettext won't build with Kaffe's jar utility. Doing: /bin/mv /usr/local/bin/jar /usr/local/bin/jar.backup mv: rename /usr/local/bin/jar to /usr/local/bin/jar.backup: Permission denied *** Error code 1 (ignored) Be sure to mv /usr/local/bin/jar.backup /usr/local/bin/jar if you abandon your attempt to build gettext. ^C ----- The following patch should fix the things: --- Makefile.orig 2009-12-29 17:49:56.000000000 +0300 +++ Makefile 2009-12-29 17:51:06.000000000 +0300 @@ -53,6 +53,8 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-nodocs .endif +.include <bsd.port.pre.mk> + pre-extract: .if exists(${PREFIX}/bin/kaffe) @${ECHO_MSG} "Gettext won't build with Kaffe's jar utility. Doing:" @@ -88,4 +90,4 @@ @${MKDIR} ${LOCALBASE}/share/locale @cd ${WRKSRC}/gettext-tools/doc && make install-info-am -.include <bsd.port.mk> +.include <bsd.port.post.mk> -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?osAHOpnFpLRnBa7Dc9Cik/yyEs8>