ports/178021: print/latex2slides: [PATCH] tries to create directory at $HOME
John Marino
draco at marino.st
Sun Apr 21 09:00:00 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list