tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] Add --libdir to security/openssl



Hi,

I have a setup where I add a lib64 → lib symlink in the pkgsrc
installation prefix to work around the nasty default search order of
gcc with libraries in LIBRARY_PATH (as opposed to explicit -L on
command line), as discussed on

	https://stackoverflow.com/questions/12419363/why-does-g-look-in-library-path-lib64-and-where-is-this-documented

I need that symlink to make gcc actually consider libraries installed
from pkgsrc before old ones in the base system.

Now I got into trouble with that since current pkgsrc won't play with
the CentOS 7 openssl anymore. The security/openssl build finds the
lib64 and favours it as libdir, breaking PLIST. This little patch fixes
that and I hope that it could be included in pkgsrc.

diff -x CVS -ruN pkgsrc-2020Q1/security/openssl/Makefile pkgsrc/security/openssl/Makefile
--- pkgsrc-2020Q1/security/openssl/Makefile     2020-03-22 19:23:34.000000000 +0100
+++ pkgsrc/security/openssl/Makefile    2020-05-21 12:10:32.118148138 +0200
@@ -18,6 +18,7 @@
 HAS_CONFIGURE=         yes
 CONFIGURE_SCRIPT=      ./config
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
+CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib
 CONFIGURE_ARGS+=       --openssldir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       shared
 

Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index