Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2014 03:44:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 194475] New: heimdal port has a dependency on libcom_err from heimdal base
Message-ID:  <bug-194475-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194475

            Bug ID: 194475
           Summary: heimdal port has a dependency on libcom_err from
                    heimdal base
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Infrastructure
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au

The heimdal port is not self contained and relies upon parts (libcom_err.*) of
the heimdal base to function.

The heimdal port pulls in /usr/lib/libcom_err which is installed via heimdal
base. When heimdal port builds, configure performs a test for libcom_err, if it
exists link to it, otherwise fail.

To ensure that the heimdal port is not dependent on the heimdal base, the
following 3 steps are required:

1) Have this in the /usr/ports/security/heimdal/Makefile:
PLIST_SUB+=    LIBCOM_ERR=""
2) and remove /usr/ports/security/heimdal/files/patch-lib-com_err-Makefile.in

As I build ports on a development machine which has heimdal from base
installed, the heimdal package expects /usr/lib/libcom_err.* to exist.  However
our production systems have /etc/src.conf containing:
WITHOUT_GSSAPI=yes
WITHOUT_KERBEROS=yes
WITHOUT_KERBEROS_SUPPORT=yes
So for our development machine we remove /usr/lib/libcom_err.* to enable the
heimdal port's configure script to NOT detect /usr/lib/libcom_err.*

3) Either build a base system without /usr/lib/libcom_err.* or remove the files
prior to building the heimdal port, to ensure that the heimdal port is entirely
self-contained; particularly when heimdal is NOT part of the base system or the
target system.  If I was more technical, I would see about eliminating
configure's test for the existence of /usr/lib/libcom_err.* files and to
unconditionally build its own from its library; ideally build its own
libcom_err files, similar to the way samba41 does this.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194475-13>