From nobody@FreeBSD.org  Tue Aug 29 10:31:47 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A018C16A4E2
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Aug 2006 10:31:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1CAAB43D5F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Aug 2006 10:31:43 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k7TAVgjW084407
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Aug 2006 10:31:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k7TAVgsw084406;
	Tue, 29 Aug 2006 10:31:42 GMT
	(envelope-from nobody)
Message-Id: <200608291031.k7TAVgsw084406@www.freebsd.org>
Date: Tue, 29 Aug 2006 10:31:42 GMT
From: Artis Caune <Artis.Caune@latnet.lv>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] security/openssl - readlink warning when base is built without OpenSSL
X-Send-Pr-Version: www-2.3

>Number:         102639
>Category:       ports
>Synopsis:       [PATCH] security/openssl - readlink warning when base is built without OpenSSL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 29 10:40:17 GMT 2006
>Closed-Date:    Thu Aug 31 06:54:17 CEST 2006
>Last-Modified:  Thu Aug 31 06:54:17 CEST 2006
>Originator:     Artis Caune
>Release:        6.1
>Organization:
>Environment:
>Description:
If base is built without OpenSSL, I get this warning:

"Makefile", line 891: warning: "readlink /usr/lib/libcrypto.so" returned non-zero status

>How-To-Repeat:
# pkg_version -v
..
openssh-portable-4.3.p2_1,1         =   up-to-date with port
"Makefile", line 891: warning: "readlink /usr/lib/libcrypto.so" returned non-zero status
openssl-0.9.8b_1                    =   up-to-date with port
..


# cd /usr/ports/security/openssh-portable
# make clean
"Makefile", line 891: warning: "readlink /usr/lib/libcrypto.so" returned non-zero status
===>  Cleaning for perl-5.8.8
"Makefile", line 891: warning: "readlink /usr/lib/libcrypto.so" returned non-zero status
===>  Cleaning for openssl-0.9.8b_1
"Makefile", line 891: warning: "readlink /usr/lib/libcrypto.so" returned non-zero status
===>  Cleaning for openssh-portable-4.3.p2_1,1

>Fix:
--- Makefile.orig       Thu Aug 17 08:17:14 2006
+++ Makefile    Tue Aug 29 13:30:23 2006
@@ -888,7 +888,7 @@
 MAKE_ARGS+=    WHOLE_ARCHIVE_FLAG=--whole-archive
 .endif
 
-OPENSSL_BASE_SONAME!=  readlink ${DESTDIR}/usr/lib/libcrypto.so
+OPENSSL_BASE_SONAME!=  readlink ${DESTDIR}/usr/lib/libcrypto.so || true
 OPENSSL_SHLIBVER_BASE= ${OPENSSL_BASE_SONAME:E}
 OPENSSL_BASE_SOPATH=   ${OPENSSL_BASE_SONAME:H}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Aug 29 10:40:25 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102639 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Thu Aug 31 06:53:45 CEST 2006 
State-Changed-Why:  
committed, thanks. 

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