Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 15:05:03 -0400 (EDT)
From:      "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" <giffunip@yahoo.com>
To:        freebsd-ports@FreeBSD.org
Subject:   help with info files on Yorick port??
Message-ID:  <20030903190503.83762.qmail@web13404.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-1215750401-1062615903=:83742
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id: 
Content-Disposition: inline

Hello guys;

I read some comments about the new info stuff being "so easy". Perhaps someone
can help us fix the problems in the Yorick port? 

I can't reproduce the problem on my 5.0R but it's real (see bento and/or read
the attachment).

cheers,

    Pedro. 



__________________________________________________________
Lèche-vitrine ou lèche-écran ?
magasinage.yahoo.ca
--0-1215750401-1062615903=:83742
Content-Type: message/rfc822

X-Apparently-To: giffunip@yahoo.com via 216.136.175.62;
	Wed, 03 Sep 2003 11:44:01 -0700
Return-Path: <munro@oldben.llnl.gov>
Received: from 128.115.250.81  (EHLO smtp-1.llnl.gov) (128.115.250.81)
  by mta202.mail.scd.yahoo.com with SMTP; Wed, 03 Sep 2003 11:44:00 -0700
Received: from oldben.llnl.gov (localhost [127.0.0.1])h83Ihx5F016256
	for <giffunip@yahoo.com>; Wed, 3 Sep 2003 11:43:59 -0700 (PDT)
Date: Wed, 03 Sep 2003 11:43:59 -0700
From: "David H. Munro" <munro@oldben.llnl.gov>
Reply-To: munro1@llnl.gov
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Pedro F. Giffuni" <giffunip@yahoo.com>
Subject: Re: FreeBSD port (was Re: Problems with gcc-3.3)
References: <20030903020953.68173.qmail@web13407.mail.yahoo.com>
In-Reply-To: <20030903020953.68173.qmail@web13407.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Length: 2287

Pedro F. Giffuni wrote:

> Well I found this Problem Report while looking for Yorick on the PR list
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/55358
> 
> so there's definitely some issue with the info files but it simply doesn't
> happen on my box (5.0R). Is the pkg-plist correct or is install-info not doing
> what it used to do ??

Okay, I've taken a more careful look at the info file problem, and
I have an idea about what might be happening, but I do not understand
how we are supposed to cope with it under FreeBSD:

The yorick.info files are created by the makeinfo utility during
yorick's build (namely during the post-build target in the FreeBSD Makefile).
The number of files makeinfo creates depends on the specific flags that
are passed to makeinfo.  For the version of makeinfo I have, the
default filesize is 50 kbytes, which turns out to make yorick.info
and yorick.info-[1-5], for a total of 6 files.  However, if someone
managed to set the --no-split or --split-size flag to makeinfo when
they built yorick (which is possible, since yorick's Makefile uses
the MAKEINFO macro rather than makeinfo itself to build that target),
then the number of yorick.info files installed would be different.

So I'm guessing that the guy who is complaining about the missing
info files built yorick with makeinfo --no-split so that those files really
were missing for him.  I don't know what the official FreeBSD policy is
on this -- what are you supposed to do when the _number_ (or names) of
files in pkg-plist depends on precisely how the person built the port?
Potentially, the default size at which makeinfo splits files could
depend on which version of makeinfo you had installed when you built
the port, which means that it is impossible for the port to predict
exactly how many info files makeinfo will produce when the package is
built.

> My suggestion would be: for now, maybe approve both patches on the URL (submit
> a followup), otherwise Yorick won't be packaged for 4.9-Release.
> We actually depend on some committer doing the change (I'll try to get someone
> I know to help), so just work on your release.

My inclination is to leave the pkg-plist alone, since I think it is
better for people who have somehow set makeinfo --no-split to endure
the warning about missing files, than to silently not delete those
files for everyone else.

I am enclosing my proposed patch, which upgrades the current FreeBSD
CVS version of yorick (CVS rev 1.11).  It includes your patch, which
corrects the version on ftp-icf.llnl.gov, but does not include Mr. Liu's
suggested fix from the 55358 PR, since I suspect his problem stems from
a non-standard setting of makeinfo during his build.

Could you please check this on your FreeBSD machine, since I can't
get to one just now?  In particular, please check that the files
yorick.info-[1-5].gz actually are created when you build the port,
and that when you uninstall it, they are silently removed?

If all goes well, I'll submit this patch.  Thanks much,

Dave

--------------------------------
diff -ruN yorick.orig/Makefile yorick/Makefile
--- yorick.orig/Makefile	2003-02-21 04:35:09.000000000 -0800
+++ yorick/Makefile	2003-09-03 11:03:50.000000000 -0700
@@ -2,13 +2,14 @@
  # Date created:         26 Oct 97
  # Whom:                 Pedro Giffuni <giffunip@asme.org>
  #
-# $FreeBSD: ports/lang/yorick/Makefile,v 1.11 2003/02/21 12:35:09 knu Exp $
+# $FreeBSD: ports/lang/yorick/Makefile,v 1.9 2001/12/24 10:37:45 dirk Exp $
  #

  # History: 1.4.1 port by Pedro Giffuni <giffunip@asme.org>
  #          1.5.02 port by ports@FreeBSD.org,
  #                 from submission by Ed Alley <wea@llnl.gov>
  #          1.5.07 port by David H. Munro <munro1@llnl.gov>
+#          1.5.12 port by David H. Munro <munro1@llnl.gov>, 01/Nov/02
  # 1.5.07 notes:
  # (1) info pages installed in PREFIX/info for consistency with other apps
  #     -- really should be in PREFIX/share/info
@@ -25,10 +26,9 @@
  #          1.5.08 replaces 1.5.07 infant mortality

  PORTNAME=	yorick
-PORTVERSION=	1.5.08
+PORTVERSION=	1.5.12
  CATEGORIES=	lang math
-MASTER_SITES=	ftp://ftp-icf.llnl.gov/pub/Yorick/ \
-		ftp://wuarchive.wustl.edu/languages/yorick/
+MASTER_SITES=	ftp://ftp-icf.llnl.gov/pub/Yorick/
  EXTRACT_SUFX=	.tgz

  MAINTAINER=	munro1@llnl.gov
diff -ruN yorick.orig/distinfo yorick/distinfo
--- yorick.orig/distinfo	2002-02-09 01:15:58.000000000 -0800
+++ yorick/distinfo	2002-11-01 15:37:43.000000000 -0800
@@ -1,2 +1 @@
-MD5 (yorick-1.5.08.tgz) = 2f13dd9bc2fd1503b18006c2a3c253ee
-
+MD5 (yorick-1.5.12.tgz) = c0771f59f03dc35da3bbada4c41409b4
--------------------------------

--0-1215750401-1062615903=:83742--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030903190503.83762.qmail>