NetBSD-Bugs archive

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

toolchain/51026: mips64-eb awk is misbehaving

>Number:         51026
>Category:       toolchain
>Synopsis:       gcc 5.3 compiled mips64-eb awk is misbehaving
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 30 11:00:00 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.26
The NetBSD Foundation, Inc.
System: NetBSD 7.99.26 NetBSD 7.99.26 (ERLITE) #126: Wed Mar 30 05:37:33 CEST 2016 evbmips
Architecture: mips64eb
Machine: evbmips

compiled with gcc 5.3, using softfloat.


awk misbehaves, when running postinstall on a freshly installed system
it says:

obsolete check:
        Remove obsolete file /usr/lib/
        Remove obsolete file /usr/lib/

This happens because the awk script uses the wrong branch in postinstall::601:

		res = digit(orev, orevc, i) - digit(nrev, nrevc, i)
		if (res < 0) {
			print LibDir lib results[lib]
			results[lib] = rev
		} else if (res > 0) {
			print LibDir lib rev

where digit returns the tiny number to differentiate (the "2" in
versus "1" in, so 2 is newer, res is -1 but it still goes into
the lower else if (res > 0).


Home | Main Index | Thread Index | Old Index