Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 2013 08:51:13 GMT
From:      John Marino <draco@marino.st>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178021: print/latex2slides: [PATCH] tries to create directory at $HOME
Message-ID:  <201304210851.r3L8pD5m013326@red.freebsd.org>
Resent-Message-ID: <201304210900.r3L900EK081275@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <module>
    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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304210851.r3L8pD5m013326>