Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2009 15:29:10 +0200 (CEST)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        stast@bsdportal.ru, araujo@FreeBSD.org
Subject:   ports/137127: print/gl2ps: fix library installation
Message-ID:  <20090725132910.350CE11467@graf.pompo.net>
Resent-Message-ID: <200907251350.n6PDo3lv053902@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137127
>Category:       ports
>Synopsis:       print/gl2ps: fix library installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 25 13:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue May 5 19:36:52 CEST 2009 root@graf.pompo.net:/usr/obj/usr/src/sys/GRAF090504 i386


	
>Description:
	The shared lib is not versionned, then not detected by other
	program.

	Reported by Stas Timokhin (See <http://www.stasyan.com/devel/salome/>).

>How-To-Repeat:
	- install gl2ps, from a port or from a package;

	- run `ldconfig -r | grep gl2ps'

>Fix:
	Please apply the following patch:

--- gl2ps.diff begins here ---
diff -urN print/gl2ps.orig/Makefile print/gl2ps/Makefile
--- print/gl2ps.orig/Makefile	2009-03-08 18:54:38.000000000 +0100
+++ print/gl2ps/Makefile	2009-07-25 15:15:03.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	gl2ps
 PORTVERSION=	1.3.3
+PORTREVISION=	1
 CATEGORIES=	print graphics
 MASTER_SITES=	http://www.geuz.org/gl2ps/src/
 EXTRACT_SUFX=	.tgz
@@ -22,7 +23,8 @@
 	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/libgl2ps.so ${PREFIX}/lib
+	${INSTALL_PROGRAM} ${WRKSRC}/libgl2ps.so ${PREFIX}/lib/libgl2ps.so.1
+	${LN} -sf ${PREFIX}/lib/libgl2ps.so.1 ${PREFIX}/lib/libgl2ps.so
 	${INSTALL_DATA} ${WRKSRC}/libgl2ps.a ${PREFIX}/lib
 	${INSTALL_DATA} ${WRKSRC}/gl2ps.h ${PREFIX}/include
 
diff -urN print/gl2ps.orig/pkg-plist print/gl2ps/pkg-plist
--- print/gl2ps.orig/pkg-plist	2006-01-01 15:10:24.000000000 +0100
+++ print/gl2ps/pkg-plist	2009-07-25 15:15:17.000000000 +0200
@@ -1,6 +1,7 @@
 include/gl2ps.h
 lib/libgl2ps.a
 lib/libgl2ps.so
+lib/libgl2ps.so.1
 %%EXAMPLESDIR%%/gl2psTest.c
 %%EXAMPLESDIR%%/gl2psTestSimple.c
 %%EXAMPLESDIR%%/Makefile
--- gl2ps.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090725132910.350CE11467>