[Bug #1904] cmp required?

Bug #1904: cmp required?
http://redmine.ruby-lang.org/issues/show/1904

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Low
ruby -v: ruby 1.9.2dev (2009-08-06 trunk 24412) [i386-cygwin]

e$B$[$:G>.8B$Ne(Bcygwine$B4D6-$Ge(Btrunke$B$N%S%k%I$r;n$=$&$H$7$F$$?$H$3$m!"e(Bcmpe$B$+e(Bgperfe$B$b$J$/$F;$^$C$F$7$^$C$?$N$G$9$,!"e(Bcmpe$B$,I,?$K$J$C$?$N$G$7$g$&$+e(B?

ccache gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -
Wwrite-strings -I. -I.ext/include/i386-cygwin
-I/home/kazu/wc/ruby/trunk/include
-I/home/kazu/wc/ruby/trunk -DRUBY_EXPORT -o pack.o -c
/home/kazu/wc/ruby/trun
k/pack.c
/bin/sh: line 1: cmp: command not found

  • gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word ‘-k1,3,$’
    /home/kazu/wc/ruby
    /trunk/defs/keywords
    /bin/sh: line 6: gperf: command not found
    make: *** [lex.c] Error 127

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$BJdB-$G$9!#e(B

baserubye$BMQ$Ke(Bruby_1_8e$B$r%S%k%I$7$?$H$-$Ke(Bautoconf,gcc,bison,makee$B$J$I$OF~$l$F$$$F!"e(Btrunke$B$r%S%k%I$7$h$&$H$9$k$HDI2C$Ge(Bdiffutilse$B$K4^$^$l$ke(Bcmpe$B$,I,[email protected]$C$?$H$$$&OC$G$9!#e(B

http://redmine.ruby-lang.org/issues/show/1904

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B0l;~E*$J%P%[email protected]$C$?$s$G$9$C$1!)$3$l!#e(B
e$B:#$b:F8=$7$^$9$+$M!#e(B

http://redmine.ruby-lang.org/issues/show/1904

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

trunk/Makefile.in e$B$,0J2<$N$h$&$K$J$C$F$$$F!“e(B cmp
e$B$K<:GT$9$k$H<:GT$N860x$,2?$G$”$C$F$be(B gperf
e$B$r<B9T$9$k$h$&$K$J$C$F$$$k$N$G!":#$b:F8=$9$k$H;W$$$^$9!#e(B

Things which should be considered:

* with gperf v.s. without gperf

* ./configure v.s. …/ruby/configure

* GNU make v.s. HP-UX make # HP-UX make invokes the action if lex.c

and keywords has same mtime.

* svn checkout generate a file with mtime as current time

* XFS has a mtime with fractional part

lex.c: defs/keywords
@
if cmp -s $(srcdir)/defs/lex.c.src $?; then
set -x;
$(CP) $(srcdir)/lex.c.blt [email protected];
else
set -x;
gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $?

[email protected] &&
$(MV) [email protected] [email protected] &&
$(CP) $? $(srcdir)/defs/lex.c.src &&
$(CP) [email protected] $(srcdir)/lex.c.blt;
fi

ruby_1_8 e$B$Ne(B Makefile.in e$B$G$O0J2<$N$h$&$Ke(B cmp
e$B$O;H$C$F$$$J$$$h$&$G$9!#e(B

lex.c: keywords
( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $?

[email protected] && mv [email protected] [email protected] ) ||
if test -f [email protected]; then
touch [email protected] && echo [email protected] touched.;
else
cp $(srcdir)/lex.c [email protected] && echo [email protected] copied.;
fi

e$B!Ve(Benc/unicode/name2ctype.h: enc/unicode/name2ctype.kwde$B!W$G$be(B
cmp e$B$r;H$C$F$$$k$h$&$J$N$G!“e(B cmp
e$B$,I,MW$K$J$C$?$H$$$&$N$J$i!”$J$1$l$PF~$l$F$+$i%S%k%I$9$k$H$$$&[email protected]$1$J$N$G!"e(B
Rejected e$B$G=*N;$7$F$/[email protected]$5$$!#e(B

http://redmine.ruby-lang.org/issues/show/1904

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$BI,[email protected]$H$$$&$3$H$K$9$k$H$$$&$3$H<+BN$K0[[email protected]$O$"$j$^$;$s!#e(B

[email protected]!"8=>ue(B cmp e$B$r;H$C$F$$$k$N$C$F!"e(Blex.c e$B$de(B
enc/unicode/name2ctype.h [email protected]@.$G$J$N$G!"e(B
e$B%=!<%9$KDL>oE:[email protected]@.%W%m%;%9$,$J$<Av$k$N$+IT;W5D$J$s$G$9$h$M!#e(B

http://redmine.ruby-lang.org/issues/show/1904

In article [email protected],
Yui NARUSE [email protected] writes:

[email protected]!"8=>ue(B cmp e$B$r;H$C$F$$$k$N$C$F!"e(Blex.c e$B$de(B enc/unicode/name2ctype.h [email protected]@.$G$J$N$G!"e(B
e$B%=!<%9$KDL>oE:[email protected]@.%W%m%;%9$,$J$<Av$k$N$+IT;W5D$J$s$G$9$h$M!#e(B

lex.c e$B$h$je(B defs/keywords
e$B$N$[$&$,99?7;~9o$,?7$7$$$s$8$c$J$$$G$7$g$&$+!#e(B

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Akira T.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B

Unix (e$B$C$]$$4D6-e(B) e$B$Ge(B cmp
e$B$,$J$$$H$$$&$N$O9MN8$7$J$$$3$H$K$7$^$9!#e(B

e$B$J$*!"5-21$K$h$l$P!"e(Bcmp
e$B$r$D$+$C$FHf3S$9$k$N$O%P!<%8%g%s$N0c$&e(B gperf
e$B$,%$%s%9%H!<%k$5$l$F$$$k4D6-$GITMW$K:[email protected]@.$5$l$ke(B (e$B$=$7$Fe(B svn
diff e$B$K=P$F$/$ke(B) e$B$N$rKI$0$?$a$G$9!#e(B


http://redmine.ruby-lang.org/issues/show/1904

e$B%A%1%C%He(B #1904 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B%l%]%8%H%j$NJ}$K$Oe(B trunk/enc/unicode/name2ctype.h
e$B$O$"$j$^$9$,!"e(B trunk/lex.c e$B$O$J$$$h$&$G$9!#e(B

snapshot.tar.gz e$B$K$ON>J}F~$C$F$$$^$7$?!#e(B

http://redmine.ruby-lang.org/issues/show/1904

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs