Date: Mon, 9 May 2005 21:26:17 -0600 (MDT) From: Jie Gao <gaoj@cpsc.ucalgary.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/80846: [patch] x11-toolkits/qwt did not install a necessary library symbolic link Message-ID: <200505100326.j4A3QHAb022012@localhost.cpsc.ucalgary.ca> Resent-Message-ID: <200505100340.j4A3e16O035966@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505100326.j4A3QHAb022012>