FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CRUX > CRUX

LinkBack Thread Tools
Old 11-27-2007, 09:55 AM
"Lucas Hazel"
Default prt-get and pkgmk -cf

I wanted to setup my laptop to use my home package repository, but still
be able to build packages when I'm roaming by just using a different set
of config files.

So I made /etc/pkgmk-nfs.conf and set the variables, eg:


Then make a /etc/prt-get-nfs.conf, in particular set,

makecommand pkgmk -cf /etc/pkgmk-nfs.conf

This gives the following error:

prt-get: updating /net/home/pkgmk/ports/opt/glib
=======> Package '/net/home/pkgmk/package/i686/glib#2.14.3-1.pkg.tar.gz'
is up to date.
prt-get: updating glib from 2.14.0-1 to 2.14.3-1
pkgadd: could not open glib#2.14.3-1.pkg.tar.gz: No such file or directory

So pkgmk finds the package is up to date, but pkgadd fails. Upon
inspecting the prt-get source I find the following function in

string InstallTransaction::getPkgDest() const
string pkgdest = "";
pkgdest = getPkgDestFromFile("/etc/pkgmk.conf");
if (pkgdest.size() == 0) {
pkgdest = getPkgDestFromFile("/usr/bin/pkgmk");

m_pkgDest = pkgdest;
return pkgdest;

It seems to me that we should be able to set the pkgmk config file either
in prt-get.conf or atleast as an environment variable, rather than using a
hardwired constant. That or I'm just an edge case no one cares about

Lucas Hazel

CRUX mailing list

Thread Tools

All times are GMT. The time now is 12:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org