From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 29 00:30:26 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70A6A16A4CE for ; Mon, 29 Dec 2003 00:30:26 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACECA43D2D for ; Mon, 29 Dec 2003 00:30:21 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBT8ULFR030119 for ; Mon, 29 Dec 2003 00:30:21 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBT8UL6O030118; Mon, 29 Dec 2003 00:30:21 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 29 Dec 2003 00:30:21 -0800 (PST) Resent-Message-Id: <200312290830.hBT8UL6O030118@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, "Samy Al Bahra" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B4C916A4CE for ; Mon, 29 Dec 2003 00:23:10 -0800 (PST) Received: from pimout5-ext.prodigy.net (pimout5-ext.prodigy.net [207.115.63.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABE5D43D2F for ; Mon, 29 Dec 2003 00:23:08 -0800 (PST) (envelope-from "") Received: from sentinel.erased.us (adsl-68-76-187-158.dsl.akrnoh.ameritech.net [68.76.187.158])hBT8N76R428614 for ; Mon, 29 Dec 2003 03:23:07 -0500 Received: from dial163-48.awalnet.net ([213.184.163.48] helo=beastie.freebsd.local) by sentinel.erased.us with esmtp (Exim 3.36 #1 (Debian)) id 1AashD-0002xC-00 for ; Mon, 29 Dec 2003 03:24:15 -0500 Message-Id: <1072686221@beastie.freebsd.local> Date: Mon, 29 Dec 2003 11:23:45 +0300 From: "Samy Al Bahra" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: gtk-send-pr 0.3 Subject: ports/60682: Fix devel/libchipcard build on 5.X systems X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 08:30:26 -0000 >Number: 60682 >Category: ports >Synopsis: Fix devel/libchipcard build on 5.X systems >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 29 00:30:21 PST 2003 >Closed-Date: >Last-Modified: >Originator: Samy Al Bahra >Release: FreeBSD 5.1-CURRENT i386 >Organization: Kerneled >Environment: System: FreeBSD beastie.freebsd.local 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 20 18:35:24 AST 2003 samy@beastie.freebsd.local:/usr/src/sys/i386/compile/KERNELED i386 >Description: The devel/libchipcard port does not build on 5.X systems due to subset style array assignment it uses, now depreciated with gcc 3.X. The following patch fixes this. >How-To-Repeat: Build with gcc 3.X. >Fix: --- libchipcard.patch begins here --- diff -ruN libchipcard/Makefile /home/samy/tmp/libchipcard/Makefile --- libchipcard/Makefile Sun Dec 21 01:17:52 2003 +++ /home/samy/tmp/libchipcard/Makefile Mon Dec 29 10:37:47 2003 @@ -29,14 +29,8 @@ MAN5= libchipcard.conf.5 chipcardc.conf.5 chipcardd.conf.5 -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile on FreeBSD ${OSVERSION}" -.endif - post-install: @${INSTALL_SCRIPT} ${WRKSRC}/freebsd/chipcardd.sh ${PREFIX}/etc/rc.d @${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE} -.include +.include diff -ruN libchipcard/files/patch-hbcicard.cpp /home/samy/tmp/libchipcard/files/patch-hbcicard.cpp --- libchipcard/files/patch-hbcicard.cpp Thu Jan 1 03:00:00 1970 +++ /home/samy/tmp/libchipcard/files/patch-hbcicard.cpp Mon Dec 29 11:03:07 2003 @@ -0,0 +1,13 @@ +--- src/libchipcard/cards/hbcicard.cpp.orig Mon Dec 29 10:58:25 2003 ++++ src/libchipcard/cards/hbcicard.cpp Mon Dec 29 10:59:41 2003 +@@ -401,8 +401,8 @@ + string id; + string fcp; + CTError err; +- unsigned char id1[9]={{0xd2},{0x76},{0x00},{0x00},{0x25},{0x48},{0x42},{0x01},{0x00}}; +- unsigned char id2[9]={{0xd2},{0x76},{0x00},{0x00},{0x25},{0x48},{0x42},{0x02},{0x00}}; ++ unsigned char id1[9]={0xd2,0x76,0x00,0x00,0x25,0x48,0x42,0x01,0x00}; ++ unsigned char id2[9]={0xd2,0x76,0x00,0x00,0x25,0x48,0x42,0x02,0x00}; + + #if DEBUGMODE>15 + fprintf(stderr,"LIBCHIPCARD: Checking type.\n"); --- libchipcard.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: