Date: Tue, 7 Aug 2012 08:04:34 GMT From: Frank Wall <fw@moov.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/170441: [PATCH] net/rinetd: fails to install due to file name collision Message-ID: <201208070804.q7784YxO047375@red.freebsd.org> Resent-Message-ID: <201208070810.q778A1du014858@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208070804.q7784YxO047375>