Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 20:36:51 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Beat Siegenthaler <beat.siegenthaler@beatsnet.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: OpenSSL from Ports
Message-ID:  <5016D443.9030105@zedat.fu-berlin.de>
In-Reply-To: <5016CCBB.30603@beatsnet.com>
References:  <5016CCBB.30603@beatsnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig368A6F3F139610B38296CDAC
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 07/30/12 20:04, schrieb Beat Siegenthaler:
> Hello,
>=20
> Until today, when I was asked what WITH_OPENSSL_PORT=3Dyes should do.. =
i
> was obviously wrong:
> I think whole openssl should be replaced, but :
>=20
> [mym:~] # which openssl
> /usr/bin/openssl
> [mym:~] # openssl version
> OpenSSL 0.9.8x 10 May 2012
>=20
> there IS a 1.0.1 version but it is not found whit which or whereis:
>=20
> [mym:~] # /usr/local/bin/openssl version
> OpenSSL 1.0.1c 10 May 2012
>=20
> Maybe I simply miss some shell basics?
> Regards, Beat
>=20


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 .profile
(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 with
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 while
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?

Regards,
Oliver


--------------enig368A6F3F139610B38296CDAC
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)

iQEcBAEBAgAGBQJQFtRKAAoJEOgBcD7A/5N8uXoH/RMITZdvllUi4jRrSpqmWw/g
4C6hMBNwiWk4ashPDTMj2Fsr3zjSihFCD/Tb8kbcS94bgGSecJYs44MLO1Jas3OS
ABpvr5XNeReqtXJIJmPJnsjO7MIxK/0fOvxshLAl2fQk9RAJLeFgKfI6EVgecgWQ
f6i7Ioo7OHtrKeuADUAvfZjcVLFSDomi/zH28aBvTNa8NDCwI0jeoro3RwUasklt
vBKsrcGeex7didAcBIYEpeZXsV2CaEiRjQBELLaWUNGokzyk6O5Sk6Zp3wnXY3yx
i72kXZ798qPGPnR6F4m3w9KXCMM3FJaTokye47HQ6H22fd6Q7dDZBzrtt1g0ljY=
=gWtg
-----END PGP SIGNATURE-----

--------------enig368A6F3F139610B38296CDAC--



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