From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 16 20:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC3EAE3 for ; Mon, 16 Sep 2013 20:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8AA342BB7 for ; Mon, 16 Sep 2013 20:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8GKe0VX068234 for ; Mon, 16 Sep 2013 20:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8GKe0bw068233; Mon, 16 Sep 2013 20:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 16 Sep 2013 20:40:00 GMT Resent-Message-Id: <201309162040.r8GKe0bw068233@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vasily Chashchin Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AB1BC90 for ; Mon, 16 Sep 2013 20:37:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98B202B95 for ; Mon, 16 Sep 2013 20:37:08 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8GKb8kW011664 for ; Mon, 16 Sep 2013 20:37:08 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8GKb81a011631; Mon, 16 Sep 2013 20:37:08 GMT (envelope-from nobody) Message-Id: <201309162037.r8GKb81a011631@oldred.freebsd.org> Date: Mon, 16 Sep 2013 20:37:08 GMT From: Vasily Chashchin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182168: [maintainer update] sysutils/ciso clang support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 20:40:00 -0000 >Number: 182168 >Category: ports >Synopsis: [maintainer update] sysutils/ciso clang support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Sep 16 20:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Vasily Chashchin >Release: >Organization: >Environment: >Description: This update makes it possible to build sysutils/ciso using clang. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN ciso.bak/Makefile ciso/Makefile --- ciso.bak/Makefile 2013-09-10 09:08:24.000000000 +0000 +++ ciso/Makefile 2013-09-12 16:36:47.000000000 +0000 @@ -3,7 +3,7 @@ PORTNAME= ciso PORTVERSION= 1.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF diff -ruN ciso.bak/files/patch-Makefile ciso/files/patch-Makefile --- ciso.bak/files/patch-Makefile 2012-07-14 14:29:18.000000000 +0000 +++ ciso/files/patch-Makefile 2013-09-12 16:34:09.000000000 +0000 @@ -1,12 +1,29 @@ ---- Makefile.orig 2007-11-04 17:49:10.000000000 +0300 -+++ Makefile 2007-11-04 17:50:04.000000000 +0300 -@@ -1,6 +1,6 @@ --DESTDIR = +--- Makefile.bak 2013-09-12 16:31:40.000000000 +0000 ++++ Makefile 2013-09-12 16:33:23.000000000 +0000 +@@ -1,17 +1,19 @@ +-DESTDIR = -prefix = /usr -USRBINDIR = $(DESTDIR)$(prefix)/bin +destdir = ${DESTDIR} +prefix = ${PREFIX} +USRBINDIR = $(destdir)$(prefix)/bin - - CC = $(CROSS_COMPILE)gcc - LD = $(CROSS_COMPILE)gcc + +-CC = $(CROSS_COMPILE)gcc +-LD = $(CROSS_COMPILE)gcc + INSTALL = install + ++.if ${CC} == "clang" ++CFLAGS += -Wno-format -Wno-tautological-compare ++.endif ++ + all : ciso + ciso : ciso.o +- gcc -o ciso ciso.o -lz ++ ${CC} ${CFLAGS} -o ciso ciso.o -lz + + ciso.o : ciso.c +- gcc -o ciso.o -c ciso.c ++ ${CC} ${CFLAGS} -o ciso.o -c ciso.c + + install : + $(INSTALL) -m 755 ciso $(USRBINDIR)/ciso >Release-Note: >Audit-Trail: >Unformatted: