From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 11 04:30:08 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 44224106566B for ; Sun, 11 Mar 2012 04:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0CA478FC20 for ; Sun, 11 Mar 2012 04:30:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2B4U7Xl096519 for ; Sun, 11 Mar 2012 04:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2B4U7iq096517; Sun, 11 Mar 2012 04:30:07 GMT (envelope-from gnats) Resent-Date: Sun, 11 Mar 2012 04:30:07 GMT Resent-Message-Id: <201203110430.q2B4U7iq096517@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, "Conrad J. Sabatier" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37C6A1065678 for ; Sun, 11 Mar 2012 04:21:42 +0000 (UTC) (envelope-from conrads@serene.no-ip.org) Received: from eastrmfepo102.cox.net (eastrmfepo102.cox.net [68.230.241.214]) by mx1.freebsd.org (Postfix) with ESMTP id CB50E8FC08 for ; Sun, 11 Mar 2012 04:21:41 +0000 (UTC) Received: from eastrmimpo209.cox.net ([68.230.241.224]) by eastrmfepo102.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120311042135.VKES26743.eastrmfepo102.cox.net@eastrmimpo209.cox.net> for ; Sat, 10 Mar 2012 23:21:35 -0500 Received: from serene.no-ip.org ([98.164.84.176]) by eastrmimpo209.cox.net with bizsmtp id k4Mb1i0063oG0Ji024Mb8j; Sat, 10 Mar 2012 23:21:35 -0500 Received: from serene.no-ip.org (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q2B4LYpf022940 for ; Sat, 10 Mar 2012 22:21:34 -0600 (CST) (envelope-from conrads@serene.no-ip.org) Received: (from root@localhost) by serene.no-ip.org (8.14.5/8.14.5/Submit) id q2B4LTa0022939; Sat, 10 Mar 2012 22:21:29 -0600 (CST) (envelope-from conrads) Message-Id: <201203110421.q2B4LTa0022939@serene.no-ip.org> Date: Sat, 10 Mar 2012 22:21:29 -0600 (CST) From: "Conrad J. Sabatier" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/165912: [patch] x11/xcolorsel: fix build error with imake X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Conrad J. Sabatier" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2012 04:30:08 -0000 >Number: 165912 >Category: ports >Synopsis: [patch] x11/xcolorsel: fix build error with imake >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: Sun Mar 11 04:30:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Conrad J. Sabatier >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD serene.no-ip.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sun Feb 12 19:15:46 CST 2012 conrads@serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64 >Description: Build of x11/xcolorsel errors out with USE_IMAKE. Remove USE_IMAKE and manually run xmkmf instead. Also add one more expression to the sed command in the post-patch target, to correct the path at which the rgb.txt file is located, and set MANCOMPRESSED to avoid an error from bsd.ports.mk in handling the already compressed man page. >How-To-Repeat: Build the port as is. Errors occur during the imake step. >Fix: patch below --- xcolorsel.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/x11/xcolorsel/Makefile,v retrieving revision 1.15 diff -u -r1.15 Makefile --- Makefile 13 Dec 2010 17:24:00 -0000 1.15 +++ Makefile 11 Mar 2012 04:13:53 -0000 @@ -20,18 +20,22 @@ RUN_DEPENDS= rgb>=1.0.3:${PORTSDIR}/x11/rgb WRKSRC= ${WRKDIR}/xcolorsel -USE_IMAKE= yes USE_XORG= xpm .if !defined(NO_INSTALL_MANPAGES) MAN1= xcolorsel.1 +MANCOMPRESSED= yes .endif post-patch: @${ECHO_CMD} "*.file: ${LOCALBASE}/lib/X11/rgb.txt" >> ${WRKSRC}/Xcolorsel.ad @${REINPLACE_CMD} -e 's|#include ||g' \ - -e 's|/Xaw/|/Xaw3d/|g' ${WRKSRC}/*.[ch] + -e 's|/Xaw/|/Xaw3d/|g' \ + -e 's|/usr/lib/X11/rgb.txt|/usr/local/lib/X11/rgb.txt|g' ${WRKSRC}/*.[ch] @${REINPLACE_CMD} -e 's|app2head|./app2head|g' \ -e 's|XawClientLibs|-lXaw3d $$(XMULIBONLY) $$(XTOOLLIB) $$(XPMLIB) $$(XLIB)|g' ${WRKSRC}/Imakefile +do-configure: + cd ${WRKSRC} && xmkmf + .include --- xcolorsel.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: