NetBSD Problem Report #39107

From asau@inbox.ru  Sat Jul  5 14:06:47 2008
Return-Path: <asau@inbox.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 45BF363BCA3
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  5 Jul 2008 14:06:47 +0000 (UTC)
Message-Id: <87r6a8y4lz.fsf@inbox.ru>
Date: Sat, 05 Jul 2008 15:04:08 +0400
From: Aleksej Saushev <asau@inbox.ru>
Reply-To:
To: gnats-bugs@gnats.NetBSD.org
Subject: [patch] parallel/mpi-ch breaks with native X11 due to missing dependency

>Number:         39107
>Category:       pkg
>Synopsis:       [patch][maintainer] parallel/mpi-ch breaks with native X11 due to missing dependency
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 05 14:10:00 +0000 2008
>Closed-Date:    Fri Jul 11 01:58:48 +0000 2008
>Last-Modified:  Fri Jul 11 02:10:01 +0000 2008
>Originator:     Aleksej Saushev <asau@inbox.ru>
>Release:        NetBSD 4.99.67
>Organization:
>Environment:
System: NetBSD asau.local 4.99.67 NetBSD 4.99.67 (KERN) #0: Thu Jun 26 21:02:07 MSD 2008 asau@asau.local:/mnt/sd/asau/netbsd/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	The package is reported as broken in bulk build with native X11,
	see mail from Krister Walfridsson to pkgsrc-bulk stamped
	Fri, 4 Jul 2008 19:33:18 +0200 (CEST).
>How-To-Repeat:
	Build with X11_TYPE=native?
>Fix:
Apply the patch:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/parallel/mpi-ch/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile	29 May 2008 20:25:53 -0000	1.55
+++ Makefile	5 Jul 2008 11:02:45 -0000
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.55 2008/05/29 20:25:53 tnn Exp $

 DISTNAME=	mpich2-1.0.7
+PKGREVISION=	1
 CATEGORIES=	parallel
 MASTER_SITES=	http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/

@@ -34,12 +35,16 @@
 			${PKG_SYSCONFDIR}/mpe_callstack_ldflags.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_f77env.conf \
 			${PKG_SYSCONFDIR}/mpe_f77env.conf
+CONF_FILES+=		share/${PKGBASE}/examples/mpe_graphics.conf \
+			${PKG_SYSCONFDIR}/mpe_graphics.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_help.conf \
 			${PKG_SYSCONFDIR}/mpe_help.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_log.conf \
 			${PKG_SYSCONFDIR}/mpe_log.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_log_postlib.conf \
 			${PKG_SYSCONFDIR}/mpe_log_postlib.conf
+CONF_FILES+=		share/${PKGBASE}/examples/mpe_mpianim.conf \
+			${PKG_SYSCONFDIR}/mpe_mpianim.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_mpicheck.conf \
 			${PKG_SYSCONFDIR}/mpe_mpicheck.conf
 CONF_FILES+=		share/${PKGBASE}/examples/mpe_mpilog.conf \
@@ -56,4 +61,5 @@
 			${PKG_SYSCONFDIR}/mpif77.conf

 .include "../../lang/python/application.mk"
+.include "../../x11/libXt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/parallel/mpi-ch/PLIST,v
retrieving revision 1.10
diff -u -r1.10 PLIST
--- PLIST	29 May 2008 20:25:53 -0000	1.10
+++ PLIST	5 Jul 2008 11:02:45 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2008/05/29 20:25:53 tnn Exp $
+@comment $NetBSD$
 bin/check_callstack
 bin/clog2_join
 bin/clog2_print
@@ -52,6 +52,7 @@
 include/mpe.h
 include/mpe_callstack.h
 include/mpe_graphics.h
+include/mpe_graphicsf.h
 include/mpe_log.h
 include/mpe_log_thread.h
 include/mpe_logf.h
@@ -62,6 +63,7 @@
 include/mpif.h
 include/mpio.h
 include/mpiof.h
+lib/libampe.a
 lib/libfmpich.a
 lib/liblmpe.a
 lib/libmpe.a
@@ -779,10 +781,12 @@
 share/mpich2/examples/mpe_callstack_ldflags.conf
 share/mpich2/examples/mpe_f77env.conf
 share/mpich2/examples/mpe_f77env.conf.in
+share/mpich2/examples/mpe_graphics.conf
 share/mpich2/examples/mpe_help.conf
 share/mpich2/examples/mpe_help.conf.in
 share/mpich2/examples/mpe_log.conf
 share/mpich2/examples/mpe_log_postlib.conf
+share/mpich2/examples/mpe_mpianim.conf
 share/mpich2/examples/mpe_mpicheck.conf
 share/mpich2/examples/mpe_mpilog.conf
 share/mpich2/examples/mpe_mpitrace.conf
@@ -803,6 +807,11 @@
 share/mpich2/examples_collchk/wrong_reals.f
 share/mpich2/examples_collchk/wrong_root.c
 share/mpich2/examples_collchk/wrong_scatterv.c
