Subject: pkg/21227: lang/gcc3 has absolutely no reason to depend on bison (or any other
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@pobox.com>
List: netbsd-bugs
Date: 04/18/2003 11:26:05
>Number:         21227
>Category:       pkg
>Synopsis:       lang/gcc3 has absolutely no reason to depend on bison (or any other autogenerator)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 18 15:30:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Todd Vierling
>Release:        NetBSD 1.6.1
>Organization:
	DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
>Description:

In lang/gcc3/Makefile:

BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison

This is here because the timestamps for autogenerated files are not
properly updated.  There's an attempt to do this for other files in the
pkg "pre-configure" target:

	${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/gcc/c-gperf.h
	${ECHO} "bogus" > ${WRKSRC}/gcc/cstamp-h.in

though the above is completely redundant.  GCC (since EGCS days) ships
with a script that will touch all autogenerated files in proper order,
thus eliminating the need to autogenerate anything.  After running this
script, in most cases (including this pkgsrc case), gcc will compile and
install happily with no external tools besides a plain C compiler.

>How-To-Repeat:

pkg_delete bison, apply patch below, and watch in shock as gcc still
manages to compile and run fine without it.  ^C the build, restart without
cleaning, and notice that the incessant "./config.status --recheck" runs
(caused by autoconf files out-of-date from the distribution) no longer
happen.

>Fix:

begin 644 Makefile.diff.gz
M'XL("%P7H#X``W@`I5)1;Z)`$'YF?\6D,7T0EX5J6R7QH@544A$#F'NX7`C"
M@D0$LH`V,?[W6TA[;9I[N\UN9G;FFYGORZZ91_1-!2LXTCC-*)K^_T*.YD+;
M3`42GBM6%#4ICTG%0I(%>4*2,!R2CX&#,V*T9BD]IWD"C)LJ+7)0I`F*TC@&
MW`!F_/;)$&/\]R(\R/*0R".BC$`>J4-9?5"$ME84Q7^`QJ`\JLI8'3ZAV0SP
M9#`&<3)X@MD,P<JVC.U\:4P%X5#7I4K(Y7*1DKR1"I:0JHCK2\!H2[X]TJ$^
M90@TV[*,C<=KEIL=:,6IY/,8=[*,AC47@@#AEYVYUGW=V!H;W14Y=I]618Y_
MR7CRNZ]*$N$[HF>:D2Z!<-MWLUB;FM?!2S[O'<W;P<;V_(7M^-OUW./6F@IZ
MP"YICONXW\EZ5%I=H\G@N1.&H&04AT4>ITG#J(I`Z%VM5]UT;M"[OI,S'?>&
M,$]X]DY;M8G.\1?K^=*]\?A/Y]5UM%NG/\1)25DL';H*0UO9-[C;%TE3W<$/
M^(:MZN!4XH.4YD@4PN@S#??WP%GQM]^W2+\IHZ"F@'%=-.&AXUU4-=XW:1:U
II&>]JVOH+;6%N39<W]V]N)[_-=1*ZGZ7=#I^$/D:0W\`S`F\B>T"```W
`
end
>Release-Note:
>Audit-Trail:
>Unformatted: