Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2012 02:31:21 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/174156: deskutils/cdcat: Fix build on 7-stable
Message-ID:  <20121206023121.fa79483474ee9accc1d44166@yahoo.com>
Resent-Message-ID: <201212051810.qB5IA0tV033260@freefall.freebsd.org>

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

>Number:         174156
>Category:       ports
>Synopsis:       deskutils/cdcat: Fix build on 7-stable
>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:   Wed Dec 05 18:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build on 7-stable

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/deskutils/cdcat/Makefile deskutils/cdcat/Makefile
--- /usr/ports/deskutils/cdcat/Makefile	2012-12-01 17:12:39.000000000 +0900
+++ deskutils/cdcat/Makefile	2012-12-02 05:29:05.000000000 +0900
@@ -68,10 +68,6 @@
 P7Z_WRKSRC=	$$(cd ${PORTSDIR}/archivers/p7zip && ${MAKE} -V WRKSRC)
 MIF_WRKSRC=	$$(cd ${PORTSDIR}/multimedia/mediainfo && ${MAKE} -V WRKSRC)
 
-.if ${OSVERSION} < 800000
-BROKEN=		does not build on 7.X
-.endif
-
 post-extract:
 	@${GZCAT} ${DISTDIR}/${L7Z_DISTFILE} | (cd ${WRKDIR} && ${TAR} -xf -)
 	@${LN} -sf ${L7Z_NAME}-${L7Z_VERSION} ${L7Z_WRKSRC}
@@ -83,6 +79,11 @@
 		's|/dev/sr0|/dev/cd0|' ${BUILD_WRKSRC}/config.cpp
 	@${REINPLACE_CMD} -e \
 		's|-ldl||' ${L7Z_WRKSRC}/Test7Zip/Makefile.in
+.if ${OSVERSION} < 800501
+	@${REINPLACE_CMD} -e \
+		's|const struct dirent|struct dirent|' \
+		${L7Z_WRKSRC}/Lib7Zip/OSFunctions_UnixLike.cpp
+.endif
 
 pre-configure:
 	@cd ${L7Z_WRKSRC} && ./configure --disable-shared \
>Release-Note:
>Audit-Trail:
>Unformatted:



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