From owner-freebsd-stable@FreeBSD.ORG Mon Jul 30 19:04:58 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 860AA106564A for ; Mon, 30 Jul 2012 19:04:58 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 385F48FC12 for ; Mon, 30 Jul 2012 19:04:58 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1SvvGz-00038T-Em>; Mon, 30 Jul 2012 21:04:57 +0200 Received: from e178039083.adsl.alicedsl.de ([85.178.39.83] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SvvGz-00015E-8b>; Mon, 30 Jul 2012 21:04:57 +0200 Message-ID: <5016DAD1.9070208@zedat.fu-berlin.de> Date: Mon, 30 Jul 2012 21:04:49 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120729 Thunderbird/14.0 MIME-Version: 1.0 To: Ian Lepore References: <5016CCBB.30603@beatsnet.com> <5016D443.9030105@zedat.fu-berlin.de> <1343673966.1101.98.camel@revolution.hippie.lan> In-Reply-To: <1343673966.1101.98.camel@revolution.hippie.lan> X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig37FD85D52E350313A96C3646" X-Originating-IP: 85.178.39.83 Cc: freebsd-stable@freebsd.org Subject: Re: OpenSSL from Ports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 19:04:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig37FD85D52E350313A96C3646 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Am 07/30/12 20:46, schrieb Ian Lepore: > On Mon, 2012-07-30 at 20:36 +0200, O. Hartmann wrote: >> Am 07/30/12 20:04, schrieb Beat Siegenthaler: >>> Hello, >>> >>> Until today, when I was asked what WITH_OPENSSL_PORT=3Dyes should do.= =2E i >>> was obviously wrong: >>> I think whole openssl should be replaced, but : >>> >>> [mym:~] # which openssl >>> /usr/bin/openssl >>> [mym:~] # openssl version >>> OpenSSL 0.9.8x 10 May 2012 >>> >>> there IS a 1.0.1 version but it is not found whit which or whereis: >>> >>> [mym:~] # /usr/local/bin/openssl version >>> OpenSSL 1.0.1c 10 May 2012 >>> >>> Maybe I simply miss some shell basics? >>> Regards, Beat >>> >> >> >> Hello. >> >> I guess you need to ensure that the path /usr/local/bin is searched >> BEFORE /usr/bin. If you're using sh(1) as the standard shell of yours,= >> you should ensure this by using something like the following in .profi= le >> (or .cshrc, if csh(1)): >> >> PATH=3D/usr/local/bin:/usr/local/sbin:${PATH}; export PATH >> >> for sh(1) or for csh(1) >> >> set path =3D ( /usr/local/bin /usr/local/sbin $path ) >> >> Although I use csh(1) as the login shell, I've also set ~/.profile wit= h >> the propper PATH settings. >> >> Since I run FreeBSD 10.0-CURRENT, I have already OpenSSL 1.0.1c. I >> tested which(1) and whereis(1) on the command lpr(1), which is in my >> case provided by the FreeBSD base system and located in /usr/bin/lpr, >> AND by the port print/cups-base by the CUPS printing system. Luckily, >> since I adjusted the search paths that way, that /usr/local/bin is >> searched BEFORE /usr/bin, lpr(1) is found first in /usr/local/bin: >> >> ohartmann@thor: [~] which lpr >> /usr/local/bin/lpr >> >> >> But when using whereis(1), the result is the undesired: >> >> ohartmann@thor: [~] whereis lpr >> lpr: /usr/bin/lpr /usr/local/man/man1/lpr.1.gz /usr/src/usr.sbin/lpr >> >> >> The manpage of whereis(1) states, that the $PATH environment variable = is >> searched - but this isn't obviously the case, since the shell's PATH >> environment variable points to the right lpr(1) in the first place whi= le >> whereis(1) does ignore it. >> This behaviour is also identical on boxes which run 24/7 with periodic= >> scripts enabled, updating the locate(1) database. >> >> Am I missing something, too? >=20 > The whereis(1) manpage says that the value of $PATH is *appended* to th= e > standard places it searches, so it still finds the base system version > of something before any ports-provided version in /usr/local regardless= > of PATH. =20 >=20 > -- Ian >=20 >=20 You're right, I misinterpreted "... The default path searched is the string returned by the sysctl(8) utility for the =93user.cs_path=94 strin= g, with /usr/libexec, /usr/games and the current user's $PATH appended." Obviously is 'user.cs_path' not related to anything in the user's environment, as I expected to be. --------------enig37FD85D52E350313A96C3646 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJQFtrYAAoJEOgBcD7A/5N8lOsH/0A9BdUgZnQ5AuN7gtiI36eX YkqNWjI9KNMmAGdLrFwc5x95JVPQPhypAjuiIwIEam1aJnEjYK1/ROVXmVLmpJi4 FxcxM1/34LpDC/mofx56i3Ej/GTZXuSENYZi8WlI79dCbzKo4Eeq1LvRRrmujkiS iep3pDoDWPhVoudhjUIunYNy7OtvlTMlx8JnRSf6FDr0Yazrc/HRToMFF1q3EZ8W KeWldF3eoVfdM2xjCoAIZxWxYVErmfGeRMJTd+JJrMURnrVyAZ8oA3ccv+8VwTjb 1K1yjPrySKXiBzduDtyLDBYKwHmDhCdPf1inliqi4Z63gEhI+QBJJ4wZHd1C75k= =FXAH -----END PGP SIGNATURE----- --------------enig37FD85D52E350313A96C3646--