pkgsrc-Bugs archive

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

pkg/45992: 2 bug fixes for pkgsrc/editors/ng.



>Number:         45992
>Category:       pkg
>Synopsis:       pkgsrc/editors/ng is broken on NOT-default cases.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 06:25:00 +0000 2012
>Originator:     Ken'ichi Fukamachi
>Release:        NetBSD 5.1.0_PATCH
>Organization:
Chitose Institute of Science and Technology.
>Environment:

        System: NetBSD elena.home.fml.org 5.1.0_PATCH NetBSD 5.1.0_PATCH 
(HOME_SERVER) #0: Thu Aug 25 18:07:08 JST 2011 
fukachan%elena.home.fml.org@localhost:/usr/src/sys/arch/i386/compile/HOME_SERVER
 i386
        Architecture: i386
        Machine: i386

>Description:

pkgsrc/editors/ng is ok by default, but we cannot compile it in the
following cases:

(1) specify PKG_OPTIONS.ng= -canna in /etc/mk.conf.

        ng's Makefile expects the environment variable of USE_CANNA
        always, but the current Makefile does not consider it.

(2) compile ng on system-V like platforms e.g. *-linux, Solaris.

        We need to edit ng's Makefile on platforms, but the current
        pkgsrc Makefile is only suitable for BSD platforms. 

>How-To-Repeat:

do them described above.

>Fix:

diff --exclude=CVS -ubr ../../editors/ng/Makefile ./Makefile
--- ../../editors/ng/Makefile   2008-03-04 10:15:17.000000000 +0900
+++ ./Makefile  2011-09-12 11:35:23.000000000 +0900
@@ -22,14 +22,21 @@
 .if !empty(PKG_OPTIONS:Mcanna)
 .include "../../inputmethod/canna-lib/buildlink3.mk"
 MAKEFLAGS+=    USE_CANNA=YES
+.else
+MAKEFLAGS+=    USE_CANNA=NO
 .endif
 
 BUILD_TARGET=  ng
 
 INSTALLATION_DIRS=     bin
 
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
+post-patch:
+       @(cd ${WRKSRC}; ${LN} -s sys/sysv/Makefile . )
+.else
 post-patch:
        @(cd ${WRKSRC}; ${LN} -s sys/bsd/Makefile . )
+.endif
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/ng ${DESTDIR}${PREFIX}/bin



Home | Main Index | Thread Index | Old Index