ports/174156: deskutils/cdcat: Fix build on 7-stable

KATO Tsuguru tkato432 at yahoo.com
Wed Dec 5 18:10:00 UTC 2012


>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:


More information about the freebsd-ports-bugs mailing list