devel/gps: Fix compiler error highlight on FreeBSD
On DragonFly, GPS has been properly highlighting code errors during compilation, but on FreeBSD nothing happens. Luckily Rod Kay has been persistent in diagnosing the cause and he finally isolated it to a too-short timeout interval for Expect calls. The timeout period was set to 1 millisecond, the absolute shortest interval possible. While Linux and DF could complete the function call during this time, FreeBSD requires at least 10 milliseconds to do the same. I'm setting the timeout to 100 milliseconds to ensure this functionality works on FreeBSD. Rod and I can't immediately see any negative impact to extending the timeout and we're casually pinging Adacore to understand the orignal 1-ms value. PR: 202317
This commit is contained in:
parent
26b2226dce
commit
6c17b96d22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418247
2 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= gps
|
||||
PORTVERSION= 2016
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://downloads.dragonlace.net/src/
|
||||
DISTNAME= gps-gpl-${PORTVERSION}-src
|
||||
|
|
11
devel/gps/files/patch-kernel_src_gps-kernel-timeout.adb
Normal file
11
devel/gps/files/patch-kernel_src_gps-kernel-timeout.adb
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- kernel/src/gps-kernel-timeout.adb.orig 2016-05-16 09:45:57 UTC
|
||||
+++ kernel/src/gps-kernel-timeout.adb
|
||||
@@ -388,7 +388,7 @@ package body GPS.Kernel.Timeout is
|
||||
Fd := Data.D.Descriptor;
|
||||
if Fd /= null then
|
||||
loop
|
||||
- Expect (Fd.all, Result, Data.Expect_Regexp.all, Timeout => 1);
|
||||
+ Expect (Fd.all, Result, Data.Expect_Regexp.all, Timeout => 100);
|
||||
|
||||
if Result /= Expect_Timeout then
|
||||
-- Received something. Cancel timeout
|
Loading…
Reference in a new issue