From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:14 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 ESMTPS id 3EDE47E7 for ; Mon, 16 Dec 2013 18:10:14 +0000 (UTC) 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 1DE791964 for ; Mon, 16 Dec 2013 18:10:14 +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 rBGIADta016200 for ; Mon, 16 Dec 2013 18:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIADLR016199; Mon, 16 Dec 2013 18:10:13 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:13 GMT Resent-Message-Id: <201312161810.rBGIADLR016199@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, KATO Tsuguru 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 ESMTPS id EC5792A2 for ; Mon, 16 Dec 2013 18:01:38 +0000 (UTC) Received: from omta02.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145]) by mx1.freebsd.org (Postfix) with ESMTP id BE144184D for ; Mon, 16 Dec 2013 18:01:38 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta02.auone-net.jp (au one net mail) with ESMTP id 46B13156001E for ; Tue, 17 Dec 2013 03:01:37 +0900 (JST) Message-Id: <20131217024718.cc6b7627c50945a27264363c@yahoo.com> Date: Tue, 17 Dec 2013 02:47:18 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184851: devel/libmpcbdm: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:14 -0000 >Number: 184851 >Category: ports >Synopsis: devel/libmpcbdm: Fix build with clang >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: Mon Dec 16 18:10:13 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang >How-To-Repeat: >Fix: diff -urN /usr/ports/devel/libmpcbdm/Makefile devel/libmpcbdm/Makefile --- /usr/ports/devel/libmpcbdm/Makefile 2013-11-06 21:50:12.000000000 +0900 +++ devel/libmpcbdm/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -13,19 +13,20 @@ COMMENT= Standalone library to control various mpc8xx boards WRKSRC= ${WRKDIR}/libmpc8xx -USE_GMAKE= yes -GNU_CONFIGURE= yes + +USES= gmake +USE_AUTOTOOLS= libtool USE_LDCONFIG= yes -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= amd64 i386 -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -E -e 's,(objformat=).*,\1elf,' \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's| $$(includedir)| $$(DESTDIR)$$(includedir)|' \ + ${WRKSRC}/libmpc8xx/Makefile.in post-install: - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/Flash.dev ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} Flash.dev ${STAGEDIR}${DATADIR}) .include diff -urN /usr/ports/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c --- /usr/ports/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c 2013-11-06 21:50:12.000000000 +0900 +++ devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c 2013-12-17 00:00:00.000000000 +0900 @@ -9,12 +9,24 @@ #include static int lptbdm_read( void ); -@@ -252,7 +252,7 @@ +@@ -52,8 +52,9 @@ + + static uid_t lptbdm_euid = -1; + +-#define INB(x,port) asm volatile("inb %1, %0" : "=a" (x) : "d" (port)) +-#define OUTB(x,port) asm volatile("outb %0, %1" : : "a" (x), "d" (port)) ++#include ++#define INB(x,port) x = inb(port) ++#define OUTB(x,port) outb(port,x) + + /* in case of asm trouble (red hat 7.0?) try the code below and compile with -O option */ + /*#include +@@ -252,7 +253,7 @@ } } - nResult = ioperm( lptbdm_port.DATAAddr, 3, 1 ); -+ nResult = i386_set_ioperm( lptbdm_port.DATAAddr, 3, 1 ); ++ nResult = sysarch( I386_SET_IOPERM, (void *) ( lptbdm_port.DATAAddr, 3, 1 ) ); seteuid( getuid() ); >Release-Note: >Audit-Trail: >Unformatted: