[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] unable to build/update ports in jails



On 26/09/2013 12:25, Philip Jocks wrote:
Hej,

Am 26.09.2013 um 12:20 schrieb Paul Macdonald <paul AT ifdnrg DOT com>:

Hi,

On multiple boxes (FreeBSD9.1) i am now unable to build/update ports within jails.

A short example of installing portmaster:
===> Fetching all distfiles required by portmaster-3.17.2 for building
===>  Extracting for portmaster-3.17.2
=> SHA256 Checksum OK for g-freebsd-portmaster-3.17.2-7359019.tar.gz.
===>  Patching for portmaster-3.17.2
===>  Configuring for portmaster-3.17.2
===>  Building for portmaster-3.17.2
/usr/bin/sed -e 's#/usr/local#/usr/local#g' /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/freebsd-portmaster-7359019/portmaster > /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/portmaster
/usr/bin/sed -e 's#/usr/local#/usr/local#g' /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/freebsd-portmaster-7359019/files/portmaster.rc.sample > /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/portmaster.rc.sample
===>  Staging for portmaster-3.17.2
===>   Generating temporary packing list
install  -o root -g wheel -m 555 /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/portmaster /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/stage/usr/local/sbin/portmaster
install  -o root -g wheel -m 444 /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/portmaster.rc.sample /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/stage/usr/local/etc
install  -o root -g wheel -m 444 /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/freebsd-portmaster-7359019/files/portmaster.8 /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/stage/usr/local/man/man8
/bin/mkdir -p /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/stage/usr/local/etc/bash_completion.d
install  -o root -g wheel -m 444 /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/freebsd-portmaster-7359019/files/bash-completions /var/ports/basejail/usr/ports/ports-mgmt/portmaster/work/stage/usr/local/etc/bash_completion.d/portmaster.sh
====> Compressing man pages
===>  Building package for portmaster-3.17.2
Creating package /basejail/usr/ports/ports-mgmt/portmaster/portmaster-3.17.2.tbz
Registering depends:.
Creating bzip'd tar ball in '/basejail/usr/ports/ports-mgmt/portmaster/portmaster-3.17.2.tbz'
tar: Failed to open '/basejail/usr/ports/ports-mgmt/portmaster/portmaster-3.17.2.tbz'
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /basejail/usr/ports/ports-mgmt/portmaster.
*** [install] Error code 1

Stop in /basejail/usr/ports/ports-mgmt/portmaster.


Any advice?
try to put this into your jail's /etc/make.conf:

WRKDIRPREFIX=           /var/ports
DISTDIR=                /var/ports/distfiles
PACKAGES=               /var/ports/packages
INDEXDIR=               /var/ports

you seem to try to write to the read-only basejail filesystem.

Cheers,

Philip




that's already in my jailed /etc/make.conf

WRKDIRPREFIX=           /var/ports
DISTDIR=                /var/ports/distfiles
PACKAGES=               /var/ports/packages
INDEXDIR=               /var/ports


However on installs/updates it seems to be trying to write the file to /basejail ( which is read only hence failing?)

It does the build into

/var/ports/basejail/usr/ports/ports-mgmt/portmaster/

but then tries to install the package to

/basejail/usr/ports/ports-mgmt/portmaster/portmaster-3.17.2.tbz



thanks
Paul.



--
-------------------------
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-------------------------
t: 0131 5548070
m: 07970339546
e: paul AT ifdnrg DOT com
w: http://www.ifdnrg.com
-------------------------
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
----------------------------------------------------
High Specification Dedicated Servers from £100.00pm
----------------------------------------------------