Date: Wed, 28 Aug 2013 12:43:30 GMT From: Boris Samorodov <bsam@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/181617: [patch] misc/window: fix build with clang, add LICENSE and more Message-ID: <201308281243.r7SChU0J065149@oldred.freebsd.org> Resent-Message-ID: <201308281250.r7SCo2SZ097557@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 181617 >Category: ports >Synopsis: [patch] misc/window: fix build with clang, add LICENSE and more >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Aug 28 12:50:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Boris Samorodov >Release: FreeBSD 10.0-CURRENT >Organization: BSDprint >Environment: FreeBSD bsam.int.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r254961: Wed Aug 28 02:04:00 SAMT 2013 bsam@bsam.int.wart.ru:/usr/obj/usr/src/sys/BB64X amd64 >Description: The ports fails to build with clang: ----- cmd.c:297:3: error: non-void function 'setselwin' should return a value [-Wreturn-type] return; ^ ----- >How-To-Repeat: >Fix: . fix build with clang (CFLAGS+=-Wno-return-type); . trim Makefile headers; . reword COMMENT; . add LICENSE (BSD); . remove check for unsupported FreeBSD versions (<800093). Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 325431) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: window -# Date created: 31 May 2009 -# Whom: Tom Rhodes <trhodes@FreeBSD.org> -# +# Created by: Tom Rhodes <trhodes@FreeBSD.org> # $FreeBSD$ -# PORTNAME= window PORTVERSION= 1.0 @@ -11,15 +7,12 @@ MASTER_SITES= http://people.FreeBSD.org/~trhodes/ MAINTAINER= trhodes@FreeBSD.org -COMMENT= The FreeBSD usr.bin/window application +COMMENT= Window environment on ASCII terminals -.include <bsd.port.pre.mk> +LICENSE= BSD -.if ${OSVERSION} < 800093 -IGNORE= window-1.0 is still part of the base system -.endif - WRKSRC= ${WRKDIR}/window +CFLAGS+= -Wno-return-type MAN1= window.1 PLIST_FILES= bin/window @@ -28,4 +21,4 @@ ${INSTALL_PROGRAM} ${WRKSRC}/window ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 -.include <bsd.port.post.mk> +.include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308281243.r7SChU0J065149>