From sean@farley.org  Thu Nov  2 19:15:51 2000
Return-Path: <sean@farley.org>
Received: from farley.org (farley.org [216.140.158.72])
	by hub.freebsd.org (Postfix) with ESMTP id E252337B479
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  2 Nov 2000 19:15:49 -0800 (PST)
Received: from thor.farley.org ([192.168.1.5])
	by farley.org with esmtp (Exim 3.03 #1)
	id 13rXKR-00019M-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 02 Nov 2000 21:15:43 -0600
Received: (from sean@localhost)
	by thor.farley.org (8.11.1/8.11.1) id eA33FgM04134;
	Thu, 2 Nov 2000 21:15:42 -0600 (CST)
	(envelope-from sean)
Message-Id: <200011030315.eA33FgM04134@thor.farley.org>
Date: Thu, 2 Nov 2000 21:15:42 -0600 (CST)
From: sean-freebsd@farley.org
Sender: sean@farley.org
Reply-To: sean-freebsd@farley.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Installing port chops minor numbers off of shared libraries
X-Send-Pr-Version: 3.2

>Number:         22562
>Category:       ports
>Synopsis:       Installing port chops minor numbers off of shared libraries
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 19:20:01 PST 2000
>Closed-Date:    Fri Nov 3 07:25:19 PST 2000
>Last-Modified:  Fri Nov 03 07:26:05 PST 2000
>Originator:     Sean C. Farley
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
>Environment:

FreeBSD 4.1.1-STABLE i386

>Description:

I have posted this twice to freebsd-ports without any resolution.

I am currently testing out my first port, and I have a problem.  It seems
that the shared libraries being installed are using the following syntax:
libfoo.so.x.y
libbar.so.x.y

This gives me no problem for the install but during uninstall the port
complains about missing files such as:
libfoo.so.x
libbar.so.x

I then noticed that the +CONTENTS file did not have the minor numbers
on the libraries.  This lead me to believe that the port system is
unable to handle minor numbers during install.

Why is the install chopping off those minor version numbers.  Nothing in
the Porter's Handbook (http://www.freebsd.org/porters-handbook/) explains
on how to handle this situation.  I am given the impression from a link
in the general Handbook that ELF ignores the minor number which might be
the root of my problem, yet I have discovered that ldconfig has no
difficulty with the libraries.

libgsi.so.0.1
libgsicd.so.0.1
libgsif.so.0.1
libgsimidi_pcm.so.2.0
libgsimixer.so.0.1
libgsipcm.so.0.1
libgsisynth.so.0.1

>How-To-Repeat:

Install a port with shared libraries having minor numbers.  Look at the 
+CONTENTS file.  The shared libraries have the minor numbers removed.

BTW, if this turns out to be a user error and the minor number needs to
be removed before installation, I would recommend reclassifying this bug
as a documentation bug.  This is assuming it is not mentioned somewhere I
overlooked.  :)

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Fri Nov 3 07:25:19 PST 2000 
State-Changed-Why:  
You have to define NO_FILTER_SHLIBS in your Makefile. See bsd.port.mk for details. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22562 
>Unformatted:
