Skip to content

PasBuild v1.11.0 has been released.

Latest

Choose a tag to compare

@graemeg graemeg released this 29 Nov 00:41
· 1 commit to master since this release

[ANN] PasBuild v1.11.0 Release Notes

Hi everyone,

PasBuild v1.11.0 has been released.

PasBuild is a Maven-inspired build automation tool for Pascal
projects. It provides convention-based project structure,
dependency management, multi-module builds, resource filtering,
and packaging.

Homepage:
https://github.com/graemeg/pasbuild
(binaries available under the Releases link)

Quick Start Guide:
https://github.com/graemeg/PasBuild/blob/master/docs/quick-start-guide.adoc

Overview For This Release

PasBuild is now written in Blaise, and built with the Blaise 0.16.0
compiler. It still builds your projects with either compiler, Free
Pascal or Blaise, exactly as before.

A project can now say which compilers it builds with, in a new
section of project.xml. PasBuild then picks that
compiler by itself, so '--compiler' is rarely needed, and a package
published to a registry carries the declaration, so a consumer using
the other compiler is told at once. 'pasbuild init' asks which
compiler a new project targets and writes the matching sources and
test runner.

There are prebuilt binaries for four platforms this time: Linux,
FreeBSD and Windows on x86_64, and macOS on Apple silicon.

New Features

A Project Declares Its Compilers

project.xml may list the compilers a project builds with, each with
an optional minimum version:

<compilers>
  <compiler>
    <name>blaise</name>
    <minimumVersion>0.16.0</minimumVersion>
  </compiler>
</compilers>

'compile' stops with a clear message when the active compiler is not
listed or is too old. 'publish' copies the list into the registry
manifest, and a module inherits its aggregator's list.

The Declaration Chooses The Compiler

With present, PasBuild uses the declared compiler: the
path given for it in ~/.pasbuild/settings.xml, else the one on the
PATH. '--compiler ' still overrides it for one build, and
PASBUILD_COMPILER applies when it names a declared compiler. A
project without behaves as before (PASBUILD_COMPILER,
else FPC).

<settings>
  <compilers>
    <compiler>
      <name>blaise</name>
      <path>~/blaise/blaise</path>
    </compiler>
  </compilers>
</settings>

A path in settings.xml may start with '~'.

'pasbuild init' Targets A Compiler

'pasbuild init' asks which compiler the project targets and its
minimum version, writes , and generates sources and a
test runner that compiler accepts: FPC gets the objfpc mode switch
and an FPCUnit runner, Blaise gets a blaise.testing runner. A new
library project gets a sample unit.

Blaise Debug And Release Profiles

Profile now reach the Blaise compiler (as --define), and
Blaise long options in (--debug, --debug-opdf, ...)
are passed through, so a Blaise project can have the same debug and
release profiles as an FPC one.

Changes

'pasbuild install' Installs Only Libraries

An application's units are internal to it, so installing them only
filled the local repository. A standalone install of an application
now logs a warning and does nothing; a multi-module build reports
application modules as SKIPPED. A library's module dependency on an
application sibling is no longer recorded in its metadata.

OpenSSL Is Needed Only For A Registry

PasBuild loads OpenSSL 3 only when it contacts a package registry,
so every other goal runs on a machine without it. When it is missing,
the error names the libraries tried and how to install OpenSSL 3 on
that system.

Bug Fixes

  • A project that merely sits inside an aggregator's directory (an
    example, a test fixture) is built on its own, instead of PasBuild
    switching to the aggregator, unless the aggregator lists it.
  • 'resolve' lists the dependency source directories a Blaise build
    compiles from.
  • On macOS and the BSDs, the remote dependency builder finds the
    pasbuild executable through the PATH; every remote fetch failed at
    the compile step when pasbuild was started by name.
  • When FPC could not be run, a shell's "not found" text became the
    target name in repository paths; the host's names are used instead.
  • On Windows, an aggregator's children are found whichever path
    separator they are written with.
  • A registry package whose compiler minimum is not met says why: the
    compiler is too old, or could not be run to report its version.
  • A source directory listed under several conditions (fpGUI lists
    corelib/x11 for LINUX and for FREEBSD) is used when any of them
    holds; on FreeBSD the include path missed it, so fpgui-framework
    did not build there.
  • 'pasbuild init' no longer writes the element, which
    PasBuild has ignored since v1.9.0.

Upgrading

Blaise libraries in the local repository are stored per compiler
version. After upgrading from a Blaise pre-release to 0.16.0, run
'pasbuild install' in each Blaise library once; until then a project
that depends on one reports, for example:

Dependency "bui-widgets:0.1.0-SNAPSHOT" not found for target
"blaise-aarch64-darwin-0.16.0". Available targets:
blaise-aarch64-darwin-0.16.0-SNAPSHOT.

Building PasBuild itself from source now needs Blaise 0.16.0 or
later (see BOOTSTRAP.txt); FPC can no longer build it.

Binaries

pasbuild-1.11.0-x86_64-linux.zip Linux x86_64
pasbuild-1.11.0-x86_64-freebsd.zip FreeBSD x86_64 (14 or later)
pasbuild-1.11.0-aarch64-darwin.zip macOS arm64 (Apple silicon)
pasbuild-1.11.0-x86_64-win64.zip Windows x86_64

Each archive holds the pasbuild executable, LICENSE and README.adoc.
The macOS binary is ad-hoc signed, not notarised; if macOS refuses
to run a copy downloaded with a browser, clear the quarantine flag
once with: xattr -d com.apple.quarantine pasbuild

On other platforms, build PasBuild from source with Blaise 0.16.0
or later (see BOOTSTRAP.txt).

Test Suite

Test count: 553 (up from 505 in v1.10.1)

PasBuild is free software released under the BSD-3-Clause
license.

Regards,

  • Graeme -