From nobody@FreeBSD.org  Wed Mar 30 18:40:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4E2D11065674
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Mar 2011 18:40:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 30D998FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Mar 2011 18:40:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2UIerv3098446
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Mar 2011 18:40:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2UIeqED098444;
	Wed, 30 Mar 2011 18:40:53 GMT
	(envelope-from nobody)
Message-Id: <201103301840.p2UIeqED098444@red.freebsd.org>
Date: Wed, 30 Mar 2011 18:40:53 GMT
From: Eric Freeman <freebsdports@chillibear.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [NEW PORT] databases/rubygem-xapian-full (self contained xapian bindings)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156066
>Category:       ports
>Synopsis:       [NEW PORT] databases/rubygem-xapian-full (self contained xapian bindings)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 30 18:50:10 UTC 2011
>Closed-Date:    Fri Mar 09 02:31:19 UTC 2012
>Last-Modified:  Fri Mar 09 02:31:19 UTC 2012
>Originator:     Eric Freeman
>Release:        9.0
>Organization:
>Environment:
FreeBSD bsd9.local 9.0-CURRENT-201008 FreeBSD 9.0-CURRENT-201008 #0: Tue Aug  3 20:09:44 UTC 2010     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This is a port of the xapian-full gem.  It contains a copy of Xapian 1.2.3 bundled within and is therefore independent of any system installed copy of Xapian.

I had some issues with the rubygem automatic plist where several symlinks were not cleaned up after deinstall.  A manual plist with some 'unlink' commands seems to do the job nicely, however if there is a better way please advise.  Please note that building the gem takes some time because of the full xapian build that happens behind the scenes.

Ported as a dependency of another gem I am working on.
>How-To-Repeat:
n/a
>Fix:
# 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:
#
#	rubygem-xapian-full
#	rubygem-xapian-full/distinfo
#	rubygem-xapian-full/Makefile
#	rubygem-xapian-full/pkg-descr
#	rubygem-xapian-full/pkg-plist
#
echo c - rubygem-xapian-full
mkdir -p rubygem-xapian-full > /dev/null 2>&1
echo x - rubygem-xapian-full/distinfo
sed 's/^X//' >rubygem-xapian-full/distinfo << '90bdeb2a61a3e61aaf27f3b906f1621c'
XSHA256 (rubygem/xapian-full-1.2.3.gem) = bb673fed9de40c215138503ce39a361acd7ccb7e33636d5ab95aa291a3e6e00b
XSIZE (rubygem/xapian-full-1.2.3.gem) = 5030400
90bdeb2a61a3e61aaf27f3b906f1621c
echo x - rubygem-xapian-full/Makefile
sed 's/^X//' >rubygem-xapian-full/Makefile << '81bdccdb13bcd2064f428d5348e325da'
X# Ports collection makefile for:	rubygem-xapian-full
X# Date created:				19 Mar 2011
X# Whom:					Eric Freeman <freebsdports@chillibear.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xapian-full
XPORTVERSION=	1.2.3
XCATEGORIES=	databases rubygems
XMASTER_SITES=	RG
X
XMAINTAINER=	freebsdports@chillibear.com
XCOMMENT=	System independent Xapian bindings for Ruby
X
XBUNDLED_XAPIAN_VERSION=	1.2.3
XPLIST_SUB=	BUNDLED_XAPIAN_VERSION=${BUNDLED_XAPIAN_VERSION}
X
XUSE_RUBY=		yes
XUSE_RUBYGEMS=		yes
XRUBYGEM_AUTOPLIST=	yes
X
X.include <bsd.port.mk>
81bdccdb13bcd2064f428d5348e325da
echo x - rubygem-xapian-full/pkg-descr
sed 's/^X//' >rubygem-xapian-full/pkg-descr << '6602d0e4a34bbcc22163e8f6366ab504'
XXapian bindings for Ruby without a dependency on system Xapian library
XThe current bundled version of Xapian is 1.2.3
6602d0e4a34bbcc22163e8f6366ab504
echo x - rubygem-xapian-full/pkg-plist
sed 's/^X//' >rubygem-xapian-full/pkg-plist << '37440181a7023d9c3ba81e507635d563'
X@comment  These are all symlinks which are not cleaned up automatically.
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-bindings-%%BUNDLED_XAPIAN_VERSION%%/ruby/.libs/_xapian.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libbrasscheck.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libchertcheck.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libflintcheck.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libgetopt.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libxapian.la
X@unexec unlink %%PREFIX%%/%%GEMS_DIR%%/xapian-full-%%PORTVERSION%%/xapian-core-%%BUNDLED_XAPIAN_VERSION%%/.libs/libxapian.so
37440181a7023d9c3ba81e507635d563
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ruby 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 30 18:50:20 UTC 2011 
Responsible-Changed-Why:  
ruby@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
State-Changed-From-To: open->suspended 
State-Changed-By: pgollucci 
State-Changed-When: Sun Jun 26 00:16:14 UTC 2011 
State-Changed-Why:  
suspend 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
Responsible-Changed-From-To: ruby->brix 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Wed Jan 18 05:31:43 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
Responsible-Changed-From-To: brix->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Mon Jan 23 23:06:26 UTC 2012 
Responsible-Changed-Why:  
I will take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
State-Changed-From-To: suspended->feedback 
State-Changed-By: pgollucci 
State-Changed-When: Tue Jan 24 22:44:15 UTC 2012 
State-Changed-Why:  
Request Feedback: see ports/164460, please update to use the system copy 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 

