/[ports]
ViewVC logotype

Revision 385126


Jump to revision: Previous Next
Author: db
Date: Fri May 1 16:25:48 2015 UTC (9 years, 2 months ago)
Changed paths: 15
Log Message:
Fix linrad on latest gcc

I checked linrad upstream, and they still haven't fixed these two bugs.  I am surprised they haven't been reported yet.  Without these fixes, linrad cannot be built with gcc5.

the menu.c patch simply reverses the order of the condition.  One must check the bounds constraint first!  It's a pretty dumb mistake but I've seen this kind before.

The second one fails because -Werror is set.  This took me a while because I couldn't figure out the relationship between ADCHANS and rxchan.  In any case, setting 4 locations per channel did indeed allow the array to be big enough.  (at first I thought the loop was running too high, but I finally determined the array was too small).

These were found on DragonFly that uses gcc5.

This patch has not been tested on FreeBSD but I can't how it could possibly fail.

It would be good if the ham@ maintainer reports the issue upstream.

Updated patch files using make makepatch

PR:			ports/199737
Submitted by:		marino


Changed paths

Path Details
Directoryhead/comms/linrad/Makefile modified , text changed
Directoryhead/comms/linrad/files/patch-Makefile.in modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-buf.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-caliq.c added
Directoryhead/comms/linrad/files/patch-configure modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-elektor.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-help.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-libfind1.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-libfind2.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-loadusb.h modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-lxsys.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-menu.c added
Directoryhead/comms/linrad/files/patch-users.c modified , text changed , props changed
Directoryhead/comms/linrad/files/patch-wse_sdrxx.c modified , text changed , props changed
Directoryhead/comms/linrad/pkg-plist modified , text changed , props changed

  ViewVC Help
Powered by ViewVC 1.1.27