Page MenuHomeFreeBSD

Upgrade lang/racket to 6.5
ClosedPublic

Authored by olgeni on Jun 27 2016, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 4 2024, 4:36 PM
Unknown Object (File)
Apr 4 2024, 4:36 PM
Unknown Object (File)
Feb 1 2024, 11:36 PM
Unknown Object (File)
Jan 10 2024, 6:57 PM
Unknown Object (File)
Jan 10 2024, 3:31 AM
Unknown Object (File)
Dec 28 2023, 6:32 PM
Unknown Object (File)
Dec 23 2023, 8:00 AM
Unknown Object (File)
Dec 12 2023, 11:24 AM
Subscribers

Details

Summary

Fix staging issues (see PR 200101) and work around libunique bringing in GTK2 even when GTK3 is selected.

However, if you type any function into the IDE (like "(print ") you will get this exception on each keypress:

make-fsemaphore: contract violation
  expected: exact-nonnegative-integer?
  given: '(def ('#%kernel print))
  context...:
   /usr/local/share/racket/pkgs/typed-racket-lib/typed-racket/utils/any-wrap.rkt:16:0: base-val?
   /usr/local/share/racket/pkgs/typed-racket-lib/typed-racket/utils/any-wrap.rkt:106:2: any-wrap/traverse
   /usr/local/share/racket/collects/racket/contract/combinator.rkt:178:4
   /usr/local/share/racket/collects/racket/contract/private/arrow-higher-order.rkt:373:33
   /usr/local/share/racket/collects/racket/contract/private/guts.rkt:638:8
   /usr/local/share/racket/collects/racket/contract/private/arrow-val-first.rkt:400:5: mk-call
   /usr/local/share/racket/pkgs/drracket/drracket/private/syncheck/blueboxes-gui.rkt:480:4: compute-tag+rng method in ...ck/blueboxes-gui.rkt:176:2
   /usr/local/share/racket/pkgs/gui-lib/framework/private/coroutine.rkt:47:20
   /usr/local/share/racket/pkgs/gui-lib/framework/private/coroutine.rkt:56:0: coroutine-run
   /usr/local/share/racket/collects/racket/contract/private/arrow-val-first.rkt:357:18
   /usr/local/share/racket/pkgs/drracket/drracket/private/syncheck/blueboxes-gui.rkt:446:4: update-the-strs method in ...ck/blueboxes-gui.rkt:176:2
   /usr/local/share/racket/pkgs/gui-lib/framework/private/logging-timer.rkt:41:0: log-timeline/proc
   /usr/local/share/racket/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38
   /usr/local/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:454:6
   /usr/local/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:505:32
   /usr/local/share/racket/pkgs/gui-lib/mred/private/wx/common/queue.rkt:653:3

This should be the last pending issue before the 6.5/staging update.

Test Plan

This small test program should return #f in the IDE.

#lang racket
(require typed-racket/utils/any-wrap rackunit)
(require/expose typed-racket/utils/any-wrap [base-val?])
(base-val? '(def))

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

olgeni retitled this revision from to Upgrade lang/racket to 6.5.
olgeni updated this object.
olgeni edited the test plan for this revision. (Show Details)
olgeni added reviewers: martin_sugioarto.com, brnrd.
olgeni set the repository for this revision to rP FreeBSD ports repository.

I got this... made it work by using --enable-futures. Update will follow.

portlint gives me this warning:

WARN: /usr/home/ports/lang/racket/files/patch-.._share_pkgs_gui-lib_mred_private_wx_gtk_queue.rkt: patch was not generated using ``make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.

stage-qa looks ok.

drracket starts I can type some tutorial commands like (circle 10 "solid" "red") and they give me correct results. I don't see any warnings or errors caused by the IDE.

Also, the patch file looks like you should better set:

PATCH_​WRKSRC= ${WRKDIR}/racket-${PORTVERSION}

And remove the ../ from the patch (and regenerate it with make makepatch)

files/patch-.._share_pkgs_gui-lib_mred_private_wx_gtk_queue.rkt
2 ↗(On Diff #17923)

Never put $FreeBSD$ in patch files.

olgeni edited the test plan for this revision. (Show Details)
olgeni edited edge metadata.

This should be the final version, with IDE issues fixed (by using --enable-futures).

martin_sugioarto.com edited edge metadata.

I tested it, looks fine.

This revision is now accepted and ready to land.Jun 29 2016, 9:50 PM