Subject: Run dependency on gettext?
To: None <tech-pkg@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 09/29/2004 20:42:48
Hi all,

I need to add a runtime dependency on gettext (not only gettext-lib) on the
systems that need it.  I've tried the following (based on something similar
in x11/xpm):

CHECK_BUILTIN.gettext=  yes
.include "../../devel/gettext-lib/builtin.mk"
.if !empty(IS_BUILTIN.gettext:M[Nn][Oo])
DEPENDS+=               gettext>=0.11.5:../../devel/gettext
.endif

But when I try anything on the package, I get:

dawn:~/NetBSD/pkgsrc/textproc/intltool$ make clean
/usr/lib/libintl.a: permission denied
make: Cannot allocate memory.

Any idea about what's wrong?

Another way to do this could be to do something similar to the BUILD_USES_MSFMT
handling in bsd.pkg.mk.  But that is ugly, IMHO.

How am I supposed to add the dependency?

Thanks.

-- 
Julio M. Merino Vidal <jmmv@menta.net>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/