ports/158840: [PATCH] comms/gammu: plist is broken if shells/bash is installed
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Tue Jul 12 16:50:15 UTC 2011
>Number: 158840
>Category: ports
>Synopsis: [PATCH] comms/gammu: plist is broken if shells/bash is installed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 12 16:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Ruslan Mahmatkhanov
>Release: 9.0-CURRENT
>Organization:
>Environment:
9.0-CURRENT i386
>Description:
If bash is installed, comms/gammu installs this file:
/etc/bash_completion.d/gammu and leaves it upon deinstall.
So the problem is (in case of bash installed):
- gammu installs files to /etc
- plist is broken in case of bash installed.
The first issue can be fixed with patch attached, but the second one
needs some cmake or ports foo to install this completion script only
if bash is installed/requested.
Maintainer already notified and i filed this pr by his request as
reminder.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2011-05-23 18:17:17.000000000 +0400
+++ Makefile 2011-07-12 20:36:17.000000000 +0400
@@ -50,6 +50,9 @@
post-patch:
@${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config
+ @${REINPLACE_CMD} -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \
+ ${WRKSRC}/contrib/CMakeLists.txt
+
.if ${OSVERSION} < 700042
@${REINPLACE_CMD} -e 's@ -Wno-pointer-sign@@g' ${WRKSRC}/CMakeLists.txt
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list