Revision history for dh-bazel

0.10.1: 2026-11-23
    * Debian packaging updates for the initial upload.  No functional
      changes.

0.10.0: 2026-11-21
    * dh-bazel: automatically use complete bzlmod modules already available
      on the system when a bazel_dep() is not resolved by the user,
      DH_BAZEL_OVERRIDE_MODULES or DH_BAZEL_PKGCONF_MODULES.  This covers
      modules installed by Debian packages under
      /usr/share/bazel/{tools,rules}/ (e.g. bazel_skylib provided by the
      bazel-skylib package) and complete modules bundled with dh-bazel under
      /usr/share/dh-bazel/override_module/<name>/ (e.g. zlib, zstd).  The
      module name is read from the installed MODULE.bazel, so a matching
      bazel_dep() no longer has to be listed in DH_BAZEL_OVERRIDE_MODULES.
      Modules installed by other Debian packages win on a name clash.  Set
      DH_BAZEL_DISABLE_SYSTEM_MODULES=1 to disable this lookup.
    * dh-bazel: support --sourcedirectory= when reading MODULE.bazel and
      detecting bazel_dep().
    * dh-bazel: allow an empty root package in pkgconf.yml target labels
      (e.g. DH_BAZEL_PKGCONF_MODULES=libxml2={:xml2}) and generate adapters
      for root-package targets.  The libxml2 adapter now uses pkgconf.yml.
    * dh-bazel: DH_BAZEL_DISABLE_BUILD_DEPENDS_FALLBACK=1 no longer aborts
      when the automatic module lookup is still enabled; only disabling
      every fallback is rejected.
    * debian: add bazel-buildtools (which provides buildozer) to Depends,
      and install the libpng and libxml2 override modules.

0.9.0: 2026-11-07
    * dh-bazel: add rules_dh_bazel for non-standard /usr/include.
    * dh-bazel: generate MODULE.bazel and BUILD.bazel from a bundled
      pkgconf.yml (e.g. /usr/share/dh-bazel/override_module/<name>/pkgconf.yml)
      during dh_auto_configure instead of hand-written BUILD.bazel.  Each
      target becomes a dh_bazel_system_cc_library resolved via pkgconf.
      Add libyaml-tiny-perl dependency.
    * dh-bazel: DH_BAZEL_PKGCONF_MODULES can now select targets of a
      bundled pkgconf.yml by label, e.g.
      DH_BAZEL_PKGCONF_MODULES=glib={glib:glib,gio:gio_unix}.  Each label
      is looked up in <module>/pkgconf.yml and resolved via pkgconf to
      generate MODULE.bazel and BUILD.bazel with only those targets.
    * dh-bazel: adapters generated from pkgconf.yml reproduce the upstream
      Bazel package layout: each package in the target label gets its own
      BUILD.bazel subdirectory (e.g. glib/BUILD.bazel, gio/BUILD.bazel),
      so labels such as @glib//glib:glib resolve.
    * dh-bazel: the MODULE.bazel generated for an adapter now declares
      bazel_dep(name = "rules_dh_bazel", version = "system"), required for
      the generated BUILD.bazel's load("@rules_dh_bazel//:system_library.bzl")
      to resolve in Bzlmod.

0.8.0 2026-10-17
    * Renamed from DH_BAZEL_OVERRIDE_MODULE, DH_BAZEL_PKGCONF_MODULE to
      DH_BAZEL_OVERRIDE_MODULES, DH_BAZEL_PKGCONF_MODULES.
    * Add docs/env_vars.md documentation.
    * examples: add lz4, zstd

0.7.0 2026-09-20
    * Keep user-specified options (--override_module= and command options)
      on the command line and exclude them from dh-bazel.bazelrc, so they
      win over the default/auto-generated entries there.
    * Tolerate surrounding whitespace in the multi-arch output of
      pkgconf --path when mapping the resolved .pc back to its -dev package.
    * Add test cases.

0.6.0  2026-09-20
    * Simplify command line arguments with dh-bazel.bazelrc
    * Reduce verbose messages

0.5.0  2026-09-19
    * Keep all build state under debian/.dh-bazel/{build,modules} and stop
      writing into debian/.debhelper.

0.4.0  2026-09-19
    * Add support DH_BAZEL_PKGCONF_MODULE to generate dummy modules from
      pkg-config modules.
    * Record the -dev package that owns the resolved .pc so that the
      Build-Depends: fallback ignores such packages (no double modules).
    * Fix a bug that no error when missing target.

0.3.0  2026-09-18
    * Add support DH_BAZEL_OVERRIDE_MODULE
    * Add pkgconf fallback which resolves from Build-Depends:

0.2.0  2026-09-17
    * Apply GPL2+ license
    * Add support for dummy modules.

0.1.0  2026-09-16
    * Initial release.
