Download raw body.
[new] devel/scnlib
On Mon, Apr 20, 2026 at 08:15:28AM +0000, Johannes Thyssen Tishman wrote:
> 2026-04-17T08:12:01+0200 Rafael Sadowski <rafael@sizeofvoid.org>:
> > On Sat Apr 04, 2026 at 02:40:43PM +0000, Johannes Thyssen Tishman wrote:
> > > Please find attached a port for devel/scnlib.
> > >
> > > COMMENT:
> > > scanf for modern C++
> > >
> > > DESCR:
> > > scnlib is a modern C++ library for replacing scanf and std::istream.
> > > This library attempts to move us ever so much closer to replacing
> > > iostreams and C stdio altogether. It's faster than iostream, and
> > > type-safe, unlike scanf. Think {fmt} or C++20 std::format, but in the
> > > other direction.
> > >
> > > This port is needed to update graphics/vtk to version 9.6.0. Most tests
> > > are passing (96% tests passed, 1 tests failed out of 25). I've
> > > reported[1] the set of tests that failed upstream.
> > >
> > > [1] https://github.com/eliaskosunen/scnlib/issues/155
> > >
> > > Feedback? OKs? Thank you.
> >
> > OK (I'm in favour of post 7.9!) but ...
>
> Hi rsadowski. Thanks for reviewing these ports and sorry for the late
> reply. Attached a tarball of the port.
>
> ...
>
> > > +COMPILER = base-clang ports-gcc
> >
> > why COMPILER?
>
> IIRC, to override the default of 'base-clang base-gcc', as I believe
> base-gcc is never used for cmake ports, right?
I don't know if that's true in general but this particular port fails
to configure with the compiler line removed (see further down):
-- Compiler frontend not gcc or clang -- build failure tests don't check the compiler output
-- Configuring incomplete, errors occurred!
In general, essentially everything c++ wants to be compiled with
ports-gcc on base-gcc architectures, unless it's on the path to
lang/gcc/15.
So please add the compiler line back before import. The port then builds
on sparc64 and only fails one test, which I assume is the same failure
as the one you had.
96% tests passed, 1 tests failed out of 25
Label Time Summary:
build-failure = 50.32 sec*proc (22 tests)
Total Test time (real) = 51.15 sec
The following tests FAILED:
2 - scn_impl_tests (Failed)
> However, now that you
> mention it, I comented out the line and ran 'make show=COMPILER' to see
> that it's already correctly set to 'base-clang ports-gcc'. The attached
> tarball drops it.
While COMPILER is already set for whatever reason, COMPILER_LANGS
defaults to c without setting it in the Makefile, and thus COMPILER_LINKS
links c++ to /usr/bin/c++ and doesn't provide g++, one of which will
likely be the source of the configure problem, I suppose.
[new] devel/scnlib