+share/mpich2/examples_graphics/Makefile
+share/mpich2/examples_graphics/Makefile.in
+share/mpich2/examples_graphics/cpi.c
+share/mpich2/examples_graphics/cxgraphics.c
+share/mpich2/examples_graphics/fxgraphics.f
 share/mpich2/examples_logging/Makefile
 share/mpich2/examples_logging/Makefile.in
 share/mpich2/examples_logging/comm1_isr.c
@@ -825,6 +834,7 @@
 share/mpich2/examples_logging/pthread_sendrecv_user.c
 share/mpich2/examples_logging/srtest.c
 @dirrm share/mpich2/examples_logging
+@dirrm share/mpich2/examples_graphics
 @dirrm share/mpich2/examples_collchk
 @dirrm share/mpich2/examples
 @dirrm share/mpich2

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39107: [patch] parallel/mpi-ch breaks with native X11 due to
 missing dependency
Date: Sun, 06 Jul 2008 17:09:18 +0900

 Does this PR mean just forgot dependency on x11?
 or add x11 dependency to fix build with X11_TYPE=native? 

 If later, how about add "x11" option to swith --enable-graphics or 
 --disable-graphics CONFIGURE_ARGS and disabled by default?

 Though, I don't know graphics part of this package is important or not.

From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39107: [patch] parallel/mpi-ch breaks with native X11 due to missing dependency
Date: Sun, 06 Jul 2008 13:05:22 +0400

 "OBATA Akio" <obache@netbsd.org> writes:

 >  Does this PR mean just forgot dependency on x11?
 >  or add x11 dependency to fix build with X11_TYPE=native? 

 It seems so. I don't have resources to check it, what I can do
 is only to reason:
 1. Of three bulk build reports in my hands, one fails.
 2. All three builds run on different combinations of architecture
 and X11 type.
 3. The failure is reported on NetBSD 4.0 x86_64 with X11_TYPE=native. 
 4. I run NetBSD 4.99 i386 with X11_TYPE=modular, and I don't see it.
 5. So do Joerg and Ulrich (4.99/x86_64 and 4.0/i386 resp.), when
 building with modular X.org.

 The only point of difference currently seen is X11.
 (This was supported or even suggested by Tobias Nygren on IRC.)

 Thus I've tried buildlinking (sequentially) libX11 and libXt to check,
 if it brings files, reported by Krister Walfridson. It does, from what
 I conclude, that I missed dependency, which may be critical for builds
 with native X11.

 >  If later, how about add "x11" option to swith --enable-graphics or 
 >  --disable-graphics CONFIGURE_ARGS and disabled by default?

 Yes, this is the plan for future development.

 >  Though, I don't know graphics part of this package is important or not.

 Currently I don't use it, but this may change in future.

 I understand, that this request is done in some haste (I still don't
 have any information about time frame), the whole point of it is
 to fix build on systems with X11_TYPE=native.
 If you find changing the package inappropriate in current conditions,
 just put PR into feedback state and let me come with better solution
 after the snapshot.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39107: [patch] parallel/mpi-ch breaks with native X11 due to
 missing dependency
Date: Sun, 06 Jul 2008 21:52:37 +0900

 Previous version mpich-1.2.6 depend on x11.
 It seems that mpich2-1.0.7 should depend on x11 by default for upper compatibility.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39107: [patch] parallel/mpi-ch breaks with native X11 due to
 missing dependency
Date: Sun, 06 Jul 2008 23:46:58 +0900

 It seems no need to full depend on libXt.
 Full depend on just libX11 and build depend on libXt for configure script.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39107: [patch] parallel/mpi-ch breaks with native X11 due to
 missing dependency
Date: Mon, 07 Jul 2008 02:52:48 +0900

 >  It seems no need to full depend on libXt.
 >  Full depend on just libX11 and build depend on libXt for configure script.

 No need to build depend on libXt, just pass X11 header and library location
 to configure script with --x-includes and --x-libraries.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 11 Jul 2008 01:58:48 +0000
State-Changed-Why:
Added dependency on X11.  Thanks!


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39107: CVS commit: pkgsrc/parallel/mpi-ch
Date: Fri, 11 Jul 2008 11:06:25 +0900

 ------- Forwarded message -------
 From: "OBATA Akio" <obache@netbsd.org>
 To: pkgsrc-changes@netbsd.org
 Cc:
 Subject: CVS commit: pkgsrc/parallel/mpi-ch
 Date: Fri, 11 Jul 2008 10:57:00 +0900

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Jul 11 01:57:00 UTC 2008

 Modified Files:
 	pkgsrc/parallel/mpi-ch: Makefile PLIST

 Log Message:
 Add missing dependency on X11.  Based on maintainer's PR 39107.
 Fixes build failure with X11_TYPE=native.

 While here, bin/mpdroot marked as special perms.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.55 -r1.56 pkgsrc/parallel/mpi-ch/Makefile
 cvs rdiff -r1.10 -r1.11 pkgsrc/parallel/mpi-ch/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

 -- 
 "Of course I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.