From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 28 05:50:10 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6190F1065678 for ; Mon, 28 Nov 2011 05:50:10 +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 244918FC1A for ; Mon, 28 Nov 2011 05:50:10 +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 pAS5oAR5060504 for ; Mon, 28 Nov 2011 05:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pAS5oAct060502; Mon, 28 Nov 2011 05:50:10 GMT (envelope-from gnats) Resent-Date: Mon, 28 Nov 2011 05:50:10 GMT Resent-Message-Id: <201111280550.pAS5oAct060502@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, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF5B31065672 for ; Mon, 28 Nov 2011 05:44:21 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 800568FC12 for ; Mon, 28 Nov 2011 05:44:21 +0000 (UTC) Received: from [31.31.36.246] (port=38059 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RUu0p-0016jq-MJ for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 00:44:20 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RUtze-000NUb-UF for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Nov 2011 05:43:09 +0000 Message-Id: <1RUtze-000NUb-UF@internal.tormail.net> Date: Mon, 28 Nov 2011 02:30:45 +0000 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/162915: [patch] graphics/glfw: unbreak build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 05:50:10 -0000 >Number: 162915 >Category: ports >Synopsis: [patch] graphics/glfw: unbreak build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 28 05:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: clang wants either -soname=libfoo.so.1 or -Wl,-soname,libfoo.so.1, but not -soname libfoo.so.1. >How-To-Repeat: http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111126065358.pointyhat-west/glfw-2.7.2.log $ rm -f libfoo.so.1 $ clang -shared -soname libfoo.so.1 -o libfoo.so.1 /dev/null clang: error: no such file or directory: 'libfoo.so.1' Exit 1 >Fix: --- clang.diff begins here --- Index: graphics/glfw/Makefile =================================================================== RCS file: /a/.csup/ports/graphics/glfw/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- graphics/glfw/Makefile 18 Oct 2011 13:05:57 -0000 1.14 +++ graphics/glfw/Makefile 28 Nov 2011 02:29:19 -0000 @@ -29,6 +29,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e \ 's|/usr/X11R6|${X11BASE}| ; \ + /SOFLAGS/s|-soname |-Wl,-soname,| ; \ /CFLAGS_THREAD/s|"-pthread"|"${PTHREAD_CFLAGS}"| ; \ /LFLAGS_THREAD/s|"-pthread"|"${PTHREAD_LIBS}"|' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e \ --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: