pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49504: inputmethod/uim: fix compile error with optional library(textproc/eb, devel/m17n-lib)



>Number:         49504
>Category:       pkg
>Synopsis:       inputmethod/uim: fix compile error with optional library(textproc/eb, devel/m17n-lib)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 25 21:35:00 +0000 2014
>Originator:     YAMASHIRO, Jun
>Release:        NetBSD/amd64 7.99.3
>Organization:
Okinawa FreeBSD Users Group
>Environment:
NetBSD yamajun 7.99.3 NetBSD 7.99.3 (YAMAJUN) #12: Sun Dec 21 09:07:38 JST 2014  yamajun@yamajun:/usr/obj/sys/arch/amd64/compile/YAMAJUN amd64
>Description:
inputmethod/uim has several option.

* eb -- compile with textproc/eb
* m17nlib -- compile with devel/m17nlib /  and add input method for many languages.

These options caonnt compile with current packaged version.


Cause:
* eb: PKG_SYSCONFDIR change /usr/pkg/etc to /usr/pkg/etc/uim
* m17nlib: remove misc/m17n-contrib
>How-To-Repeat:
# vi /etc/mk.conf
PKG_OPTIONS.uim= eb, m17nlib

# cd /path/to/pkgsrc/inputmethod/uim
# make

===== compile with m17nlib =====

ERROR: [reduce-depends.awk] ../../misc/m17n-contrib does not exist.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/inputmethod/uim




===== compile with eb =====

checking for limits.h... yes
checking for ssize_t... (cached) yes
checking for eb.conf... /usr/pkg/etc/uim/eb.conf
configure: error: /usr/pkg/etc/uim/eb.conf not found
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/inputmethod/uim
*** Error code 1



>Fix:
Apply this patch to pkgsrc/inputmethod/uim



Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/uim/options.mk,v
retrieving revision 1.30
diff -u -r1.30 options.mk
--- options.mk	31 May 2014 14:22:38 -0000	1.30
+++ options.mk	25 Dec 2014 21:15:23 -0000
@@ -100,7 +100,6 @@
 .if !empty(PKG_OPTIONS:Meb)
 .include "../../textproc/eb/buildlink3.mk"
 CONFIGURE_ARGS+=	--with-eb
-CONFIGURE_ARGS+=	--with-eb-conf=${PKG_SYSCONFDIR}/eb.conf
 PLIST.eb=		yes
 .endif
 
@@ -182,7 +181,7 @@
 
 .if !empty(PKG_OPTIONS:Mm17nlib)
 .  include "../../devel/m17n-lib/buildlink3.mk"
-DEPENDS+=		m17n-contrib-[0-9]*:../../misc/m17n-contrib
+DEPENDS+=		m17n-db-[0-9]*:../../misc/m17n-db
 PLIST.m17nlib=		yes
 INSTALL_TEMPLATES+=	INSTALL.m17nlib
 DEINSTALL_TEMPLATES+=	DEINSTALL.m17nlib



Home | Main Index | Thread Index | Old Index