From nobody@FreeBSD.org  Mon Jul 23 04:55:18 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F01DF106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jul 2012 04:55:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DB58D8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jul 2012 04:55:18 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6N4tIAD002069
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jul 2012 04:55:18 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q6N4tIMo002065;
	Mon, 23 Jul 2012 04:55:18 GMT
	(envelope-from nobody)
Message-Id: <201207230455.q6N4tIMo002065@red.freebsd.org>
Date: Mon, 23 Jul 2012 04:55:18 GMT
From: Dmitri Girski <mitek17@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gdb 741 misses a dependency on /devel/readline
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170080
>Category:       ports
>Synopsis:       devel/gdb is missing a dependency on devel/readline
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 23 05:00:20 UTC 2012
>Closed-Date:    Thu Jul 26 07:28:32 UTC 2012
>Last-Modified:  Wed Aug  1 14:00:21 UTC 2012
>Originator:     Dmitri Girski
>Release:        Freebsd (.0-RELEASE
>Organization:
>Environment:
FreeBSD praktikant 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
/usr/ports/devel/gdb$ make
[skip]
rm -f gdb
cc -pipe -DRL_NO_COMPAT -isystem /usr/local/include -g -g   -L/usr/local/lib   -Wl,-E \
	-o gdb gdb.o libgdb.a \
	   -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lncurses -lz -lm  -L/usr/local/lib -liconv  ../libiberty/libiberty.a  gnulib/libgnu.a -lkvm
libgdb.a(tui-io.o): In function `tui_setup_io':
/usr/ports/devel/gdb/work/gdb-7.4.1/gdb/./tui/tui-io.c:518: undefined reference to `_rl_echoing_p'
/usr/ports/devel/gdb/work/gdb-7.4.1/gdb/./tui/tui-io.c:523: undefined reference to `_rl_echoing_p'
/usr/ports/devel/gdb/work/gdb-7.4.1/gdb/./tui/tui-io.c:562: undefined reference to `_rl_echoing_p'
gmake[2]: *** [gdb] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.4.1/gdb'
gmake[1]: *** [all-gdb] Error 2
gmake[1]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.4.1'
gmake: *** [all] Error 2
*** Error code 1


>How-To-Repeat:
cd /usr/ports/devel/gdb
make
>Fix:
cd /usr/ports/devel/readline
make
cd /usr/ports/devel/gdb
make

>Release-Note:
>Audit-Trail:
Class-Changed-From-To: maintainer-update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Mon Jul 23 05:00:32 UTC 2012 
Class-Changed-Why:  
Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 
Responsible-Changed-From-To: freebsd-ports-bugs->eadler 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jul 23 05:00:38 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 
Responsible-Changed-From-To: eadler->freebsd-ports-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Jul 23 06:15:12 UTC 2012 
Responsible-Changed-Why:  
fix synopsis and reassign 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 
Responsible-Changed-From-To: freebsd-ports-bugs->scheidell 
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Wed Jul 25 11:04:12 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 
State-Changed-From-To: open->feedback 
State-Changed-By: scheidell 
State-Changed-When: Wed Jul 25 13:52:13 UTC 2012 
State-Changed-Why:  
Seems to work here. Can you look at my logs and see why mine works and 
yours doesn't? 
<http://lorie.secnap.net/tb/logs/9-scheidell_AMD64/gdb-7.4.1_2.log> 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 
State-Changed-From-To: feedback->closed 
State-Changed-By: scheidell 
State-Changed-When: Thu Jul 26 07:27:33 UTC 2012 
State-Changed-Why:  
This appears to be a localized issue on your two systems 
and it builds just fine here on a clean, 8.3 amd64: 

<http://lorie.secnap.net/tb/logs/8-scheidell_AMD64/gdb-7.4.1_2.log> 

and in the buildlog you sent to me, you show that readline is already installed, 
(so, adding a dependency again isn't going to help) 

===>  License GPLv3 accepted by the user 
===>  Found saved configuration for gdb-7.4.1_2 
=> gdb-7.4.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/. 
=> Attempting to fetch http://ftp.gnu.org/gnu/gdb/gdb-7.4.1.tar.bz2 
gdb-7.4.1.tar.bz2                             100% of   19 MB  170 kBps 00m00s 
===>  Extracting for gdb-7.4.1_2 
=> SHA256 Checksum OK for gdb-7.4.1.tar.bz2. 
===>  Patching for gdb-7.4.1_2 
===>  Applying FreeBSD patches for gdb-7.4.1_2 
===>   gdb-7.4.1_2 depends on executable: gmake - found 
===>   gdb-7.4.1_2 depends on shared library: readline - found 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 


===>   gdb-7.4.1_2 depends on shared library: iconv.3 - found 
===>  Configuring for gdb-7.4.1_2 


and it is already in the Makefile: 
# Forcing to use the readline.6 
LIB_DEPENDS+=   readline:${PORTSDIR}/devel/readline 

I suspect you have an old version of readline installed 

pkg_delete devel/readline* 

clean your portstree, (portsclean -C) 
update your portstree. 

do a 'locate readline.so' to make sure you don't have any old copies leftover somewhere. 

try again. 

If you still can't get it to work, I suggest you join and email the freebsd-ports@ mailing list and see if they can help you. 
(maintainer:  the Makefile says 'forcing to use readline.6 but you don't have a .6 in the triplet on the depends line, did you  
mean to??) 



http://www.freebsd.org/cgi/query-pr.cgi?pr=170080 

From: Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
To: bug-followup@freebsd.org, mitek17@gmail.com
Cc:  
Subject: Re: ports/170080: devel/gdb is missing a dependency on devel/readline
Date: Wed, 1 Aug 2012 15:56:18 +0200

 Hi, I'm the maintainer.
 
 In the Makefile I wrote that:
 
 # Forcing to use the readline.6
 LIB_DEPENDS+= readline:${PORTSDIR}/devel/readline
 
 
 but originally was:
 # Forcing to use the readline.6
 LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
 
 The commiter (sunport@ I guess) remove the .6 'cause Pet portlint.
 I don't know waht Pet portlint is, but libreadline is/was part of
 FreeBSD (7&8 for sure, as libreadline.so.8).
 
 I'm testing a patch on redports and I commit that as soon as I can
 (Pet portlint could be offended, but at the moment I don't know
 another way to force that)
>Unformatted:
