From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 21 09:00:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A74F065E for ; Sun, 21 Apr 2013 09:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 758BAC25 for ; Sun, 21 Apr 2013 09:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3L900XJ081276 for ; Sun, 21 Apr 2013 09:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3L900EK081275; Sun, 21 Apr 2013 09:00:00 GMT (envelope-from gnats) Resent-Date: Sun, 21 Apr 2013 09:00:00 GMT Resent-Message-Id: <201304210900.r3L900EK081275@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, John Marino Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A5A91505 for ; Sun, 21 Apr 2013 08:51:13 +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 949CABE6 for ; Sun, 21 Apr 2013 08:51:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3L8pDgm013328 for ; Sun, 21 Apr 2013 08:51:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3L8pD5m013326; Sun, 21 Apr 2013 08:51:13 GMT (envelope-from nobody) Message-Id: <201304210851.r3L8pD5m013326@red.freebsd.org> Date: Sun, 21 Apr 2013 08:51:13 GMT From: John Marino To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178021: print/latex2slides: [PATCH] tries to create directory at $HOME X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Apr 2013 09:00:00 -0000 >Number: 178021 >Category: ports >Synopsis: print/latex2slides: [PATCH] tries to create directory at $HOME >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 21 09:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Marino >Release: >Organization: >Environment: >Description: print/latex2slides tries to create a directory at $HOME even if it's not asked to install locally (which is a bug in the install script). here's proof on a system where $HOME is read-only in a jail ================================ Traceback (most recent call last): File "./install", line 299, in os.mkdir(USER_DIR) # make sure USER_DIR exists OSError: [Errno 30] Read-only file system: '/root/.latex2slides/' *** Error code 1 ================================ patch to fix this below. Ports should not be modifying $HOME directories as part of a package build. add it to port as "files/patch-install" >How-To-Repeat: >Fix: Patch attached with submission follows: --- install.orig 2003-10-27 15:40:41.000000000 +0000 +++ install @@ -295,8 +295,6 @@ def parse_command_line(): # execution starts here -if not os.access(USER_DIR, os.F_OK): - os.mkdir(USER_DIR) # make sure USER_DIR exists p=Parameters() parse_command_line() install() >Release-Note: >Audit-Trail: >Unformatted: