Bug 200498 - devel/critcl needs an MD5-implementation
Summary: devel/critcl needs an MD5-implementation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-tcltk (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-28 18:14 UTC by Mikhail Teterin
Modified: 2015-06-01 02:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (tcltk)


Attachments
Add dependency on devel/tcl-trf (616 bytes, patch)
2015-05-28 18:14 UTC, Mikhail Teterin
no flags Details | Diff
Remove memchan-dependency from tcl-trf (805 bytes, patch)
2015-05-30 14:17 UTC, Mikhail Teterin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2015-05-28 18:14:38 UTC
Created attachment 157230 [details]
Add dependency on devel/tcl-trf

The critcl-executable needs a functional MD5-implementation -- and searches for different ones at startup.

Its first (and the most logical) choice is what's provided by the Trf-package installed by the devel/tcl-trf port.

The attached patch adds the RUN-dependency. It also adds the license-terms (copied from tcllib) and bumps PORTREVISION.

Note, that at this time, the upstream has released a new version 3.1.14, but, unfortunately, it has numerous test-failures and we may be better off waiting for those to be addressed first.

Note, that the missing MD5 implementation currently keeps the official builds of tcllib broken -- because tcllib now uses critcl. Please, commit the fix or allow me to. Thank you.
Comment 1 Pietro Cerutti freebsd_committer freebsd_triage 2015-05-30 11:45:53 UTC
Please go ahead.

If it was me, I'd make the compiled versions of the modules optional in tcllib, but I'll leave it up to you to decide.

Thank you!
Comment 2 Pietro Cerutti freebsd_committer freebsd_triage 2015-05-30 12:15:25 UTC
Please beware also that tcl-trf requires tcl-memchan, which in turn depends on tcllib to build documentation. By adding a dependency on tcl-trf to tcllib you would introduce a circular dependency. Not sure how you'll want to sort this. At this point, I'd back out the compiled part of tcllib and make it buildable again, for the time being.
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2015-05-30 12:17:42 UTC
Maybe splitting the tcllib port into a pure-tcl (as it was) and a compiled version would help in managing these dependencies.
Comment 4 Mikhail Teterin freebsd_committer freebsd_triage 2015-05-30 14:17:35 UTC
Created attachment 157278 [details]
Remove memchan-dependency from tcl-trf

(In reply to Pietro Cerutti from comment #2)
> Please beware also that tcl-trf requires tcl-memchan

Excellent point... However, Trf only needs Memchan to run tests, so I can remove the dependency and check for memchan's presence in the test-target and stop automatically invoking the tests after build, leaving it up to the user.

What do you think?
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-05-30 17:03:02 UTC
A commit references this bug:

Author: mi
Date: Sat May 30 17:02:43 UTC 2015
New revision: 387973
URL: https://svnweb.freebsd.org/changeset/ports/387973

Log:
  Do not automatically run tests post-build.

  Remove dependency on memchan -- the package is only needed for testing. This
  will avoid the tcllib->critcil->tcl-trf->tcl-memchan->tcllib circular dependency
  discussed in

  PR:		200498

Changes:
  head/devel/tcl-trf/Makefile
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-06-01 01:48:01 UTC
A commit references this bug:

Author: mi
Date: Mon Jun  1 01:47:58 UTC 2015
New revision: 388198
URL: https://svnweb.freebsd.org/changeset/ports/388198

Log:
  Critcl needs an MD5-implementation at runtime and starts its search with the Trf,
  so make Trf the run-time dependency.

  PR:		200498
  Approved by:	gahr (blanket)

Changes:
  head/devel/critcl/Makefile
Comment 7 Mikhail Teterin freebsd_committer freebsd_triage 2015-06-01 02:39:07 UTC
(In reply to Pietro Cerutti from comment #3)
> Maybe splitting the tcllib port into a pure-tcl (as it was) and
> a compiled version would help in managing these dependencies.

This is not about tcllib -- critcl needs an MD5-implementation to be usable, tcllib or no.

Trf provides the best MD5-implementation for Tcl (compiled) and is the first one, that critcl tries to find...