From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 5 11:10:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4322F1065672 for ; Thu, 5 Apr 2012 11:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F07208FC16 for ; Thu, 5 Apr 2012 11:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q35BA1S8055416 for ; Thu, 5 Apr 2012 11:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q35BA17s055415; Thu, 5 Apr 2012 11:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 5 Apr 2012 11:10:01 GMT Resent-Message-Id: <201204051110.q35BA17s055415@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Herbert Vojčík" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72CAC106566C for ; Thu, 5 Apr 2012 11:09:30 +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 5D7878FC0A for ; Thu, 5 Apr 2012 11:09:30 +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 q35B9T1t054976 for ; Thu, 5 Apr 2012 11:09:29 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q35B9TMQ054975; Thu, 5 Apr 2012 11:09:29 GMT (envelope-from nobody) Message-Id: <201204051109.q35B9TMQ054975@red.freebsd.org> Date: Thu, 5 Apr 2012 11:09:29 GMT From: "Herbert Vojčík" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/166666: qjail update -b remove uglyporthack X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 11:10:02 -0000 >Number: 166666 >Category: ports >Synopsis: qjail update -b remove uglyporthack >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 05 11:10:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Herbert Vojčík >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD devel 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: perl is not able to start (for example, build of ffmpeg fails) in jail managed by qjail after when 'qjail update -b' was executed. >How-To-Repeat: In host, install qjail. In host, create a jail under qjail In a jail, install perl. In a jail, perl works (though it was not able to install /usr/bin/perl link; but qjail employs "uglyperlhack" technique by supplying /usr/bin/perl -> /usr/local/bin/perl symlink in advance). In host, run 'qjail -b update' as root (this recopies basejail /usr/bin/ from the host) In a jail, everything works but perl (which lost /usr/bin/perl symlink due to update). >Fix: Update qjail script so that it reinstates perluglyhack at the end of 'qjail update -b'. (in general, need for uglyperlhack could be mitigated by using unionfs instead of nullfs to mount /usr/jails/jailname/basejail into /usr/jails/basejail. This would fix _any_ changes outside /usr/local in a way that it saves them per jail and reuses them in subsequent starts; it saves them into jail's basejail directory using unionfs) >Release-Note: >Audit-Trail: >Unformatted: