From 579ff5401be9dec3c760caf19d5cf98113c07b67 Mon Sep 17 00:00:00 2001 From: Dino Maric Date: Sun, 12 Jul 2026 15:06:29 +0200 Subject: [PATCH 1/2] Bump plutobook to 0.18.0 version --- .github/workflows/ci.yml | 12 ++++++------ README.md | 2 +- rakelib/package_darwin.rake | 2 +- rakelib/package_linux.rake | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91dc2b4..74ad6f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,14 +37,14 @@ jobs: id: plutobook-cache with: path: tmp/plutobook-ci-install - key: plutobook-v0.17.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} + key: plutobook-v0.18.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} restore-keys: | - plutobook-v0.17.0-${{ runner.os }}- + plutobook-v0.18.0-${{ runner.os }}- - name: Build PlutoBook if: steps.plutobook-cache.outputs.cache-hit != 'true' run: | - git clone --depth 1 --branch v0.17.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src + git clone --depth 1 --branch v0.18.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src meson setup tmp/plutobook-ci-build tmp/plutobook-ci-src \ --prefix="$PWD/tmp/plutobook-ci-install" \ --libdir=lib \ @@ -129,14 +129,14 @@ jobs: id: plutobook-cache-macos with: path: tmp/plutobook-ci-install - key: plutobook-v0.17.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} + key: plutobook-v0.18.0-${{ runner.os }}-${{ hashFiles('.github/workflows/ci.yml') }} restore-keys: | - plutobook-v0.17.0-${{ runner.os }}- + plutobook-v0.18.0-${{ runner.os }}- - name: Build PlutoBook if: steps.plutobook-cache-macos.outputs.cache-hit != 'true' run: | - git clone --depth 1 --branch v0.17.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src + git clone --depth 1 --branch v0.18.0 https://github.com/plutoprint/plutobook.git tmp/plutobook-ci-src meson setup tmp/plutobook-ci-build tmp/plutobook-ci-src \ --prefix="$PWD/tmp/plutobook-ci-install" \ --libdir=lib \ diff --git a/README.md b/README.md index 98f822c..6cb99ed 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ Build an Apple Silicon macOS platform gem with a vendored PlutoBook library: bundle exec rake package:darwin_arm64 ``` -These tasks check out PlutoBook `v0.17.0`, build it into `lib/page_print/vendor/`, and write a platform gem to `pkg/`. Platform gems compile the Ruby extension during gem install to avoid tying the gem to the build machine's Ruby version. +These tasks check out PlutoBook `v0.18.0`, build it into `lib/page_print/vendor/`, and write a platform gem to `pkg/`. Platform gems compile the Ruby extension during gem install to avoid tying the gem to the build machine's Ruby version. Native gems bundle PlutoBook and its non-system shared library dependencies. Optional PlutoBook features for curl, TurboJPEG, and WebP are disabled to keep the bundled dependency set smaller. diff --git a/rakelib/package_darwin.rake b/rakelib/package_darwin.rake index 63e9465..47770fe 100644 --- a/rakelib/package_darwin.rake +++ b/rakelib/package_darwin.rake @@ -3,7 +3,7 @@ require "bundler" require "rbconfig" require "shellwords" -PAGE_PRINT_PLUTOBOOK_VERSION = "v0.17.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION) +PAGE_PRINT_PLUTOBOOK_VERSION = "v0.18.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION) PAGE_PRINT_DARWIN_PLATFORM = "arm64-darwin" PAGE_PRINT_DARWIN_SYSTEM_PREFIXES = [ "/System/Library/", diff --git a/rakelib/package_linux.rake b/rakelib/package_linux.rake index 31b2b8d..abeb160 100644 --- a/rakelib/package_linux.rake +++ b/rakelib/package_linux.rake @@ -4,7 +4,7 @@ require "rbconfig" require "rubygems/package_task" require "shellwords" -PAGE_PRINT_PLUTOBOOK_VERSION = "v0.17.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION) +PAGE_PRINT_PLUTOBOOK_VERSION = "v0.18.0" unless defined?(PAGE_PRINT_PLUTOBOOK_VERSION) PAGE_PRINT_LINUX_PLATFORM = "x86_64-linux" PAGE_PRINT_LINUX_SYSTEM_LIBRARIES = %w[ ld-linux From 2c6731cbc9efc31db4422f44b5ea57769ce49466 Mon Sep 17 00:00:00 2001 From: Dino Maric Date: Sun, 12 Jul 2026 15:42:49 +0200 Subject: [PATCH 2/2] Fix for linux --- .github/workflows/ci.yml | 1 + rakelib/package_linux.rake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ad6f6..a4cfc7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,7 @@ jobs: --prefix="$PWD/tmp/plutobook-ci-install" \ --libdir=lib \ --buildtype=release \ + -Dcpp_args="['-include', 'memory_resource']" \ --force-fallback-for=harfbuzz \ -Dcurl=disabled \ -Dturbojpeg=disabled \ diff --git a/rakelib/package_linux.rake b/rakelib/package_linux.rake index abeb160..5278db4 100644 --- a/rakelib/package_linux.rake +++ b/rakelib/package_linux.rake @@ -38,7 +38,7 @@ namespace :package do FileUtils.mkdir_p(File.join(root, "pkg")) sh "git clone --depth 1 --branch #{PAGE_PRINT_PLUTOBOOK_VERSION.shellescape} https://github.com/plutoprint/plutobook.git #{plutobook_source_dir.shellescape}" - sh "meson setup #{plutobook_build_dir.shellescape} #{plutobook_source_dir.shellescape} --prefix=#{plutobook_install_dir.shellescape} --libdir=lib --buildtype=release --force-fallback-for=harfbuzz -Dcurl=disabled -Dturbojpeg=disabled -Dwebp=disabled -Dtools=disabled -Dtests=disabled -Dexamples=disabled" + sh "meson setup #{plutobook_build_dir.shellescape} #{plutobook_source_dir.shellescape} --prefix=#{plutobook_install_dir.shellescape} --libdir=lib --buildtype=release -Dcpp_args=\"['-include', 'memory_resource']\" --force-fallback-for=harfbuzz -Dcurl=disabled -Dturbojpeg=disabled -Dwebp=disabled -Dtools=disabled -Dtests=disabled -Dexamples=disabled" sh "meson compile -C #{plutobook_build_dir.shellescape}" sh "meson install -C #{plutobook_build_dir.shellescape}"