This is a loadable extension to Tcl providing commands for data
conversion, message digests, zlib based compression, error-correction,
channel-based manipulation of binary data. Trf extends the language at
the C-level with so-called ``transformer''-procedures. With the help of
some patches (*) to the core the package is able to intercept all
read/write operations on designated channels, thus giving it the ability
to transform the buffer contents as desired. This allows things like
transparent encryption, compression, charset recoding, etc. Build upon
this framework (and as proof of concept) a collection of tcl-level
commands was implemented.
all: drop support for FreeBSD 13.2 which reached EOL today
Thanks again to jbeich for noticing various things I overlooked.
Reviewed by: acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat,
nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision: https://reviews.freebsd.org/D45141
devel/tcl-trf: increase an insufficiently large buffer
This ancient problem was discovered by gcc12's new -Warray-bounds
implementation. Many thanks.
Raise PORTREVISION :(
devel/tcl-trf: fix fatal compiler warning
Starting with version 15 clang includes the new -Wdeprecated-non-prototype
in -Wall. This warns, when a K&R-style function-definitions follow
ANSI function-declarations. And TCL code has LOTS of K&R definitions...
The warning is poorly worded -- and, in my opinion, outright bogus,
but the ports need to keep building, so I'm using a trick borrowed
from src/share/mk/sys.mk to conditionally disable it.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
The below-mentioned PR identified a problem, which should've been
caught by the test-harness -- but was not, because the harness was
not used correctly (for 10 years).
Provide a new harness and fix the reported problem as well as another
one -- with MD2 digests -- identified by the now-functioning
test-suit.
Bump PORTREVISION...
PR: 237132
Reported by: Vadim Zborovsky
Stop chasing the whims of OpenSSL and use our own -lmd
as the source of various digest-algorithms. Years ago,
when I was undertaking the replacement of the bundled
implementations with those found in the base system, it
seemed like OpenSSL will be more stable... Ha-ha.
Fix the WWW, while I'm here.
PR: 229026
Submitted by: brnrd
Reported by: Package Fallout
Add "tea" argument to USES=tcl to facilitate porting of TEA-based extensions.
Quoting https://tcl.tk/doc/tea:
"The Tcl Extension Architecture, or TEA, by John Ousterhout and others, is a
set of guidelines and techniques for the distribution, configuration,
compilation, and installation of Tcl extensions. TEA also provides a set of
utilities that operate accordingly. Many Tcl extensions leverage the TEA
utilities, which are designed to be easily customizable."
To facilitate the porting of TEA-based extensions, I have added the new "tea"
argument to USES=tcl. This argument prepares the autoconf environment by
setting GNU_CONFIGURE and sets some commonly used CONFIGURE_ARGS. Also, it
tries to figure out the correct extension name, sets TCL_PKG accordingly, and
adds it to PLIST_SUB.
I have modified a few ports to take advantage of this. More will come.
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
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
Automatically switch to using -lmd instead of -lcrypto on 10.x,
where OpenSSL, most tiringly, no longer provides <openssl/md2.h>.
Submitted by: pkg-fallout@
Add ``regression-test'' and ``check'' aliases to the test-target. The
first one is, I'm told, invoked by our build-cluster while building
official packages. The second is common enough out there for some
people to attempt...
Resurrect this port from the Attic based on the new version from the
author. As before, we modify the author's code to use either OpenSSL's
-lcrypto or BSD's -lmd /directly/ instead of compiling the bundled
definitions digests.
We also link with -lz and -lbz2 instead of dlopen-ing them at run-time.
While trying to upgrade devel/tcllib several test failures were detected
in the RIPEMD128 implementation.
Turns out, the problem was fixed a few months ago by the TRF author in CVS.
This commit adds a patch and bumps portrevision.
Although the same problem existed in the TRF's RIPEMD160 implementation,
it did not affect this port, because it uses the OpenSSL's (or -lmd's)
implementations of all digests -- except those, which are considered
obsolete and no longer shipped. Like rmd128.
Thanks to: Denis Shaposhnikov
Don't compile haval.1996/haval.c separately, but as part of the top
haval.c (as in vendor's code). This works around weirdness in vendor's
endianness-determining pre-processor code and unbreaks sparc64. Much
rejoicing...
Add a patch ensuring uint32_t is used, where a 32-bit unsigned
integer is implied. This fixes RIPEMD128 on Sparc64 and AMD64, as
well as HAVAL on AMD64. HAVAL on Sparc64 remains broken due,
apparently, to an endiannes issue, which, for now, escapes my
understanding.
Unbreak on amd64.
Retreat to using OpenSSL's message digest routines instead of -lmd. They
are sometimes faster and never slower. Using -lmd is still possible by
building with ``TRF_USE_MD=yes''. Bump PORTREVISION.
Use the RIPEMD160* routines from -lcrypto (or -lmd) instead of our own
-- just like for md[25] and sha*. Neither -lcrypto nor -lmd provide
RIPEMD128 (not strong enough?), so stay with our own implementation.
sparc64/amd64 are not expected to work yet...
Explicitly include <sys/types.h> and <unistd.h> to fix the breakage on
recent -current. Fix warnings -- on x86, at least, the package now
builds with ``-Wall -Werror''.
Unbreak. Builds, installs fine on fresh current. Disable the parallel
build, as the only thing, that could've prevented it from properly
installing in the past.
Parametrize the version number to unbreak packaging -- we switched
the default to Tcl-8.4, but the version in pkg-plist was hardcoded
as 8.3
Prodded by: kris
Make work with the new bsd.port.mk. The benefit of the magick, that
used to work to figure out the name of the installed library automaticly
is, probably, not worth the disadvantages USE_SUBMAKE would bring. Just
hardcode the SHLIB_NAME and figure the SHLIB_LINK from it.
While I'm here, add tcl-memchan to the BUILD_DEPEND, so the automatic
self-testing is done every time this package is built
Submitted by: bento
Resolve a few more symbols at compile/link time, rather than at
run-time. This fixes the bz2 commands. We link against -lmd, so use
<md2.h> and <md5.h>, instead of <openssl/md[25].h> (why do we even
install those separately?). Bump up portrevision.