Date: Wed, 19 Aug 2009 15:09:39 GMT From: Danny Pansters <danny@ricin.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/137964: [PATCH] Unbreak finance/gnucash build Message-ID: <200908191509.n7JF9dxx071593@www.freebsd.org> Resent-Message-ID: <200908191510.n7JFA2Ac081277@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137964 >Category: ports >Synopsis: [PATCH] Unbreak finance/gnucash build >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 19 15:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Danny Pansters >Release: 7.2-STABLE >Organization: >Environment: FreeBSD desktop.homenet 7.2-STABLE FreeBSD 7.2-STABLE #1: Mon Jun 1 14:05:34 CEST 2009 root@desktop.homenet:/usr/obj/usr/src/sys/GENERIC i386 >Description: Gnucash port was marked BROKEN due to configure failing. Reason for this is that GUILE (used by configure) can't find SLIB. It appears to have something to do with paths/naming conventions changing in one or both these packages causing them to be out of sync. See also: http://bugzilla.gnome.org/show_bug.cgi?id=347922 >How-To-Repeat: cd /usr/ports/finance/gnucash && make Configure will fail (CAN'T FIND SLIB) >Fix: lang/slib needs to have a symlink mklibcat -> mklibcat.scm lang/slib-guile needs to have a symlink for the directory 1.8 -> site This clears up the confusion (though it ain't pretty) and gnucash will build and run as expected. Attached: combined patch for lang/slib lang/slib-guile and finance/gnucash To apply: # cd /usr/ports # patch < slib__guile__gnucash__combined.diff.txt Patch attached with submission follows: diff -ruN lang/slib/Makefile lang/slib.new/Makefile --- lang/slib/Makefile 2009-08-05 16:26:17.000000000 +0200 +++ lang/slib.new/Makefile 2009-08-19 16:15:25.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= slib PORTVERSION= 3b1 +PORTREVISION= 1 CATEGORIES= lang scheme MASTER_SITES= http://groups.csail.mit.edu/mac/ftpdir/scm/ \ http://groups.csail.mit.edu/mac/ftpdir/scm/OLD/ @@ -32,6 +33,7 @@ ${INSTALL_DATA} ${WRKSRC}/*.scm ${WRKSRC}/*.init ${WRKSRC}/*.txt \ ${WRKSRC}/*.xyz ${WRKSRC}/*.ps ${DATADIR} ${INSTALL_MAN} ${WRKSRC}/slib.info ${MANPREFIX}/info + @cd ${DATADIR} && ${LN} -sf mklibcat.scm mklibcat && ${LN} -sf init . .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for f in ANNOUNCE ChangeLog FAQ README diff -ruN lang/slib/pkg-plist lang/slib.new/pkg-plist --- lang/slib/pkg-plist 2009-08-05 16:26:17.000000000 +0200 +++ lang/slib.new/pkg-plist 2009-08-19 16:16:46.000000000 +0200 @@ -190,3 +190,7 @@ %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% +@exec ln -sf %D/%%DATADIR%%/mklibcat.scm %D/%%DATADIR%%/mklibcat +@exec ln -sf %D/%%DATADIR%%/init %D/%%DATADIR%%/ +@unexec rm -f %D/%%DATADIR%%/mklibcat +@unexec rm -f %D/%%DATADIR%%/init diff -ruN lang/slib-guile/Makefile lang/slib-guile.new/Makefile --- lang/slib-guile/Makefile 2009-08-11 06:23:00.000000000 +0200 +++ lang/slib-guile.new/Makefile 2009-08-19 16:18:24.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= slib PORTVERSION= 3b1 # Keep this in sync with lang/slib +PORTREVISION= 1 CATEGORIES= lang scheme MASTER_SITES= # empty PKGNAMESUFFIX= -guile @@ -23,6 +24,7 @@ do-install: ${LN} -shf ${PREFIX}/share/slib ${LOCALBASE}/share/guile/1.8/slib + cd ${PREFIX}/share/guile && ${LN} -sf 1.8 site cd ${PREFIX}/share/guile/1.8/slib && env \ GUILE_IMPLEMENTATION_PATH=${LOCALBASE}/share/guile/1.8 \ ${LOCALBASE}/bin/guile -q -l guile.init -c \ diff -ruN lang/slib-guile/pkg-plist lang/slib-guile.new/pkg-plist --- lang/slib-guile/pkg-plist 2009-08-11 06:23:00.000000000 +0200 +++ lang/slib-guile.new/pkg-plist 2009-08-19 16:07:37.000000000 +0200 @@ -1,4 +1,6 @@ @exec ln -shf %D/share/slib %D/share/guile/1.8/slib +@exec ln -sf %D/share/guile/1.8 %D/share/guile/site @exec env GUILE_IMPLEMENTATION_PATH=%%LOCALBASE%%/share/guile/1.8 %D/bin/guile -q -l %%LOCALBASE%%/share/slib/guile.init -c "(use-modules (ice-9 slib))(require 'new-catalog)" @unexec rm -f %D/share/guile/1.8/slib @unexec rm -f %D/share/guile/1.8/slibcat +@unexec rm -f %D/share/guile/site diff -ruN finance/gnucash/Makefile finance/gnucash.new/Makefile --- finance/gnucash/Makefile 2009-08-17 19:20:37.000000000 +0200 +++ finance/gnucash.new/Makefile 2009-08-19 16:22:08.000000000 +0200 @@ -8,7 +8,7 @@ PORTNAME= gnucash PORTVERSION= 2.2.9 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= finance gnome MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.gnucash.org/pub/gnucash/sources/stable/ @@ -30,8 +30,6 @@ ${SITE_PERL}/Finance/QuoteHist.pm:${PORTSDIR}/finance/p5-Finance-QuoteHist \ ${LOCALBASE}/share/omf/gnucash-docs/gnucash-guide-C.omf:${PORTSDIR}/finance/gnucash-docs -BROKEN= does not build - OPTIONS= AQBANKING "AqBanking support (HBCI/OpenHBCI)" off \ OFX "OFX support" off \ POSTGRESQL "Enable Postgresql as Backend" off >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908191509.n7JF9dxx071593>