Date: Wed, 11 Jul 2012 16:25:36 +0200 (CEST) From: Pietro Cerutti <gahr@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: clsung@FreeBSD.org Subject: ports/169785: [PATCH] devel/cgdb: link against libutil to use openpty(3) Message-ID: <201207111425.q6BEPaTR003095@mail.medacta.ch> Resent-Message-ID: <201207111430.q6BEU2o0023656@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169785 >Category: ports >Synopsis: [PATCH] devel/cgdb: link against libutil to use openpty(3) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 11 14:30:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Pietro Cerutti >Release: FreeBSD 10.0-CURRENT amd64 >Organization: The FreeBSD Project >Environment: System: FreeBSD SN2000.medacta.ch 10.0-CURRENT FreeBSD 10.0-CURRENT #20: Mon Jun 18 10:00:24 CEST 2012 >Description: 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) >How-To-Repeat: >Fix: --- cgdb-0.6.6.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/cgdb/Makefile,v retrieving revision 1.24 diff -u -r1.24 Makefile --- Makefile 21 Jan 2012 17:37:05 -0000 1.24 +++ Makefile 11 Jul 2012 14:23:15 -0000 @@ -19,6 +19,11 @@ GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes +# 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 --- cgdb-0.6.6.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207111425.q6BEPaTR003095>