ports/102730: [Patch]: unbreak x11-fm/emelfm2 on systems < RELENG_6_0

Marcus von Appen mva at sysfault.org
Thu Aug 31 18:00:33 UTC 2006


>Number:         102730
>Category:       ports
>Synopsis:       [Patch]: unbreak x11-fm/emelfm2 on systems < RELENG_6_0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 31 18:00:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.1-STABLE FreeBSD 6.1-STABLE #12: Tue Aug 29 19:10:11 CEST 2006 root at medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:
        emelFM2 0.2 does not compile on systems using FreeBSD < RELENG_6_0.

	My last emelfm2 pr broke it on systems which do not define
        blksize_t. The attached fix should unbreak it.

>How-To-Repeat:
	See pointyhat or try to build it on a system < RELENG_6.
>Fix:

diff -Nur emelfm2/Makefile emelfm2.new/Makefile
--- emelfm2/Makefile	Thu Aug 31 19:13:58 2006
+++ emelfm2.new/Makefile	Thu Aug 31 19:31:02 2006
@@ -39,4 +39,10 @@
 USE_GCC=	3.4
 .endif
 
+.if ${OSVERSION} < 600000
+post-patch:
+	@${REINPLACE_CMD} -e 's|blksize_t buf_size =|__int32_t buf_size =|g' \
+		${WRKSRC}/src/e2_task_backend.c
+.endif
+
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list