Bug 119986 - print/cups-base needs LDAP option to expose hidden dependency
Summary: print/cups-base needs LDAP option to expose hidden dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 23:10 UTC by Virgil Champlin
Modified: 2008-01-30 08:21 UTC (History)
0 users

See Also:


Attachments
Makefile.patch (665 bytes, patch)
2008-01-25 23:10 UTC, Virgil Champlin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Virgil Champlin 2008-01-25 23:10:04 UTC
	The CUPS source configures with --enable-ldap as a default and will
	build with LDAP support if it finds ldap.h and an ldap library.  If
	you build the cups-base package on a machine that has LDAP support,
	the resulting package will have a hidden dependency on the ldap
	library which prevents it from running on a system without LDAP
	support.  e.g. It will successfully install on a host that has no
	LDAP support but yields the following on start-up:
	    /libexec/ld-elf.so.1: Shared object "libldap-2.3.so.2" not
	    found, required by "cupsd"
	This is common in environments with a single build machine that
	prepares packages for other local hosts.

Fix: The following patch to print/cups-base/Makefile (cvs 1.85) will
	expose the ldap option at the port level and allow the ldap
	dependency, if enabled, to be recognized.  Thanks much.  -virgil
How-To-Repeat: 	Build a print/cups-base package on a host with openldap-client.
	Install the resulting package on a host that has no LDAP support.
	'sudo /usr/local/etc/rc.d/cupsd start' will return the above
	shared library error.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-01-25 23:10:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-01-29 15:44:47 UTC
dinoex      2008-01-29 15:44:36 UTC

  FreeBSD ports repository

  Modified files:
    print/cups-base      Makefile 
  Log:
  - new option WITH_LDAP
  PR:             119986
  Submitted by:   Virgil Champlin
  
  Revision  Changes    Path
  1.86      +9 -1      ports/print/cups-base/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2008-01-30 08:21:38 UTC
State Changed
From-To: open->closed

committed, thanks.