From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 10 03:40:02 2005 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 4118916A4ED for ; Tue, 10 May 2005 03:40:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1ED343D58 for ; Tue, 10 May 2005 03:40:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4A3e1ti035967 for ; Tue, 10 May 2005 03:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4A3e16O035966; Tue, 10 May 2005 03:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 10 May 2005 03:40:01 GMT Resent-Message-Id: <200505100340.j4A3e16O035966@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, Jie Gao Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B314B16A4ED for ; Tue, 10 May 2005 03:30:04 +0000 (GMT) Received: from ensc.cpsc.ucalgary.ca (ensc.cpsc.ucalgary.ca [136.159.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CA9643D2F for ; Tue, 10 May 2005 03:30:04 +0000 (GMT) (envelope-from gaoj@cpsc.ucalgary.ca) Received: from imgw1.cpsc.ucalgary.ca (imgw1 [136.159.5.9]) j4A3QMkN000911 for ; Mon, 9 May 2005 21:26:22 -0600 Received: from localhost (localhost [127.0.0.1]) by imgw1.cpsc.ucalgary.ca (8.13.3/8.13.3) with ESMTP id j4A3QLHw025482 for ; Mon, 9 May 2005 21:26:21 -0600 Received: from imgw1.cpsc.ucalgary.ca ([127.0.0.1]) by localhost (imgw1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24984-05 for ; Mon, 9 May 2005 21:26:21 -0600 (MDT) Received: from localhost.cpsc.ucalgary.ca (sana-sa [136.159.7.231]) by imgw1.cpsc.ucalgary.ca (8.13.3/8.13.3) with ESMTP id j4A3QHJP025477 for ; Mon, 9 May 2005 21:26:17 -0600 Received: from localhost.cpsc.ucalgary.ca (localhost [127.0.0.1]) j4A3QHKx022013 for ; Mon, 9 May 2005 21:26:17 -0600 (MDT) (envelope-from gaoj@localhost.cpsc.ucalgary.ca) Received: (from gaoj@localhost)j4A3QHAb022012; Mon, 9 May 2005 21:26:17 -0600 (MDT) (envelope-from gaoj) Message-Id: <200505100326.j4A3QHAb022012@localhost.cpsc.ucalgary.ca> Date: Mon, 9 May 2005 21:26:17 -0600 (MDT) From: Jie Gao To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/80846: [patch] x11-toolkits/qwt did not install a necessary library symbolic link X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jie Gao List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 03:40:02 -0000 >Number: 80846 >Category: ports >Synopsis: [patch] x11-toolkits/qwt did not install a necessary library symbolic link >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 10 03:40:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jie Gao >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD aibsd 5.4-STABLE FreeBSD 5.4-STABLE #1: Tue May 3 14:50:32 MDT 2005 gaoj@aibsd:/usr/src/sys/i386/compile/AIBSD i386 >Description: x11-toolkits/qwt port does not install a necessary library symbolic link for its shared library libqwt.so.4.2.0. It only installs libqwt.so symbolic link. But libqwt.so.4 is alos necessary. >How-To-Repeat: Write a simple C program, can be as simple as a "hello, world!". Link this program against libqwt: cc -o hello hello.c -L/usr/local/lib -lqwt -pthread And you will get an executable `hello'. Now check its shared library: ldd ./hello And you will get the result: hello: libqwt.so.4 => not found (0x0) libpthread.so.1 => /usr/lib/libpthread.so.1 (0x28082000) libc.so.5 => /lib/libc.so.5 (0x280a8000) If a libqwt.so.4 symbolic link is created for libqwt.so.4.2.0, everything will be fine: ( cd /usr/local/lib && ln -s libqwt.so.4.2.0 libqwt.so.4 ) ldd ./hello hello: libqwt.so.4 => /usr/local/lib/libqwt.so.4 (0x28082000) libpthread.so.1 => /usr/lib/libpthread.so.1 (0x28127000) libc.so.5 => /lib/libc.so.5 (0x2814d000) libqt-mt.so.3 => /usr/X11R6/lib/libqt-mt.so.3 (0x2822e000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2890a000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28918000) libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x289df000) libm.so.3 => /lib/libm.so.3 (0x28aae000) libaudio.so.2 => /usr/X11R6/lib/libaudio.so.2 (0x28ac5000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x28ada000) libmng.so.1 => /usr/local/lib/libmng.so.1 (0x28b29000) libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 (0x28b86000) libpng.so.5 => /usr/local/lib/libpng.so.5 (0x28ba4000) libz.so.2 => /lib/libz.so.2 (0x28bc9000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28bd9000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x28be1000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x28be9000) libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x28bed000) libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x28bf6000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x28bf9000) libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x28c0b000) libfontconfig.so.1 => /usr/X11R6/lib/libfontconfig.so.1 (0x28c7b000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28cce000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28cd7000) liblcms.so.1 => /usr/local/lib/liblcms.so.1 (0x28cef000) libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x28d1b000) >Fix: Apply the following patch to the ports directory. Please note I intentionally put one more ``:R'' in the variable modifier to make sure only the major version is left (in case more sub version numbers are introduced). --- patch-x11-toolkits-qwt begins here --- diff -ruN x11-toolkits/qwt.orig/Makefile x11-toolkits/qwt/Makefile --- x11-toolkits/qwt.orig/Makefile Mon May 9 21:04:33 2005 +++ x11-toolkits/qwt/Makefile Mon May 9 21:08:19 2005 @@ -98,6 +98,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/lib/libqwt.so.${PORTVERSION} ${PREFIX}/lib ${LN} -fs libqwt.so.${PORTVERSION} ${PREFIX}/lib/libqwt.so + ${LN} -fs libqwt.so.${PORTVERSION} ${PREFIX}/lib/libqwt.so.${PORTVERSION:R:R:R} ${MKDIR} ${PREFIX}/include/qwt ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/qwt ${INSTALL_MAN} ${WRKSRC}/doc/man/man3/Qwt* ${PREFIX}/man/man3 diff -ruN x11-toolkits/qwt.orig/pkg-plist x11-toolkits/qwt/pkg-plist --- x11-toolkits/qwt.orig/pkg-plist Mon May 9 21:04:33 2005 +++ x11-toolkits/qwt/pkg-plist Mon May 9 21:09:04 2005 @@ -49,5 +49,6 @@ include/qwt/qwt_thermo.h include/qwt/qwt_wheel.h lib/libqwt.so +lib/libqwt.so.4 lib/libqwt.so.4.2.0 @dirrm include/qwt --- patch-x11-toolkits-qwt ends here --- >Release-Note: >Audit-Trail: >Unformatted: