Bug 169785 - [PATCH] devel/cgdb: link against libutil to use openpty(3)
Summary: [PATCH] devel/cgdb: link against libutil to use openpty(3)
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: Cheng-Lung Sung
Depends on:
Reported: 2012-07-11 15:30 UTC by Pietro Cerutti
Modified: 2012-08-29 11:10 UTC (History)
1 user (show)

See Also:

cgdb-0.6.6.patch (585 bytes, patch)
2012-07-11 15:30 UTC, Pietro Cerutti
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pietro Cerutti freebsd_committer 2012-07-11 15:30:01 UTC
cgdb cannot find openpty(3) since it doesn't link against libutil. For this
reason, it uses pty(4) directly, which is not in the GENERIC kernel anymore.
The patch allow to link against libutil and use openpty(3), which is a cleaner
why to allocate ptys.

Port maintainer (clsung@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS)
Comment 1 Edwin Groothuis freebsd_committer 2012-07-11 15:30:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pietro Cerutti freebsd_committer 2012-08-29 11:04:17 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer 2012-08-29 11:04:23 UTC
Author: gahr
Date: Wed Aug 29 10:04:07 2012
New Revision: 303329
URL: http://svn.freebsd.org/changeset/ports/303329

  - Link against base libutil for openpty(3)
  PR:		169785
  Submitted by:	gahr
  Approved by:	maintainer (timeout > 1.5 month)

  head/devel/cgdb/Makefile   (contents, props changed)

Modified: head/devel/cgdb/Makefile
--- head/devel/cgdb/Makefile	Wed Aug 29 09:59:48 2012	(r303328)
+++ head/devel/cgdb/Makefile	Wed Aug 29 10:04:07 2012	(r303329)
@@ -19,6 +19,11 @@ MAN1=		cgdb.1
+# we need this for openpty(3) . It sucks,
+# but since cgdb include a libutil itself,
+# we have to specify the full path.
+LDFLAGS+=    /usr/lib/libutil.so
 .include <bsd.port.pre.mk>
 # at this time we can not use LIB_DEPENDS, please read ports/99327
svn-ports-all@freebsd.org mailing list
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"