Bug 124086 - Port Updated to 3.2.0: lang/chicken
Summary: Port Updated to 3.2.0: lang/chicken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alejandro Pulver
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 04:40 UTC by Timothy Beyer
Modified: 2008-06-28 00:30 UTC (History)
1 user (show)

See Also:


Attachments
chicken.shar (5.66 KB, text/plain)
2008-05-29 04:40 UTC, Timothy Beyer
no flags Details
Makefile.diff (871 bytes, patch)
2008-06-24 23:51 UTC, Timothy Beyer
no flags Details | Diff
pkg-plist.diff (352 bytes, patch)
2008-06-24 23:51 UTC, Timothy Beyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Beyer 2008-05-29 04:40:01 UTC
    Updated to version 3.2.0.  This works with all of the latest "eggs" (packages) and libraries for chicken scheme.

Fix: Commit this shell archive to lang/chicken
How-To-Repeat:     N/A
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-05-29 04:40:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alepulver

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alejandro Pulver freebsd_committer freebsd_triage 2008-06-11 00:05:24 UTC
State Changed
From-To: open->feedback

Incomplete pkg-plist (leaves files after deinstalling).
Comment 3 Timothy Beyer 2008-06-11 01:25:29 UTC
At Tue, 10 Jun 2008 23:07:23 GMT,
alepulver@FreeBSD.org wrote:
>Submitter-Id:	current-users
>Originator:	Timothy Beyer
>Organization:	no organization
>Confidential:	no
>Synopsis:	Port Updated to 3.2.0: lang/chicken
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		update
>Release:	FreeBSD 7.0-RELEASE-p1 i386
>Environment:
FreeBSD aeonserv.aeonnet 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Sun Apr 20 02:48:24 PDT 2008     beyert@aeonserv.aeonnet:/usr/src/sys/i386/compile/CUSTOM  i386

>Description:
    Updated to version 3.2.0.  This works with all of the latest "eggs" (packages) and libraries for chicken scheme.  Includes fixes to pkglist for examples, doc and share.  Any errors on /usr/local/lib/chicken are probably due to installed eggs. (I cannot test this because I have hundreds of eggs installed on my system)

>How-To-Repeat:
    N/A

>Fix:
    Commit this shell archive to lang/chicken

