Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2001 04:12:12 +0800
From:      Clive Lin <clive@tongi.org>
To:        ache@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   screen cheated by devfs when configuring (with patch)
Message-ID:  <20010624041211.A4859@cartier.cirx.org>

next in thread | raw e-mail | index | archive | help

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

    I encountered a problem that ports/misc/screen would probe wrong
PTYRANGE1 when configure. When any /dev/[pq]ty[PQRS]* files are never
accessed before, it would not be shown. Here's the problem: screen
will only put what's shown into its PTYRANGE1, known as
[0123456789abcdef] in FreeBSD system.

    This small diff follows the files/patch-ad approach, simply
hardcoding the correct value into screen's configure. I think this
might be worthy a PORTREVISION bump. I was fooled when rebuilding
*everything* in my box today, but unluckily I had only p0 and p1
opened then.

Thanks,
Clive

-- 
Clive Lin (Tong-I Lin)\n =P clive@tongi.org # Family, friends, private
affairs\n =F clive@FreeBSD.org # Chinese ports, documentation\n =O
clive@CirX.ORG # Others\n =J.* # What do you think about the 'J' ?\n

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="screen.diff"

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/screen/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile	2001/01/16 17:31:43	1.32
+++ Makefile	2001/06/23 19:57:14
@@ -7,7 +7,7 @@
 
 PORTNAME=	screen
 PORTVERSION=	3.9.8
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	misc
 MASTER_SITES=	ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
 		${MASTER_SITE_GNU}
Index: files/patch-ad
===================================================================
RCS file: /home/ncvs/ports/misc/screen/files/patch-ad,v
retrieving revision 1.3
diff -u -r1.3 patch-ad
--- files/patch-ad	2000/12/11 03:01:10	1.3
+++ files/patch-ad	2001/06/23 19:55:22
@@ -1,5 +1,5 @@
---- configure.orig	Wed Jun 14 18:04:30 2000
-+++ configure	Mon Dec 11 05:52:29 2000
+--- configure.orig	Wed Jun 14 22:04:30 2000
++++ configure	Sun Jun 24 03:55:03 2001
 @@ -2070,29 +2070,6 @@
    cat conftest.$ac_ext >&5
    rm -rf conftest*
@@ -48,7 +48,7 @@
  }
  EOF
  if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
-@@ -2270,7 +2245,7 @@
+@@ -2270,11 +2245,11 @@
  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
  cat >> confdefs.h <<EOF
@@ -57,3 +57,8 @@
  EOF
  
  cat >> confdefs.h <<EOF
+-#define PTYRANGE1 "$p1"
++#define PTYRANGE1 "0123456789abcdef"
+ EOF
+ 
+ fi

--sdtB3X0nJg68CQEu--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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