On Thu, Jul 20, 2006 at 04:59:01PM -0500, Will Maier wrote: > On Thu, Jul 20, 2006 at 12:14:23AM +0200, Jon Olsson wrote: > > Here's the latest diff. > > # make lib-depends-check > /usr/ports/packages/i386/all/darcs-1.0.8.tgz: > Extra: readline.3 > Extra: ncurses.10 > Extra: pthread.6 > > After removing the extra libs, it compiles and passes regress on > i386/-current.
You're correct. Nifty target that, included is an updated diff. diffstat: devel/darcs/Makefile | 6 ++- devel/darcs/distinfo | 8 ++-- devel/darcs/patches/patch-GNUmakefile | 20 +++++----- devel/darcs/patches/patch-configure | 62 ++++++++++++++++---------------- devel/darcs/patches/patch-tests_pull_pl | 18 +++++++++ devel/darcs/pkg/PLIST | 1 lang/ghc/ghc.port.mk | 7 +++ 7 files changed, 74 insertions(+), 48 deletions(-) -- Jon
? devel/darcs/w-darcs-1.0.8 ? devel/darcs/patches/patch-tests_pull_pl Index: lang/ghc/ghc.port.mk =================================================================== RCS file: /cvs/ports/lang/ghc/ghc.port.mk,v retrieving revision 1.3 diff -u -r1.3 ghc.port.mk --- lang/ghc/ghc.port.mk 2005/02/19 03:42:11 1.3 +++ lang/ghc/ghc.port.mk 2006/07/21 09:04:06 @@ -7,4 +7,11 @@ # sparc BUILD_DEPENDS+= bin/ghc::lang/ghc + +# Only add runtime when it is actually needed (by default yes) +GHC_RUNTIME?= YES +.if ${GHC_RUNTIME} == "YES" RUN_DEPENDS+= bin/ghc::lang/ghc +.else +LIB_DEPENDS+= gmp::devel/gmp +.endif Index: devel/darcs/Makefile =================================================================== RCS file: /cvs/ports/devel/darcs/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- devel/darcs/Makefile 2005/11/17 09:31:16 1.14 +++ devel/darcs/Makefile 2006/07/21 09:04:06 @@ -2,13 +2,15 @@ COMMENT= "advanced revision control system written in Haskell" -V= 1.0.4 +V= 1.0.8 DISTNAME= darcs-${V} CATEGORIES= devel HOMEPAGE= http://www.darcs.net/ MASTER_SITES= ${HOMEPAGE} MAINTAINER= Don Stewart <[EMAIL PROTECTED]> +GHC_RUNTIME= no + MODULES= lang/ghc LIB_DEPENDS= curl.2::net/curl @@ -32,6 +34,6 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c crypto curses gmp m ncurses pthread readline ssl z +WANTLIB= c crypto curses gmp m ssl z .include <bsd.port.mk> Index: devel/darcs/distinfo =================================================================== RCS file: /cvs/ports/devel/darcs/distinfo,v retrieving revision 1.11 diff -u -r1.11 distinfo --- devel/darcs/distinfo 2005/11/17 09:31:16 1.11 +++ devel/darcs/distinfo 2006/07/21 09:04:06 @@ -1,4 +1,4 @@ -MD5 (darcs-1.0.4.tar.gz) = 0be693b00e4b1bd24906d4f479e78923 -RMD160 (darcs-1.0.4.tar.gz) = 5b8e4b2396c1cd7a373e103aa90d8a47802a43de -SHA1 (darcs-1.0.4.tar.gz) = 71ab71a9fa94db74ba3b79fa65b797a129a652f2 -SIZE (darcs-1.0.4.tar.gz) = 950528 +MD5 (darcs-1.0.8.tar.gz) = a7a26d1a98c5675dcab4c2cc30eba59d +RMD160 (darcs-1.0.8.tar.gz) = a95309f7dc79b29d7e4f237627aa300a84aa5331 +SHA1 (darcs-1.0.8.tar.gz) = f69fb2f5deb3c5281b2eaed9fcb8aa3fe55829dd +SIZE (darcs-1.0.8.tar.gz) = 1010010 Index: devel/darcs/patches/patch-GNUmakefile =================================================================== RCS file: /cvs/ports/devel/darcs/patches/patch-GNUmakefile,v retrieving revision 1.8 diff -u -r1.8 patch-GNUmakefile --- devel/darcs/patches/patch-GNUmakefile 2005/11/17 09:31:16 1.8 +++ devel/darcs/patches/patch-GNUmakefile 2006/07/21 09:04:06 @@ -2,17 +2,17 @@ Don't try to build or install .ps docs, and don't regen the .html docs. ---- GNUmakefile.orig Thu Sep 1 21:33:13 2005 -+++ GNUmakefile Mon Sep 12 12:03:02 2005 -@@ -103,10 +103,9 @@ installbin: all - $(INSTALL) -d $(DESTDIR)/$(mandir)/man1 - $(INSTALL_DATA) darcs.1 $(DESTDIR)/$(mandir)/man1/ +--- GNUmakefile.orig Fri Jun 9 15:01:54 2006 ++++ GNUmakefile Fri Jun 9 15:02:22 2006 +@@ -120,10 +120,9 @@ installbin: all + $(INSTALL) -d $(DESTDIR)$(mandir)/man1 + $(INSTALL_DATA) darcs.1 $(DESTDIR)$(mandir)/man1/ -installdocs: darcs.ps manual/index.html +installdocs: - test -d $(DESTDIR)/$(datadir)/doc/darcs/manual || \ - $(INSTALL) -d $(DESTDIR)/$(datadir)/doc/darcs/manual -- $(INSTALL_DATA) darcs.ps $(DESTDIR)/$(datadir)/doc/darcs - $(INSTALL_DATA) manual/* $(DESTDIR)/$(datadir)/doc/darcs/manual + test -d $(DESTDIR)$(datadir)/doc/darcs/manual || \ + $(INSTALL) -d $(DESTDIR)$(datadir)/doc/darcs/manual +- $(INSTALL_DATA) darcs.ps $(DESTDIR)$(datadir)/doc/darcs + $(INSTALL_DATA) manual/* $(DESTDIR)$(datadir)/doc/darcs/manual - test -d $(DESTDIR)/$(datadir)/doc/darcs/examples || \ + test -d $(DESTDIR)$(datadir)/doc/darcs/examples || \ Index: devel/darcs/patches/patch-configure =================================================================== RCS file: /cvs/ports/devel/darcs/patches/patch-configure,v retrieving revision 1.6 diff -u -r1.6 patch-configure --- devel/darcs/patches/patch-configure 2005/11/17 09:31:16 1.6 +++ devel/darcs/patches/patch-configure 2006/07/21 09:04:06 @@ -2,42 +2,42 @@ Don't build the postscript manual ---- configure.orig Thu Sep 1 21:33:16 2005 -+++ configure Mon Sep 12 12:02:06 2005 -@@ -3980,7 +3980,7 @@ if test "$enable_mmap" = "no"; then +--- configure.orig Sun May 14 02:11:04 2006 ++++ configure Fri Jun 9 15:04:52 2006 +@@ -4306,7 +4306,7 @@ if test "$enable_mmap" = "no"; then fi --TARGETS="darcs darcs-createrepo darcs.1" -+TARGETS="darcs darcs-createrepo" +-TARGETS="darcs darcs.1" ++TARGETS="darcs" INSTALLWHAT="installbin" BUILDDOC="no" -@@ -4170,7 +4170,7 @@ if test -z "$DVIPS"; then +@@ -4510,7 +4510,7 @@ fi echo "$as_me: WARNING: Cannot find dvips in your path!" >&2;} - fi - if test ! '(' '(' -z "$LATEX" ')' -o '(' -z "$DVIPS" ')' ')'; then -- TARGETS="$TARGETS darcs.ps" -+ TARGETS="$TARGETS" - INSTALLWHAT="$INSTALLWHAT installdocs" - BUILDDOC="yes" - fi -@@ -4291,15 +4291,15 @@ fi + fi + if test ! '(' '(' -z "$LATEX" ')' -o '(' -z "$DVIPS" ')' ')'; then +- TARGETS="$TARGETS darcs.ps" ++ TARGETS="$TARGETS" + INSTALLWHAT="$INSTALLWHAT installdocs" + BUILDDOC="yes" + fi +@@ -4631,15 +4631,15 @@ fi echo "$as_me: WARNING: Cannot find hevea in your path either!" >&2;} - MAKEMANUAL="touch manual/index.html; echo Cannot make manual!" - else -- TARGETS="$TARGETS manual/index.html" -+ TARGETS="$TARGETS" - MAKEMANUAL="$HEVEA -o manual/index.html darcs.tex" - fi - else -- TARGETS="$TARGETS manual/index.html" -+ TARGETS="$TARGETS" - MAKEMANUAL="cd manual && $HTLATEX ../darcs.tex && ln -sf darcs.html index.html" - fi - else -- TARGETS="$TARGETS manual/index.html" -+ TARGETS="$TARGETS" - MAKEMANUAL="$LATEX2HTML -split +1 -dir manual darcs.tex" - PREPROCHTML="--html" - fi + MAKEMANUAL="touch manual/index.html; echo Cannot make manual!" + else +- TARGETS="$TARGETS manual/index.html" ++ TARGETS="$TARGETS" + MAKEMANUAL="$HEVEA -o manual/index.html darcs.tex" + fi + else +- TARGETS="$TARGETS manual/index.html" ++ TARGETS="$TARGETS" + MAKEMANUAL="cd manual && $HTLATEX ../darcs.tex && ln -sf darcs.html index.html" + fi + else +- TARGETS="$TARGETS manual/index.html" ++ TARGETS="$TARGETS" + MAKEMANUAL="$LATEX2HTML -split +1 -dir manual darcs.tex" + PREPROCHTML="--html" + fi Index: devel/darcs/pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/darcs/pkg/PLIST,v retrieving revision 1.9 diff -u -r1.9 PLIST --- devel/darcs/pkg/PLIST 2005/05/09 03:41:34 1.9 +++ devel/darcs/pkg/PLIST 2006/07/21 09:04:06 @@ -4,7 +4,6 @@ libexec/darcs/cgi-bin/ libexec/darcs/cgi-bin/darcs.cgi @man man/man1/darcs.1 -sbin/darcs-createrepo share/darcs/ share/darcs/bash_completion.d/ share/darcs/bash_completion.d/darcs --- /dev/null Fri Jul 21 11:04:16 2006 +++ devel/darcs/patches/patch-tests_pull_pl Thu Jul 6 12:34:30 2006 @@ -0,0 +1,18 @@ +$OpenBSD$ +--- tests/pull.pl.orig Fri Jun 16 20:59:27 2006 ++++ tests/pull.pl Thu Jul 6 12:34:14 2006 +@@ -54,8 +54,12 @@ TAKE_LOCK: { + } elsif ($^O =~ /msys/i) { + pass('this test fails on windows, so ignore it'); + } else { +- like($out, qr#one/date\.t.+: permission denied#i, +- 'expect permission denied error'); ++ if(getuid() == 0) { ++ pass("root never gets permission denied"); ++ } else { ++ like($out, qr#one/date\.t.+: permission denied#i, ++ 'expect permission denied error'); ++ } + } + }; +