1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/comms/linrad/pkg-plist
Diane Bruce 9a22bc1933 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
2015-05-01 16:25:48 +00:00

17 lines
399 B
Plaintext

bin/linrad
bin/xlinrad
%%DATADIR%%/errors.lir
%%DATADIR%%/help.lir
%%DOCSDIR%%/z_APM.txt
%%DOCSDIR%%/z_BUFFERS.txt
%%DOCSDIR%%/z_CALIBRATE.txt
%%DOCSDIR%%/z_COPYRIGHT.txt
%%DOCSDIR%%/z_GIFINFO.txt
%%DOCSDIR%%/z_MORSE_DECODING.txt
%%DOCSDIR%%/z_MOUSE.txt
%%DOCSDIR%%/z_NETWORK.txt
%%DOCSDIR%%/z_PARALLEL_PORT.txt
%%DOCSDIR%%/z_SETTINGS.txt
%%DOCSDIR%%/z_USERS_EXTRA.txt
%%DOCSDIR%%/z_USERS_HWARE.txt