Subject: pkg/32542: emulators/mmix have unnecessary dependency.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <mikawa@terra.dti.ne.jp>
List: pkgsrc-bugs
Date: 01/16/2006 06:15:00
>Number:         32542
>Category:       pkg
>Synopsis:       emulators/mmix have unnecessary dependency.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 16 06:15:00 +0000 2006
>Originator:     Masanori Mikawa
>Release:        NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD raven 3.99.15 NetBSD 3.99.15 (RAVEN) #8: Thu Jan 12 10:29:29 JST 2006 root@raven:/a/usr.obj/sys/arch/i386/compile.i386/RAVEN i386
Architecture: i386
Machine: i386
>Description:
	emulators/mmix package depends on devel/cweb package
	but the dependency is unnecessary when the package build
	with teTeX2 or teTeX3 because teTeX2/3 contains cweb programs
	(such as cweave and ctangle).

>How-To-Repeat:
	Install print/teTeX package.

% cd print/teTeX
% make install

	And try `make' on the emulators/mmix directory.
	(teTeX-bin<2.0.2nb5 was listed on pkg-vulnerabilities.
	You get other messages from `make' if you do not set
	ALLOW_VULNERABLE_PACKAGES variable.)

% cd emulators/mmix
% make ALLOW_VULNERABLE_PACKAGES=yes
[...]
===> Installing for teTeX-share-1.0.2nb2
===> teTeX-share-1.0.2nb2 conflicts with installed package(s): teTeX-texmf-3.0nb2  found.
*** They install the same files into the same place.
*** Please remove teTeX-texmf-3.0nb2  first with pkg_delete(1).
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX1-share
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX1-share
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX1-share
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX1-bin
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX1-bin
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/cweb
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/cweb
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/mmix
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/mmix

>Fix:
	Apply the following patch.

--- emulators/mmix/Makefile.orig	2006-01-04 13:29:06.000000000 +0900
+++ emulators/mmix/Makefile
@@ -11,13 +11,14 @@ COMMENT=	Simulators for Knuth's MMIX RIS
 
 BROKEN_IN=	pkgsrc-2005Q4
 
-BUILD_DEPENDS+= cweb-[0-9]*:../../devel/cweb
-
 WRKSRC=		${WRKDIR}
 BUILD_TARGET=	all doc
 
 INSTALLATION_DIRS=	bin
 
+TEX_DEPMETHOD=	build
+TEX_ACCEPTED=	teTeX1 teTeX2 teTeX3
+
 do-install:
 	cd ${WRKSRC} && ${INSTALL_PROGRAM} abstime mmix mmixal 		\
 		mmmix mmotype ${PREFIX}/bin
@@ -28,4 +29,8 @@ do-install:
 	cd ${WRKSRC} && ${INSTALL_DATA} *.mms *.mmix *.mmconfig 	\
 		${PREFIX}/share/examples/mmix
 
+.include "../../mk/tex.buildlink3.mk"
+.if ${TEX_TYPE} == "teTeX1"
+BUILD_DEPENDS+= cweb-[0-9]*:../../devel/cweb
+.endif
 .include "../../mk/bsd.pkg.mk"