From owner-freebsd-ports@FreeBSD.ORG Tue Dec 29 14:53:33 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CD221065670 for ; Tue, 29 Dec 2009 14:53:33 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id F0C778FC1A for ; Tue, 29 Dec 2009 14:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=p0TPDSDgnwSbeTvxO+mUKUzM+lfdCIdSojS25W24YkI=; b=JZlcaSRyYcch3MBpS9/MR/k5vXqw/4TIKJviRQ3Z+Rf5IIK6iTDbXW3AgmxMHZ7zbU3IfJPTYiwaPKXAjg651EW0jw4ZpTzrfRyQM5/IZq+SzIn9csoheOcjR49R1PFuK0z0Prsz1wZJHCy995RARf+dND4H7Wkhm2AdImg5AHrsN2ajdhlFmshc1ZUowRdGLNgb5SZ+RDam9zujVhHg5ssLWhgJvxQoWQUtUqW979jJHsU34kSAUY4D2F6+57a7QJUQOMJ18PbMaH27WqNIhzuUPaJobyIicQarvpb2SulwJ67Hz7R530M6Tc6aEeV8mWdgngTSExX6F6TE9sOmZg==; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1NPdRz-000IhW-Ii; Tue, 29 Dec 2009 17:53:31 +0300 Date: Tue, 29 Dec 2009 17:53:29 +0300 From: Eygene Ryabinkin To: Yuri Pankov Message-ID: References: <790a9fff0912282328o35ba5abfg580c01ec851e6c95@mail.gmail.com> <20091229074002.GA3117@darklight.org.ru> <20091229115025.GA1654@darklight.org.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091229115025.GA1654@darklight.org.ru> Sender: rea-fbsd@codelabs.ru Cc: freebsd-ports@freebsd.org, autotools@freebsd.org Subject: Re: (no subject) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 14:53:33 -0000 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 + 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 +.include -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #