(no subject)

Eygene Ryabinkin rea-fbsd at codelabs.ru
Tue Dec 29 14:53:33 UTC 2009


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
    {_.-``-'         {_/            #


More information about the freebsd-ports mailing list