pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
adding builtin support
Hi!
I am struggling again to add builtin support for Solaris to a package.
This time I'd like to use native openssl (actually the on in /usr/sfw)
instead of security/openssl. I have severe performance problems in a
productive radius server.
So far I have done this:
--- builtin.mk 2011/05/24 08:14:39 1.1
+++ builtin.mk 2011/05/24 08:23:35
@@ -5,9 +5,11 @@
BUILTIN_FIND_LIBS:= des
BUILTIN_FIND_FILES_VAR:= H_OPENSSLCONF H_OPENSSLV
BUILTIN_FIND_FILES.H_OPENSSLCONF= /usr/include/openssl/opensslconf.h \
- /boot/common/include/openssl/opensslconf.h
+ /boot/common/include/openssl/opensslconf.h \
+ /usr/sfw/include/openssl/opensslconf.h
BUILTIN_FIND_FILES.H_OPENSSLV= /usr/include/openssl/opensslv.h \
- /boot/common/include/openssl/opensslv.h
+ /boot/common/include/openssl/opensslv.h \
+ /usr/sfw/include/openssl/opensslv.h
.include "../../mk/buildlink3/bsd.builtin.mk"
@@ -162,6 +164,8 @@
BUILDLINK_PREFIX.openssl= /usr
. elif !empty(H_OPENSSLV:M/boot/common/*)
BUILDLINK_PREFIX.openssl= /boot/common
+. elif !empty(H_OPENSSLV:M/usr/sfw/*)
+BUILDLINK_PREFIX.openssl= /usr/sfw
. endif
. endif
. endif
and added "PREFER_NATIVE = openssl" to mk.conf. Now I get:
$ bmake show-var VARNAME=USE_BUILTIN.openssl
yes
$ bmake show-var VARNAME=BUILTIN_PKG.openssl
openssl-0.9.7d
$ bmake show-var VARNAME=CHECK_BUILTIN.openssl
no
$ bmake show-var VARNAME=BUILDLINK_PREFIX.openssl
/usr
Maybe someone can give me a hint on what to check/fix next. What is
missing to set BUILDLINK_PREFIX.openssl correctly? What variables are
actually checked when a depending package decides to take the native or
the pkgsrc version?
--
Jörn Clausen
joern.clausen%uni-bielefeld.de@localhost
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
Home |
Main Index |
Thread Index |
Old Index