pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34156: textproc/dict-[server|client]: fails to build on 3.0.1



>Number:         34156
>Category:       pkg
>Synopsis:       textproc/dict-[server|client]: fails to build on 3.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 07 12:10:00 +0000 2006
>Originator:     Auster
>Release:        NetBSD 3.0.1
>Organization:
>Environment:
System: NetBSD gran 3.0.1 NetBSD 3.0.1 (gran-1.661.2.8 $) #0: Mon Jul 3 
13:48:59 EEST 2006 yx@gran:/sys/arch/i386/compile/gran i386
Architecture: i386
Machine: i386
>Description:
        textproc/dict-[server|client]: fails to build on 3.0.1 (w/ whereis.c,v 
1.17)

>How-To-Repeat:

% uname -sr
NetBSD 3.0.1

% ident /usr/bin/which
/usr/bin/which:
     $NetBSD: crt0.c,v 1.13 2003/07/26 19:24:27 salo Exp $
     $NetBSD: whereis.c,v 1.17 2004/05/23 02:24:06 christos Exp $

% /usr/bin/which /usr/bin/lex || echo false
false


# cd /usr/pkgsrc/textproc/dict-server
# make
[snip]
checking for bison... /usr/bin/yacc
checking for flex... /usr/bin/lex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
configure: error: 'lex' is missing on your system.
You can get `flex' from any GNU archive site.
*** Error code 1
[snip]

# cd /usr/pkgsrc/textproc/dict-client
# make
[snip]
checking for bison... /usr/bin/yacc
checking for flex... /usr/bin/lex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
configure: error: 'lex' is missing on your system.
You can get `flex' from any GNU archive site.
*** Error code 1
[snip]




note,
textproc/dict-[server|client] success to build on -current (with whereis.c,v 
1.18):
% uname -sr
NetBSD 3.99.24

% ident /usr/bin/which
/usr/bin/which:
     $NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $
     $NetBSD: whereis.c,v 1.18 2006/07/30 11:50:29 martin Exp $

% /usr/bin/which /usr/bin/lex && echo true
/usr/bin/lex
true
%



>Fix:
% diff -ruN textproc/dict-server.orig textproc/dict-server
diff -ruN textproc/dict-server.orig/distinfo textproc/dict-server/distinfo
--- textproc/dict-server.orig/distinfo  2006-08-07 13:25:36.000000000 +0300
+++ textproc/dict-server/distinfo       2006-08-07 13:16:33.000000000 +0300
@@ -12,4 +12,4 @@
 SHA1 (patch-ai) = 21b2c9ace814e005139c64c4b6890e8b7e249f29
 SHA1 (patch-aj) = 76527be1d4ff89aeec72606d9575a99e6a8e2d3b
 SHA1 (patch-ak) = ab11363903da1f173add59a132b347db9241345f
-SHA1 (patch-al) = 6925dbf41b2d099bb635aa08498cddb52b441759
+SHA1 (patch-al) = 0d515ec4ba4102d3e06b10cb187fd978708b7822
diff -ruN textproc/dict-server.orig/patches/patch-al 
textproc/dict-server/patches/patch-al
--- textproc/dict-server.orig/patches/patch-al  2006-08-07 13:25:36.000000000 
+0300
+++ textproc/dict-server/patches/patch-al       2006-08-07 13:14:17.000000000 
+0300
@@ -3,9 +3,9 @@
 Self-written configure tests are generally not of high quality. This one
 fails to work on NetBSD 3.0.
 
---- configure.orig     2006-06-26 13:34:22.000000000 +0200
-+++ configure  2006-06-26 13:36:17.000000000 +0200
-@@ -3166,7 +3166,7 @@ fi
+--- configure.orig     2006-08-07 13:11:16.000000000 +0300
++++ configure  2006-08-07 13:13:03.000000000 +0300
+@@ -3166,7 +3166,7 @@
  done
  test -n "$YACC" || YACC="yacc"
  
@@ -14,3 +14,12 @@
     { { echo "$as_me:$LINENO: error: 'yacc' is missing on your system.
  You can get \`bison' from any GNU archive site." >&5
  echo "$as_me: error: 'yacc' is missing on your system.
+@@ -3445,7 +3445,7 @@
+ fi
+ 
+ fi
+-if ! which `echo $LEX | cut -f 1 -d ' '` >/dev/null 2>&1; then
++if false && ! which `echo $LEX | cut -f 1 -d ' '` >/dev/null 2>&1; then
+    { { echo "$as_me:$LINENO: error: 'lex' is missing on your system.
+ You can get \`flex' from any GNU archive site." >&5
+ echo "$as_me: error: 'lex' is missing on your system.




Home | Main Index | Thread Index | Old Index