Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2007 14:45:53 -0400
From:      "Anthony Volodkin" <anthonyv@brainlink.com>
To:        freebsd-questions@freebsd.org
Subject:   Creating and Copying bsdpan packages across machines
Message-ID:  <4e8f45730707131145t7a15ff7cpc4926907d624c76e@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

I have a few servers where packages are managed via a central package build
system, and the remaining machines are set to only fetch packages from
there, so they don't try to build them.  This works great and saves lots of
time.

The only issue I still have here is with bsdpan- packages which are created
by Perl CPAN modules not in the ports system.  There are just a few of them,
but they are important.

What I've tried is:

1. Install module EVDB::API using:

    perl -MCPAN -e "install EVDB::API"

command on the package build server

2. Generate a package out of the installed port via:

    pkg_create -b bsdpan-EVDB-API-0.99

3. Copy the resulting bsdpan-EVDB-API-0.99.tbz on another machine, and try
installing it with:

    pkg_add bsdpan-EVDB-API-0.99.tbz

What happens here is:

#> pkg_add -v bsdpan-EVDB-API-0.99.tbz
Requested space: 36140 bytes, free space: 15849822208 bytes in
/var/tmp/instmp.AEIbBN
extract: Package name is bsdpan-EVDB-API-0.99
extract: CWD to /
extract: ///usr/local/lib/perl5/5.8.8/man/man3/EVDB::API.3
extract: ///usr/local/lib/perl5/5.8.8/man/man3/EVDB::API::JSON.3
tar: /usr/local/lib/perl5/5.8.8/man/man3/EVDB::API.3: Cannot stat: No such
file or directory
tar: Error opening archive: Empty input file: Inappropriate file type or
format
pkg_add: extract_plist: can not invoke 101 byte tar pipeline: /usr/bin/tar
cf - /usr/local/lib/perl5/5.8.8/man/man3/EVDB\:\:API.3|/usr/bin/tar --unlink
-xpf - -C /

I haven't been able to debug it further.

What's going on here?

What else can I do to resolve this?


Thanks for your help.

--
Anthony Volodkin



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4e8f45730707131145t7a15ff7cpc4926907d624c76e>