Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Jan 2011 15:31:07 -0800
From:      Jason Helfman <jhelfman@experts-exchange.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/153749: [patch] comms/minicom: pacakge installation chown operation fails on directory
Message-ID:  <1294356667.204960.32451.nullmailer@experts-exchange.com>
Resent-Message-ID: <201101062340.p06Ne4sT008252@freefall.freebsd.org>

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

>Number:         153749
>Category:       ports
>Synopsis:       [patch] comms/minicom: pacakge installation chown operation fails on directory
>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:   Thu Jan 06 23:40:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
Experts Exchange, LLC.
>Environment:
System: FreeBSD eggman.experts-exchange.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Minicom fails to change ownership on directory, because it isn't created during a package installation.
>How-To-Repeat:
cd /usr/ports/comms/minicom
make package
make deinstall
pkg_add /usr/ports/packages/comms/minicom-2.4.tbz

Error should be:
chown: /usr/local/etc/minicom: No such file or directory
pkg_add: command '/usr/sbin/chown uucp /usr/local/etc/minicom' failed

With this patch it creates the directory, and changes ownerships without issue.
Tinderbox run is clean.

>Fix:

--- comms/minicom/pkg-plist.orig	2011-01-06 15:06:45.000000000 -0800
+++ comms/minicom/pkg-plist	2011-01-06 15:08:30.000000000 -0800
@@ -20,6 +20,7 @@
 %%NLS%%share/locale/sv/LC_MESSAGES/minicom.mo
 %%NLS%%share/locale/vi/LC_MESSAGES/minicom.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/minicom.mo
+@exec if [ ! -d %D/etc/minicom ]; then /bin/mkdir -p %D/etc/minicom ; fi
 @exec /usr/sbin/chown uucp %D/etc/minicom
 @dirrmtry etc/minicom
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
>Release-Note:
>Audit-Trail:
>Unformatted:



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