From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 06:45:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2914216A4D2 for ; Wed, 4 Aug 2004 06:45:20 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4114A43D45 for ; Wed, 4 Aug 2004 06:45:11 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i746j2nl056764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Aug 2004 07:45:02 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i746j1xI056755; Wed, 4 Aug 2004 07:45:01 +0100 (BST) (envelope-from matthew) Date: Wed, 4 Aug 2004 07:45:01 +0100 From: Matthew Seaman To: Gerard Seibert Message-ID: <20040804064501.GA36113@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gerard Seibert , freebsd-questions References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.5.3 (smtp.infracaninophile.co.uk [0.0.0.0]); Wed, 04 Aug 2004 07:45:02 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions Subject: Re: Acquiring CPAN Modules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 06:45:20 -0000 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 03, 2004 at 08:56:16PM -0400, Gerard Seibert wrote: > What is the best way to acquire CPAN modules? If I run CPAN, and actually= =20 > install a module, and then later run pkgdb I receive an error message=20 > stating: >=20 > Missing Origin: bsdpan-(module-name) Skip this for now? To skip it > without asking in the future, please list it in HOLD_PKGS > > The modules seem to work correctly however. Several modules that I want, = I=20 > cannot find in the FreeBSD Ports collections. >=20 > Does anyone have any suggestions, or is using CPAN the only way to get=20 > Perl modules installed? It's up to you. Generally I find though that where the modules you want are available through the ports collection, then it's best to install from there. Otherwise, install using CPAN. If you're using perl installed from ports or bundled with 4.x, then the CPAN system will have been slightly modified, so that BSDPAN installed modules will be registered with the packages system. That has a number of advantages, principally that you can cleanly deinstall the package should you wish. As the error message you see says, modules installed via BSDPAN can't be associated with an origin, ie. a location in the ports tree. That means that tools like portupgrade(1) and friends can't be used to manage BSDPAN installed modules, and you should do exactly what the error message says and list it in the HOLD_PKGS array in /usr/local/etc/pkgtools.conf: HOLD_PKGS =3D [ 'bsdpan-*', ] Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBEIXtiD657aJF7eIRAin3AKCWB25lLB5sEAueYbO9cg7d0sZccwCgt2ay sDO6s8zRV+kQcHLMO/7lK7o= =gtaL -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--