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
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD supremacy.duskware.de 7.99.26 NetBSD 7.99.26 (ERLITE) #126: Wed Mar 30 05:37:33 CEST 2016 martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/evbmips/compile/ERLITE evbmips
Architecture: mips64eb
Machine: evbmips

compiled with gcc 5.3, using softfloat.

>Description:

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

obsolete check:
        Remove obsolete file /usr/lib/libgomp.so.1.2
        Remove obsolete file /usr/lib/libstdc++.so.7.4

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
			return
		} else if (res > 0) {
			print LibDir lib rev
			return
		}

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

>How-To-Repeat:
s/a
>Fix:
n/a



Home | Main Index | Thread Index | Old Index