Aclocal version in GNOME 40 Sdk is too new to build libraw?

I’m trying to build libraw 0.20.2 using org.gnome.Sdk//40, but I get the following error:

config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /run/build/libraw/missing aclocal-1.15 -I m4
/run/build/libraw/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [Makefile:653: aclocal.m4] Error 127
Error: module libraw: Child process exited with code 2

The Sdk has aclocal-1.16.

you should regenerate the configure files.

Yes, I saw other apps using autoreconf to build libraw and I copied their snippet, but it didn’t work for me. Here’s an example from PhotoQt.
I guess that the autoreconf shell command is supposed to be run before the build, but on my system it’s not.

I have to use the simple buildsystem and list all the commands in the right order. This works:

- name: libraw
    buildsystem: simple
    config-opts:
      - --disable-examples
      - --disable-jasper
      - --disable-static
      - --enable-jpeg
      - --enable-lcms
      - --enable-openmp
    build-commands:
      - autoreconf --install --force
      - ./configure --prefix=/app
      - make
      - make install
    sources:
      - type: archive
        url: https://www.libraw.org/data/LibRaw-0.20.2.tar.gz
        sha256: dc1b486c2003435733043e4e05273477326e51c3ea554c6864a4eafaff1004a6
    cleanup:
      - /share/doc

This package build it this way

1 Like

PhotoQt builds from git.

Also there is a difference between shell to run commands and script for autogen.sh. Not sure why (haven’t looked further)