Skip to content

Commit

Permalink
Updates Ghostscript to 10.02.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Dec 18, 2023
1 parent 278f021 commit 382eb73
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Builder

This repository contains the Dockerfiles to build a few programs paperless
installs in its Docker image.
installs in its Docker image, at newer versions, but built for the underlying
Debian version (Bookworm currently)

Basically, this repository does the upfront work (compiling) at infrequent intervals,
so the main image doesn't ever need to do that.
so the main image doesn't ever need to do that and we can provide some newer
tool versions which (hopefully) include fixes, features and so on.

## QPDF
## Tools

The actions no longer build QPDF, as Debian Bookworm now provides qpdf 11.3.0,
prebuilt, which is new enough.
### QPDF

## psycopg2

This repository no longer builds wheels for psycopg2.
This updates QPDF from 11.3.0 to 11.4.6. Nothing directly uses QPDF, but
pre/post consume might and more up to date seems good.

## jbig2enc

Expand All @@ -22,15 +22,23 @@ perceived) and so it cannot be installed directly.

In this repository, the last released version 0.29 is built as a .deb installer.

## pikepdf
## Ghostscript

This repository no longer builds wheels for pikepdf.
This updates Ghostscript from 10.0.0 to 10.02.1. This includes some fixes and
some security fixes as well. As OCRMyPdf uses Ghostscript pretty extensively,
providing a very recent version helps resolve problems with its outputs

## Building Installers

1. Build an image from the Dockerfile for what you're trying to update.
- `docker build --tag ghostscript:10.02.1 --file ghostscript.dockerfile .`
1. Run the image with a mount and copy out the build files
- Built files means either the .deb or .whl files
- `docker run --rm -it -v "$(pdw):/data qpdf:11.6.1 /bin/bash`
- `docker run --rm -it -v "$(pwd)":/data ghostscript:10.02.1`
- `cp *.deb /data/`
- `exit`
1. Commit any changes to the Dockerfile for the tool
1. Create a tag for the release
- `git tag ghostscript:10.02.1`
1. Upload the built files to a [release](https://github.com/paperless-ngx/builder/releases)
1. Update links in the main [Dockerfile](https://github.com/paperless-ngx/paperless-ngx/blob/dev/Dockerfile)
6 changes: 3 additions & 3 deletions ghostscript.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

FROM debian:bookworm-slim as pre-build

ARG GS_VERSION=10.02.0
ARG GS_VERSION=10.02.1

ARG COMMON_BUILD_PACKAGES="\
debhelper \
Expand All @@ -33,7 +33,7 @@ RUN set -eux \
&& echo "Getting ghostscript source" \
&& echo "deb-src http://deb.debian.org/debian/ trixie main" > /etc/apt/sources.list.d/trixie-src.list \
&& apt-get update --quiet \
&& apt-get source --yes --quiet ghostscript=${GS_VERSION}~dfsg-2/trixie
&& apt-get source --yes --quiet ghostscript=${GS_VERSION}~dfsg-1/trixie

WORKDIR /usr/src/ghostscript-${GS_VERSION}~dfsg

Expand Down Expand Up @@ -75,7 +75,7 @@ RUN set -eux \
&& echo "Beginning amd64" \
&& echo "Install amd64 packages" \
&& apt-get update --quiet \
&& apt-get build-dep --yes ghostscript=${GS_VERSION}~dfsg-2/trixie:amd64 \
&& apt-get build-dep --yes ghostscript=${GS_VERSION}~dfsg-1/trixie:amd64 \
&& apt-get install --yes --quiet --no-install-recommends ${AMD64_BUILD_PACKAGES} \
&& echo "Building amd64" \
&& dpkg-buildpackage --build=binary --unsigned-source --unsigned-changes --post-clean \
Expand Down

0 comments on commit 382eb73

Please sign in to comment.