--- chicken.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	chicken
#	chicken/distinfo
#	chicken/pkg-descr
#	chicken/Makefile
#	chicken/pkg-plist
#
echo c - chicken
mkdir -p chicken > /dev/null 2>&1
echo x - chicken/distinfo
sed 's/^X//' >chicken/distinfo << 'END-of-chicken/distinfo'
XMD5 (chicken-3.2.0.tar.gz) = 94e518fe97f75c111cc700711de009d1
XSHA256 (chicken-3.2.0.tar.gz) = ab8c5b9c11c169e03762af11c1938edc05bd437b6197c674e3cdbcff82d1a22a
XSIZE (chicken-3.2.0.tar.gz) = 3165645
END-of-chicken/distinfo
echo x - chicken/pkg-descr
sed 's/^X//' >chicken/pkg-descr << 'END-of-chicken/pkg-descr'
XCHICKEN is a compiler for the Scheme programming language. CHICKEN
Xproduces portable, efficient C, supports almost all of the current
XScheme language standard (R5RS), and includes many enhancements and
Xextensions.
X
XWWW: http://www.call-with-current-continuation.org/
END-of-chicken/pkg-descr
echo x - chicken/Makefile
sed 's/^X//' >chicken/Makefile << 'END-of-chicken/Makefile'
X# New ports collection makefile for:	CHICKEN
X# Date created:				31 December 2002
X# Whom:					Kimura Fuyuki <fuyuki@hadaly.org>
X#
X# $FreeBSD: ports/lang/chicken/Makefile,v 1.34 2007/04/14 20:31:24 alepulver Exp $
X#
X
XPORTNAME=	chicken
XPORTVERSION=	3.2.0
XCATEGORIES=	lang scheme
XMASTER_SITES=	http://www.call-with-current-continuation.org/ \
X				http://chicken.wiki.br/releases/${PORTVERSION}/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	alepulver@FreeBSD.org
XCOMMENT=	A Scheme-to-C compiler
X
XUSE_GMAKE=	yes
XMAKE_ARGS+=	PLATFORM=bsd PREFIX=${PREFIX} TOPMANDIR="${PREFIX}/man"
XPLATFORM=	bsd
X
XOPTIONS=	PCRE "Enable PCRE support" off
X
XMAN1=		chicken-profile.1 chicken-setup.1 chicken.1 csc.1 csi.1
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "ia64"
X#BROKEN=		coredump during build on ia64
X.endif
X
X.if defined(WITH_PCRE)
XLIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
XUSE_HOST_PCRE=${PREFIX}/lib/libpcre.so
XCONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
X.else
XCONFIGURE_ENV+=	ac_cv_header_pcre_h=no
X.endif
X
XMAKE_FLAGS+=	HOST=${HOST} PREFIX=${PREFIX} PLATFORM=${PLATFORM}
X
Xpost-patch:
X	${MV}  ${WRKSRC}/apply-hack.x86.s ${WRKSRC}/apply-hack.i386.s
X#	@${REINPLACE_CMD} -e 's/\(install-data-am: \)install-data-local/\1/' \
X#		${WRKSRC}/Makefile.in
Xpost-install:
X	@${MKDIR} ${PREFIX}/lib/${PORTNAME}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} LICENSE NEWS README \
X		${DOCSDIR}
X	@${MKDIR} ${EXAMPLESDIR}/benchmarks
X	${CP} -R ${WRKSRC}/benchmarks/* ${EXAMPLESDIR}/benchmarks/
X.endif
X
X.include <bsd.port.post.mk>
END-of-chicken/Makefile
echo x - chicken/pkg-plist
sed 's/^X//' >chicken/pkg-plist << 'END-of-chicken/pkg-plist'
X@exec mkdir -p %D/lib/chicken
Xbin/chicken
Xbin/chicken-bug
Xbin/chicken-profile
Xbin/chicken-setup
Xbin/csc
Xbin/csi
Xinclude/chicken-config.h
Xinclude/chicken.h
Xlib/libchicken.a
Xlib/libchicken.so
Xlib/libuchicken.a
Xlib/libuchicken.so
X%%DATADIR%%/chicken-ffi-macros.scm
X%%DATADIR%%/chicken-more-macros.scm
X%%DATADIR%%/chicken-sys-macros.scm
X%%DATADIR%%/data-structures.exports
X%%DATADIR%%/eval.exports
X%%DATADIR%%/extras.exports
X%%DATADIR%%/library.exports
X%%DATADIR%%/lolevel.exports
X%%DATADIR%%/posix.exports
X%%DATADIR%%/regex.exports
X%%DATADIR%%/scheduler.exports
X%%DATADIR%%/srfi-1.exports
X%%DATADIR%%/srfi-13.exports
X%%DATADIR%%/srfi-14.exports
X%%DATADIR%%/srfi-18.exports
X%%DATADIR%%/srfi-4.exports
X%%DATADIR%%/srfi-69.exports
X%%DATADIR%%/tcp.exports
X%%DATADIR%%/utils.exports
X%%DATADIR%%/doc/LICENSE
X%%DATADIR%%/doc/README
X%%DATADIR%%/doc/html/accessing-external-objects.html
X%%DATADIR%%/doc/html/acknowledgements.html
X%%DATADIR%%/doc/html/basic-mode-of-operation.html
X%%DATADIR%%/doc/html/bibliography.html
X%%DATADIR%%/doc/html/bugs-and-limitations.html
X%%DATADIR%%/doc/html/c-interface.html
X%%DATADIR%%/doc/html/callbacks.html
X%%DATADIR%%/doc/html/chicken-setup.html
X%%DATADIR%%/doc/html/data-representation.html
X%%DATADIR%%/doc/html/declarations.html
X%%DATADIR%%/doc/html/deviations-from-the-standard.html
X%%DATADIR%%/doc/html/embedding.html
X%%DATADIR%%/doc/html/extensions-to-the-standard.html
X%%DATADIR%%/doc/html/faq.html
X%%DATADIR%%/doc/html/foreign-type-specifiers.html
X%%DATADIR%%/doc/html/getting-started.html
X%%DATADIR%%/doc/html/index.html
X%%DATADIR%%/doc/html/interface-to-external-functions-and-variables.html
X%%DATADIR%%/doc/html/locations.html
X%%DATADIR%%/doc/html/non-standard-macros-and-special-forms.html
X%%DATADIR%%/doc/html/non-standard-read-syntax.html
X%%DATADIR%%/doc/html/other-support-procedures.html
X%%DATADIR%%/doc/html/parameters.html
X%%DATADIR%%/doc/html/pattern-matching.html
X%%DATADIR%%/doc/html/supported-language.html
X%%DATADIR%%/doc/html/unit-data-structures.html
X%%DATADIR%%/doc/html/unit-eval.html
X%%DATADIR%%/doc/html/unit-extras.html
X%%DATADIR%%/doc/html/unit-library.html
X%%DATADIR%%/doc/html/unit-lolevel.html
X%%DATADIR%%/doc/html/unit-match.html
X%%DATADIR%%/doc/html/unit-posix.html
X%%DATADIR%%/doc/html/unit-regex.html
X%%DATADIR%%/doc/html/unit-srfi-1.html
X%%DATADIR%%/doc/html/unit-srfi-13.html
X%%DATADIR%%/doc/html/unit-srfi-14.html
X%%DATADIR%%/doc/html/unit-srfi-18.html
X%%DATADIR%%/doc/html/unit-srfi-4.html
X%%DATADIR%%/doc/html/unit-srfi-69.html
X%%DATADIR%%/doc/html/unit-tcp.html
X%%DATADIR%%/doc/html/unit-utils.html
X%%DATADIR%%/doc/html/using-the-compiler.html
X%%DATADIR%%/doc/html/using-the-interpreter.html
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/boyer.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/browse.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/conform.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/cpstak.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/ctak.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/dderiv.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/deriv.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/destructive.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/div-iter.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/div-rec.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/dynamic.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/earley.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/fft.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/fib.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/fibc.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/fprint.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/fread.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/hanoi.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/lattice.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/maze.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/nqueens.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/Makefile
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/except.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/except2.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/exception.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/results.txt
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/others/setlongjmp.c
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/puzzle.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/scheme.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/tak.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/takl.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/takr.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/traverse.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/travinit.scm
X%%PORTDOCS%%%%EXAMPLESDIR%%/benchmarks/triangl.scm
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/benchmarks/others
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/benchmarks
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm %%DATADIR%%/doc/html
X@dirrm %%DATADIR%%/doc
X@dirrm %%DATADIR%%
X@dirrm lib/chicken
END-of-chicken/pkg-plist
exit
--- chicken.shar ends here ---
Comment 4 Alejandro Pulver freebsd_committer freebsd_triage 2008-06-24 02:11:14 UTC
Hello.

The port still leaves the following files/directories:

/usr/local/lib/chicken
/usr/local/lib/chicken/3
/usr/local/man/man1/chicken-bug.1
/usr/local/share/info
/usr/local/share/info/chicken.info

The first 2 can be solved by adding (replacing current @dirrm line):

@dirrmtry lib/chicken/3
@dirrmtry lib/chicken

Which will correctly handle custom eggs (won't complain if present,
useful for chicken updates).

For the third one add "chicken-bug.1" to "MAN1".

But for the last problem, the install process has to be modified. By
adding "INFO=chicken" to the Makefile, the ports system automatically
tracks it. But the inconvenient is that it should be installed in
${PREFIX}/${INFO_PATH} (which generally is /usr/local/info).

I tried to patch the installation makefile but other issues appeared;
you may find it easier if you're more familiar with it.

Also, please submit any following patches as unified diffs
("diff -urN chicken.old chicken > patch.diff"), not shars.

Best Regards,
Ale
Comment 5 Timothy Beyer 2008-06-24 03:55:54 UTC
At Mon, 23 Jun 2008 22:11:14 -0300,
Alejandro Pulver wrote:
> 
> Hello.
> 
> The port still leaves the following files/directories:
> 
> /usr/local/lib/chicken
> /usr/local/lib/chicken/3
> /usr/local/man/man1/chicken-bug.1
> /usr/local/share/info
> /usr/local/share/info/chicken.info
> 
> The first 2 can be solved by adding (replacing current @dirrm line):
> 
> @dirrmtry lib/chicken/3
> @dirrmtry lib/chicken
> 
> Which will correctly handle custom eggs (won't complain if present,
> useful for chicken updates).
> 
> For the third one add "chicken-bug.1" to "MAN1".
> 
> But for the last problem, the install process has to be modified. By
> adding "INFO=chicken" to the Makefile, the ports system automatically
> tracks it. But the inconvenient is that it should be installed in
> ${PREFIX}/${INFO_PATH} (which generally is /usr/local/info).
> 
> I tried to patch the installation makefile but other issues appeared;
> you may find it easier if you're more familiar with it.
> 
> Also, please submit any following patches as unified diffs
> ("diff -urN chicken.old chicken > patch.diff"), not shars.
> 
> Best Regards,
> Ale

Hi Ale,

Thanks for the info on @dirrmtry, I have lots of custom libraries installed there, I'll make a new shar today that addresses everything that you mentioned.

Regards,
Tim
Comment 6 Timothy Beyer 2008-06-24 23:51:40 UTC
At Mon, 23 Jun 2008 22:11:14 -0300,
Alejandro Pulver wrote:
> 
> Hello.
> 
> The port still leaves the following files/directories:
> 
> /usr/local/lib/chicken
> /usr/local/lib/chicken/3
> /usr/local/man/man1/chicken-bug.1
> /usr/local/share/info
> /usr/local/share/info/chicken.info
> 
> The first 2 can be solved by adding (replacing current @dirrm line):
> 
> @dirrmtry lib/chicken/3
> @dirrmtry lib/chicken
> 
> Which will correctly handle custom eggs (won't complain if present,
> useful for chicken updates).
> 
> For the third one add "chicken-bug.1" to "MAN1".
> 
> But for the last problem, the install process has to be modified. By
> adding "INFO=chicken" to the Makefile, the ports system automatically
> tracks it. But the inconvenient is that it should be installed in
> ${PREFIX}/${INFO_PATH} (which generally is /usr/local/info).
> 
> I tried to patch the installation makefile but other issues appeared;
> you may find it easier if you're more familiar with it.
> 
> Also, please submit any following patches as unified diffs
> ("diff -urN chicken.old chicken > patch.diff"), not shars.
> 
> Best Regards,
> Ale

Hi,

Attached are diffs to fix all of the issues. (this is to applied to my updated shar, not the first one)  Apparently as of version 3.2.0, chicken deprecated their texinfo format, (apparently in 3.1.0, the chicken.texi has content, whereas in 3.2.0 it is completely empty) so it installs an empty file and gives the warning:

install-info: warning: no info dir entry in `/usr/local/info/chicken.info'

But this is harmless, and can be explained by the fact that there are no entries in chicken.texi.  It now installs the empty chicken.info file to /usr/local/info, it just doesn't add anything to /usr/local/info/dir because the generated info file has no entries.

Chicken needed to be explicitly aware of the INFO directory change, which fixes the compliation problem.  Hopefully the developers will make this more explicit in future releases.

Regards,
Tim
Comment 7 Alejandro Pulver freebsd_committer freebsd_triage 2008-06-28 00:20:46 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 8 dfilter service freebsd_committer freebsd_triage 2008-06-28 00:21:00 UTC
alepulver    2008-06-27 23:20:26 UTC

  FreeBSD ports repository

  Modified files:
    lang/chicken         Makefile distinfo pkg-plist 
  Log:
  - Update to version 3.2.0.
  
  PR:             ports/124086
  Submitted by:   Timothy Beyer <beyert@cs.ucr.edu>
  
  Revision  Changes    Path
  1.35      +16 -9     ports/lang/chicken/Makefile
  1.18      +3 -3      ports/lang/chicken/distinfo
  1.18      +55 -13    ports/lang/chicken/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"