Bug 248501 - www/serf: appears to build against base krb5 even when Heimdal port is selected
Summary: www/serf: appears to build against base krb5 even when Heimdal port is selected
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Lev A. Serebryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-06 15:17 UTC by Trix Farrar
Modified: 2020-08-06 16:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (lev)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trix Farrar 2020-08-06 15:17:55 UTC
This appears to pop up from time to time with various ports that offer a choice for building against base or a port (e.g. PR 198559).

I built devel/subversion, which requires www/serf.  The serf port was supposed to build against security/heimdal but invocations of svn(1) end with an undefined symbol message:

$ pkg version -x serf
serf-1.3.9_5                       =
$ pkg info serf
serf-1.3.9_5
Name           : serf
Version        : 1.3.9_5
Installed on   : Thu Jul 30 12:55:31 2020 CDT
Origin         : www/serf
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : www
Licenses       : APACHE20
Maintainer     : lev@FreeBSD.org
WWW            : http://serf.apache.org/
Comment        : Serf HTTP client library
Options        :
	DOCS           : on
	GSSAPI_BASE    : off
	GSSAPI_HEIMDAL : on
	GSSAPI_MIT     : off
Shared Libs required:
	libexpat.so.1
	libgdbm.so.6
	libldap-2.4.so.2
	libaprutil-1.so.0
	libapr-1.so.0
	liblber-2.4.so.2
	libhcrypto.so.4
	libdb-5.3.so.0
Shared Libs provided:
	libserf-1.so.1
Annotations    :
	FreeBSD_version: 1201000
	cpe            : cpe:2.3:a:serf:serf:1.3.9:::::freebsd12:x64:5
	repo_type      : binary
	repository     : basement_repo
Flat size      : 407KiB
Description    :
The serf library is a C-based HTTP client library built upon the
Apache Portable Runtime (APR) library. It multiplexes connections,
running the read/write communication asynchronously. Memory copies
and transformations are kept to a minimum to provide high
performance operation.

WWW: http://serf.apache.org/
$ svn status
ld-elf.so.1: /usr/local/lib/libserf-1.so.1: Undefined symbol "__gss_c_nt_hostbased_service_oid_desc"
$ pkg info -x heim
heimdal-7.7.0
$ 

Rebuilding www/serf using base krb5 appears to work around the issue:

$ pkg version -x serf
serf-1.3.9_5                       =
$ pkg info serf
serf-1.3.9_5
Name           : serf
Version        : 1.3.9_5
Installed on   : Thu Aug  6 10:20:13 2020 CDT
Origin         : www/serf
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : www
Licenses       : APACHE20
Maintainer     : lev@FreeBSD.org
WWW            : http://serf.apache.org/
Comment        : Serf HTTP client library
Options        :
	DOCS           : on
	GSSAPI_BASE    : on
	GSSAPI_HEIMDAL : off
	GSSAPI_MIT     : off
Shared Libs required:
	libexpat.so.1
	libgdbm.so.6
	libldap-2.4.so.2
	libaprutil-1.so.0
	libapr-1.so.0
	liblber-2.4.so.2
	libdb-5.3.so.0
Shared Libs provided:
	libserf-1.so.1
Annotations    :
	FreeBSD_version: 1201000
	cpe            : cpe:2.3:a:serf:serf:1.3.9:::::freebsd12:x64:5
	repo_type      : binary
	repository     : basement_repo
Flat size      : 407KiB
Description    :
The serf library is a C-based HTTP client library built upon the
Apache Portable Runtime (APR) library. It multiplexes connections,
running the read/write communication asynchronously. Memory copies
and transformations are kept to a minimum to provide high
performance operation.

WWW: http://serf.apache.org/
$ svn status
svn: warning: W155007: '/' is not a working copy
$
Comment 1 Lev A. Serebryakov freebsd_committer 2020-08-06 16:25:39 UTC
To be honest, I know nothing about Kerberos integration, it was contributed to port...
I never build anything with kerberos myself...