ports/170441: [PATCH] net/rinetd: fails to install due to file name collision
Frank Wall
fw at moov.de
Tue Aug 7 08:10:02 UTC 2012
>Number: 170441
>Category: ports
>Synopsis: [PATCH] net/rinetd: fails to install due to file name collision
>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 Aug 07 08:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Frank Wall
>Release: 7.4-RELEASE-p9
>Organization:
>Environment:
FreeBSD X 7.4-RELEASE-p9 FreeBSD 7.4-RELEASE-p9 #0: Mon Jun 11 19:47:58 UTC 2012 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Recently (r302141) the RC script was renamed from *.sh.in to *.in. This lead to a file name collision during the "make install" phase.
>How-To-Repeat:
- try to install net/rinetd
- install will stop with this error message:
===> Installing for rinetd-0.62_4
cannot create /work/a/ports/net/rinetd/work/rinetd: Is a directory
*** Error code 2
Stop in /a/ports/net/rinetd.
>Fix:
I've created a patch to address this issue by renaming/moving the ${WRKSRC}. I'm not sure if this is the appropiate fix, but it solves the issue for me.
Patch attached with submission follows:
--- net/rinetd/Makefile.orig 2012-08-07 09:56:01.000000000 +0200
+++ net/rinetd/Makefile 2012-08-07 09:56:47.000000000 +0200
@@ -19,7 +19,7 @@
OPTIONS_DEFINE= DOCS
-WRKSRC= ${WRKDIR}/rinetd/
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_JOBS_SAFE= yes
USE_DOS2UNIX= yes
@@ -32,6 +32,9 @@
.include <bsd.port.pre.mk>
+post-extract:
+ ${MV} ${WRKDIR}/rinetd/ ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
post-patch:
@${REINPLACE_CMD} -E "s,(/etc/rinetd.conf),${PREFIX}\1," \
${WRKSRC}/rinetd.[8c]
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list