Carson Gaspar
2001-Mar-28 02:53 UTC
OSSH 2.5.2p2: Why is /usr/local/ put into the include & lib paths under Solaris?
I'd like to know why /usr/local/(include|lib) is added to the (include|library) path. I'd _especially_ like to know why it's added before user-specified library directories such as OpenSSL. If I specify --with-openssl=/foo/openssl, I want to actually _use_ the version of openssl in /foo/openssl, not some version that may have been installed in /usr/local. This really makes no sense at all, since Solaris doesn't even _have_ /usr/local by default. Attached is a patch that gets rid of this behaviour, at least for solaris. I suspect it's bogus on just about every platform, but I'm sure it is on Solaris. -- Carson -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 359 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010327/1e926e09/attachment.obj
Jason Stone
2001-Mar-28 03:39 UTC
OSSH 2.5.2p2: Why is /usr/local/ put into the include & lib paths under Solaris?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> I'd like to know why /usr/local/(include|lib) is added to the > (include|library) path.Because most opensource add-ons install into /usr/local by default and the native compiler chain doesn't know about stuff in there and has to be told.> I'd _especially_ like to know why it's added before user-specified > library directories such as OpenSSL.It's not - looking at your patch: - CPPFLAGS="$CPPFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" They're clearly added _after_ any user defined flags.> This really makes no sense at all, since Solaris doesn't even _have_ > /usr/local by default.No platform should ship with /usr/local, that's the point - it's for local customizations and non-official, "after-market" stuff that you install. The point is that if you install, eg, openssl on the system, it will drop its crap in /usr/local/. Then when you configure/make openssh, it will find the system-wide openssl in /usr/local without your having to tell it manually. -Jason --------------------------- If the Revolution comes to grief, it will be because you and those you lead have become alarmed at your own brutality. --John Gardner -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: See https://private.idealab.com/public/jason/jason.gpg iD8DBQE6wVzgswXMWWtptckRAgx3AJ9tEqz285xy0vj6l3aGQgLBxSoLZwCeNA8U c/Rg6E4BjbDl1zreqpjYHMw=y7// -----END PGP SIGNATURE-----
Damien Miller
2001-Mar-28 03:47 UTC
OSSH 2.5.2p2: Why is /usr/local/ put into the include & lib paths under Solaris?
On Tue, 27 Mar 2001, Carson Gaspar wrote:> I'd like to know why /usr/local/(include|lib) is added to the > (include|library) path. I'd _especially_ like to know why it's added before > user-specified library directories such as OpenSSL. If I specify > --with-openssl=/foo/openssl, I want to actually _use_ the version of > openssl in /foo/openssl, not some version that may have been installed in > /usr/local. This really makes no sense at all, since Solaris doesn't even > _have_ /usr/local by default. > > Attached is a patch that gets rid of this behaviour, at least for solaris. > I suspect it's bogus on just about every platform, but I'm sure it is on > Solaris.Many people and packages (like most of sunfreeware) put stuff in /usr/local. -d -- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer
Carson Gaspar
2001-Mar-28 08:05 UTC
OSSH 2.5.2p2: Why is /usr/local/ put into the include & lib paths under Solaris?
--On Wednesday, March 28, 2001 1:47 PM +1000 Damien Miller <djm at mindrot.org> wrote:> Many people and packages (like most of sunfreeware) put stuff in > /usr/local.So? If you want to look in /usr/local for OpenSSL as one of the default locations if --with-openssl is not specified, great. Please do. Why does OpenSSH _blindly_ add it to -I/-L/-R? This makes no sense, and is broken. -- Carson