From martti@dhcp118.verkstad.net  Wed Aug  1 01:22:18 2001
Return-Path: <martti@dhcp118.verkstad.net>
Received: from dhcp118.verkstad.net (dhcp118.verkstad.net [192.36.157.118])
	by hub.freebsd.org (Postfix) with ESMTP id EF36937B406
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Aug 2001 01:22:17 -0700 (PDT)
	(envelope-from martti@dhcp118.verkstad.net)
Received: by dhcp118.verkstad.net (Postfix, from userid 100)
	id 7E04F496EA; Fri, 27 Jul 2001 13:36:06 +0200 (CEST)
Message-Id: <20010727113606.7E04F496EA@dhcp118.verkstad.net>
Date: Fri, 27 Jul 2001 13:36:06 +0200 (CEST)
From: martti.kuparinen@iki.fi
Reply-To: martti.kuparinen@iki.fi
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] uvscan can't find libc.so.3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29359
>Category:       ports
>Synopsis:       [PATCH] uvscan can't find libc.so.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jeh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 01 01:30:00 PDT 2001
>Closed-Date:    Sat Aug 4 09:26:28 PDT 2001
>Last-Modified:  Sat Aug 04 09:26:45 PDT 2001
>Originator:     Martti Kuparinen
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD dhcp118 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Jul 26 19:42:27 CEST 2001 root@dhcp118:/usr/obj/usr/src/sys/KAYAK i386


>Description:

vscan won't work on 4.3-RELEASE as there is no libc.so.3.
Here's a quick and dirty solution for this problem.

>How-To-Repeat:

# uvscan
/usr/libexec/ld-elf.so.1: Shared object "libc.so.3" not found
# cd /usr/lib && ln -s libc.so.4 libc.so.3

>Fix:

diff -ru /usr/ports/security/vscan/Makefile vscan/Makefile
--- /usr/ports/security/vscan/Makefile	Sat Apr 14 16:16:20 2001
+++ vscan/Makefile	Fri Jul 27 13:30:58 2001
@@ -37,5 +37,9 @@
 .for file in unxadmin.pdf license.txt
 	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/uvscan
 .endfor
+	@if [ ! -r /usr/lib/libc.so.3 -a /usr/lib/libc.so.4 ]; then \
+		${ECHO} "Creating symlink ${LN} -fs libc.so.4 libc.so.3" ;\
+		(cd /usr/lib && ${LN} -fs libc.so.4 libc.so.3) ;\
+	fi
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:

From: Pete Fritchman <petef@databits.net>
To: martti.kuparinen@iki.fi
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/29359: [PATCH] uvscan can't find libc.so.3
Date: Wed, 1 Aug 2001 08:59:49 -0400

 ++ 27/07/01 13:36 +0200 - martti.kuparinen@iki.fi:
 | >Description:
 | 
 | vscan won't work on 4.3-RELEASE as there is no libc.so.3.
 | Here's a quick and dirty solution for this problem.
 | 
 | >How-To-Repeat:
 | 
 | # uvscan
 | /usr/libexec/ld-elf.so.1: Shared object "libc.so.3" not found
 | # cd /usr/lib && ln -s libc.so.4 libc.so.3
 | 
 
 The real solution is to have the compat3x libraries installed.
 libc.so.3 will then live in /usr/lib/compat.
 
 | >Fix:
 | 
 
 I'm not sure of the fix.  Maybe something like:
 
 .if !exists(/usr/lib/compat/libc.so.3)
 BROKEN=	"You must have the compat3x libraries installed."
 .endif
 
 --
 Pete Fritchman <petef@databits.net>
 Databits Network Services, Inc. <http://databits.net>
 finger petef@databits.net for PGP key
 

From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: Pete Fritchman <petef@databits.net>
Cc: <FreeBSD-gnats-submit@freebsd.org>
Subject: Re: ports/29359: [PATCH] uvscan can't find libc.so.3
Date: Thu, 2 Aug 2001 08:48:29 +0300 (EEST)

 Ok, here's a better patch to apply!
 
 Martti
 
 =============================================================================
 diff -ru /usr/ports/security/vscan/Makefile vscan/Makefile
 --- /usr/ports/security/vscan/Makefile	Sat Apr 14 16:16:20 2001
 +++ vscan/Makefile	Thu Aug  2 07:40:35 2001
 @@ -23,6 +23,10 @@
  LICENSE=	shareware
  RESTRICTED=	"restrictive 30 day evaluation license"
 
 +.if !exists(/usr/lib/compat/libc.so.3)
 +BROKEN=		"You must have the compat3x libraries installed."
 +.endif
 +
  do-configure:
  	${SED} <${FILESDIR}/uvscan.sh >${WRKSRC}/uvscan.sh \
  		-e 's:@@PREFIX@@:${PREFIX}:g'
 =============================================================================
 
Responsible-Changed-From-To: freebsd-ports->jeh 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Thu Aug 2 12:15:25 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29359 
State-Changed-From-To: open->closed 
State-Changed-By: jeh 
State-Changed-When: Sat Aug 4 09:26:28 PDT 2001 
State-Changed-Why:  
Committed.  Thanks. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29359 
>Unformatted:
