Subject: Re: pkg/8755 kdebase installs it's own rman.
To: Bernd Ernesti <>
From: Frederick Bruckman <>
List: tech-pkg
Date: 03/18/2001 09:30:36
On Sat, 17 Mar 2001, Bernd Ernesti wrote:

> On Wed Mar 14 15:53:52 2001, Frederick Bruckman wrote:
> >
> > We seem to have an "rman" in the NetBSD cvs repository
> > (xsrc/xfree/xc/extras/rman/). Since I don't have an XFree86-4.x
> > installation right now, it's not clear to me if "make World" in
> > xsrc/xfree/xc actually installs it.
> It will be installed.


> > Some of the tools in the "extras" directory are obviously installed
> > (Xpm), and some seem destined to remain optional (regex). Is anyone
> > privy to xfree86's future plans? If it's installed, or going to be
> > installed, pkgsrc need to special case it as for "xpm".
> Yeah, looks like we need add a hack for it.

It turns out to be a little easier than xpm, since there's no way the
package rman could be installed to ${X11BASE}.

If no one objects, I'll commit the patch below, conditionally set
IGNORE in textproc/rman, change the only package that currently
depends on rman -- tkman -- to use USE_RMAN, and then proceed to rip
"rman" out of the kdebase package, replacing it with USE_RMAN.

I'm DEPEND'ing on 3.0.9 exactly, since earlier versions had the
more restrictive license.

> The next problem is that
> there are now .html manpages installed when you use Imakefiles and
> XFree 4.x. There is no handling for that in pkgsrc.

Let's see. Imake.tmpl sets BuildHtmlManPages to YES conditionally on
RmanCmd being set, which in turn is set if BuildRman is set to YES. We
could turn the html man pages off by setting ``#define
BuildHtmlManPages NO'' in, as is done in linux.def, but I'd
rather not. I kind of like them. As a matter of fact, I wish we would
install the source man pages (for rman/tkman), and while I'm wishing,
the font metric (.afm) files for t1lib.

I think we could do the PLIST munging conditionally on finding
BuildHtmlManPages in Imake.tmpl, but that will mess up folks who've
set BuildHtmlManPages to NO in their own host.def. Just don't do that!


RCS file: /cvsroot/pkgsrc/mk/,v
retrieving revision 1.687
diff -c -r1.687
***	2001/03/16 12:43:45	1.687
---	2001/03/18 15:15:42
*** 833,838 ****
--- 833,848 ----
  .undef __BUILTIN_MESA
  .endif	# USE_MESA

+ # Check if we got "rman" with XFree86, for packages that need "rman".
+ .if defined(USE_RMAN)
+ .if !exists(${X11BASE}/bin/rman)
+ DEPENDS+=		rman-3.0.9:../../textproc/rman
+ RMAN?=			${LOCALBASE}/bin/rman
+ .else
+ RMAN?=			${X11BASE}/bin/rman
+ .endif
+ .endif
  # Popular master sites