From: Eric <freebsdports@chillibear.com>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>
Cc: <pgollucci@FreeBSD.org>
Subject: Re: ports/156066: [NEW PORT] databases/rubygem-xapian-full (self
 contained xapian bindings)
Date: Wed, 25 Jan 2012 19:19:38 +0000

 Hi Philip,
 
 I think you may have missed that this gem contains a copy of Xapian and
 doesn't therefore use the 'system' copy.  At present the Gem is using a
 slightly older version of 'Xapian' (1.2.3) than the 'system' will be at
 after your PR (164460).  The gem has no dependency on the system copy (xopy
 installed into Gem dirs).  Opinion on that as a good/bad idea will I'm sure
 vary from person to person, but this gem was used as a dependency of
 something I was porting some months ago hence the PR.
 
 So did you mean that you want the upstream Gem author to look at migrating
 to Xapian 1.2.7 before considering putting it in ports?  I don't believe the
 Gem has been updated since I submitted the PR.
 
 Could you just clarify
 
 -Eric
 
 

From: "Philip M. Gollucci" <pgollucci@gmail.com>
To: Eric <freebsdports@chillibear.com>
Cc: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>, 
 pgollucci@FreeBSD.org
Subject: Re: ports/156066: [NEW PORT] databases/rubygem-xapian-full (self
 contained xapian bindings)
Date: Wed, 25 Jan 2012 19:29:51 +0000

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigBEC5152099A7977DC6733CA6
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 On 01/25/12 19:19, Eric wrote:
 > Hi Philip,
 >=20
 > I think you may have missed that this gem contains a copy of Xapian and=
 
 > doesn't therefore use the 'system' copy.  At present the Gem is using a=
 
 > slightly older version of 'Xapian' (1.2.3) than the 'system' will be at=
 
 > after your PR (164460).  The gem has no dependency on the system copy (=
 xopy
 > installed into Gem dirs).  Opinion on that as a good/bad idea will I'm =
 sure
 > vary from person to person, but this gem was used as a dependency of
 > something I was porting some months ago hence the PR.
 >=20
 > So did you mean that you want the upstream Gem author to look at migrat=
 ing
 > to Xapian 1.2.7 before considering putting it in ports?  I don't believ=
 e the
 > Gem has been updated since I submitted the PR.
 >=20
 > Could you just clarify
 Rather I meant ideally we should patch the gem to use the system one.
 1.2.3 should be 99% compat with 1.2.7.
 
 
 
 --=20
 ------------------------------------------------------------------------
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
 Member,                           Apache Software Foundation
 Committer,                        FreeBSD Foundation
 Consultant,                       P6M7G8 Inc.
 Director Operations,              Ridecharge Inc.
 
 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.
 
 
 --------------enigBEC5152099A7977DC6733CA6
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (FreeBSD)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iD8DBQFPIFgydbiP+9ubjBwRAiuZAJ9sUVuYBB8neyXy7oQzBgZ/78s1nACcDiNI
 bY/GCwczWsnpXtOh1FnRPkg=
 =O1vO
 -----END PGP SIGNATURE-----
 
 --------------enigBEC5152099A7977DC6733CA6--

From: Eric <freebsdports@chillibear.com>
To: "Philip M. Gollucci" <pgollucci@gmail.com>
Cc: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>
Subject: Re: ports/156066: [NEW PORT] databases/rubygem-xapian-full (self
 contained xapian bindings)
Date: Wed, 25 Jan 2012 21:29:38 +0000

 I see, I'm not sure I totally agree with that approach.  I think changing
 the expected functionality (okay in reality the change is liable to be very
 modest) of this Gem library from the author expectations isn't the right
 approach.  There are already other Gems (not sure if they are in ports) that
 bind to the system (if installed) Xapian install, the expectation of this
 Gem is that it's "self contained".  I think it's opening up an unneeded
 maintenance issue to essentially create a private FreeBSD only fork of this
 Gem which may appear to the casual user to be the original.
 
 Regards
 
 Eric 
 
 
State-Changed-From-To: feedback->open 
State-Changed-By: pgollucci 
State-Changed-When: Wed Jan 25 21:54:25 UTC 2012 
State-Changed-Why:  
Feedback received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
State-Changed-From-To: open->feedback 
State-Changed-By: pgollucci 
State-Changed-When: Mon Feb 6 22:55:30 UTC 2012 
State-Changed-Why:  
Request Feedback: 
http://people.freebsd.org/~pgollucci/FreeBSD/logs/9-CURRENT-amd64/rubygem-xapian-full-1.2.3.log 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
State-Changed-From-To: feedback->closed 
State-Changed-By: pgollucci 
State-Changed-When: Fri Mar 9 02:31:16 UTC 2012 
State-Changed-Why:  
submitter timeout on tb failure (32 days) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156066 
>Unformatted:
