ARPA-SIMC / dballe

Fast on-disk database for meteorological observed and forecast data.
Other
19 stars 6 forks source link

fails to build on ubuntu noble (current LTS) #284

Closed simevo closed 6 months ago

simevo commented 6 months ago

steps:

cd `mktemp -d`
git clone https://github.com/ARPA-SIMC/dballe
cd dballe
docker pull ubuntu:noble
docker run --rm -it -v "$PWD:/dballe" -w /dballe ubuntu:noble
apt update && apt install -y pkg-config meson doxygen help2man python3-sphinx python3-breathe libsqlite3-dev libpq-dev default-libmysqlclient-dev libwreport-dev python3-wreport libwreport-doc libxapian-dev libpopt-dev gperf gfortran g++ python3-all-dev python3-numpy python3-docutils
meson setup builddir && cd builddir
meson compile

result:

...
[328/330] Generating doc/built_docs with a custom command
+ WREPORT_DOXYGEN_DIRS=
/usr/share/doc/wreport
/usr/share/doc/libwreport-doc/apidocs/
/usr/share/doc/libwreport-doc/html/doxygen/
/usr/share/doc/libwreport-dev/

+ [ -e /usr/share/doc/wreport/libwreport.doxytags ]
+ [ -e /usr/share/doc/wreport/libwreport.doxytags.gz ]
+ [ -e /usr/share/doc/libwreport-doc/apidocs//libwreport.doxytags ]
+ [ -e /usr/share/doc/libwreport-doc/apidocs//libwreport.doxytags.gz ]
+ [ -e /usr/share/doc/libwreport-doc/html/doxygen//libwreport.doxytags ]
+ [ -e /usr/share/doc/libwreport-doc/html/doxygen//libwreport.doxytags.gz ]
+ [ -e /usr/share/doc/libwreport-dev//libwreport.doxytags ]
+ [ -e /usr/share/doc/libwreport-dev//libwreport.doxytags.gz ]
+ [ ! -e libwreport.doxytags ]
+ echo wreport doxygen tags not found in /usr/share/doc/libwreport-dev/
wreport doxygen tags not found in /usr/share/doc/libwreport-dev/
+ exit 1
FAILED: doc/libdballe.doxytags doc/html 
doc/build-docs
edigiacomo commented 6 months ago

I think it's an issue of the docker container configuration that excludes the files installed in /usr/share/doc:

$ podman run -it ubuntu:noble /bin/bash -c "grep -R /usr/share/doc /etc/dpkg/dpkg.cfg.d/"
/etc/dpkg/dpkg.cfg.d/excludes:path-exclude=/usr/share/doc/*
/etc/dpkg/dpkg.cfg.d/excludes:path-include=/usr/share/doc/*/copyright
/etc/dpkg/dpkg.cfg.d/excludes:path-include=/usr/share/doc/*/changelog.*

Could you try to fix the container configuration and then try again?

simevo commented 6 months ago

that works, I tried:

docker run --rm -it -v "$PWD:/dballe" -w /dballe ubuntu:noble
rm /etc/dpkg/dpkg.cfg.d/excludes
apt update && apt install -y libwreport-doc
ls -l /usr/share/doc/libwreport-dev/libwreport.doxytags.gz

it yields:

-rw-r--r-- 1 root root 30517 Apr  1 04:43 /usr/share/doc/libwreport-dev/libwreport.doxytags.gz

the build then works as well

disabling the doc build also works, just install only what is required for the actual build:

apt update && apt install -y pkg-config meson help2man libsqlite3-dev libpq-dev default-libmysqlclient-dev libwreport-dev python3-wreport libxapian-dev libpopt-dev gperf gfortran g++ python3-all-dev python3-numpy