Opened 3 hours ago

Last modified 2 hours ago

#5962 new enhancement

pkgconf-2.9.90

Reported by: Bruce Dubbs Owned by: lfs-book
Priority: normal Milestone: 13.1
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

Check if this is a development version. The current version is 2.5.1.

Change History (2)

comment:1 by Xi Ruoyao, 2 hours ago

It's a development release for upcoming 3.0.

3.0 will deprecate the autotools support so we'd have to switch to meson. It's a little difficult. What seems working for me:

  1. Move ninja before pkgconf. No changes are needed for instructions.
  2. Build pkgconf with an "uninstalled" meson:
    tar -xf ../meson-1.11.1.tar.gz
    # ch. 07 Python is not built with zlib so the import will fail,
    # but thanks to the dynamic nature of Python we can simply remove it
    # as long as it's not really used at runtime
    sed '/import gzip/d' -i meson-1.11.1/mesonbuild/wrap/wrap.py
    
    mkdir build
    cd build
    python3 ../meson-1.11.1/meson.py setup --prefix=/usr --buildtype=release
    ninja
    ninja install
    mv /usr/share/doc/pkgconf{,-2.5.1}
    

comment:2 by Xi Ruoyao, 2 hours ago

An alternative would be adding zlib into ch. 07 (before Python) instead of hacking meson with the sed.

It would have an additional benefit that we'd be able to extract the sqlite doc zip archive using python3 -m zipfile -e, so we'd no longer need to reformat the archive and upload it to anduin.

Last edited 2 hours ago by Xi Ruoyao (previous) (diff)
Note: See TracTickets for help on using tickets.