Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 20:37:08 GMT
From:      Vasily Chashchin <blttll@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182168: [maintainer update] sysutils/ciso clang support
Message-ID:  <201309162037.r8GKb81a011631@oldred.freebsd.org>
Resent-Message-ID: <201309162040.r8GKe0bw068233@freefall.freebsd.org>

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

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



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