Skip to content

Conversation

@aelkiss
Copy link
Member

@aelkiss aelkiss commented Dec 1, 2025

  • package (for now) local version of grok
  • install jhove from the distributor

Locally, at least one relevant test is failing with respect to keeping the TIFF artist when compressing to JPEG2000; some other tests related to S3 are also failing but it might be messed up permissions on my end.

TODO:

  • see what (if any) tests fail in github
  • package grok 20.0.4 as a deb

* include hand-built grok (shouldn't merge this, should package as deb
  or at least upload to hathitrust.github.io; probably also need ARM
  version)

* don't swallow errors from grok (for now)

* update arguments for grok - SOP and EPH were spelled out and shouldn't
  have been
@aelkiss
Copy link
Member Author

aelkiss commented Dec 1, 2025

This worked for building grok locally:

docker run -v ./grok:/tmp/grok -ti --rm debian:trixie /bin/bash

apt update && apt install wget cmake build-essential cmake-curses-gui exiftool libpsl-dev libjpeg62-turbo-dev pkg-config libcurl4-openssl-dev libtiff-dev libpng-dev liblcms2-dev libcli11-dev
wget https://github.com/GrokImageCompression/grok/archive/refs/tags/v20.0.4.zip

tar zxvf v20.0.4.zip
cd grok-20.0.4

cmake -E make_directory $PWD/build
cmake -S $PWD -B $PWD/build  -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DGRK_ENABLE_LIBCURL=ON -DGRK_BUILD_JPEG=OFF -DGRK_BUILD_LCMS2=OFF -DGRK_BUILD_LIBCURL=OFF -D GRK_BUILD_LIBTIFF=OFF -DBUILD_TESTING=OFF

cmake --build $PWD/build --config Release -j 8

. /etc/os-release
cmake -S $PWD -B $PWD/build -Wno-dev -D CPACK_GENERATOR:STRING=ZIP -D CPACK_PACKAGE_FILE_NAME:STRING=grok-$ID-$VERSION_CODENAME
cmake --build $PWD/build --config RELEASE --target package

this outputs a zip called grok-debian-trixie.zip

this is probably a good starting point for deb packaging

@aelkiss
Copy link
Member Author

aelkiss commented Dec 1, 2025

These Debian build scripts might also be useful in conjunction with above: https://github.com/GrokImageCompression/grok/tree/debian/master/debian

(note these are not in the current main branch)

@aelkiss aelkiss marked this pull request as draft December 1, 2025 19:20
@aelkiss
Copy link
Member Author

aelkiss commented Dec 1, 2025

It looks like the S3-related tests also fail in github, so that's also something we'll need to look at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants