Skip to content

install_man ignores install_tag from configure_file #15399

@cepelinas9000

Description

@cepelinas9000

Describe the bug
When trying to use install_tag with install_man(configure_file.. it is ignored.

To Reproduce
Minimal toy repository: https://github.com/cepelinas9000/meson-simpleprj

For example there are multiple install files with install_tag set:

  • simplelib.so - xf86-plugin
  • sample.4 - xf86-plugin
  • sample.conf - xf86-plugin
  • simpleprj - xf86-prj

If I performing meson install or ninja install, everything is as expected:

$ ninja install
[4/5] Installing files
Installing simplelib.so to /tmp/p1/lib64
Installing simpleprj to /tmp/p1/bin
Installing /home/as/proj/simpleprj/build/sample.4 to /tmp/p1/share/man/man4
Installing /home/as/proj/simpleprj/sample.conf to /tmp/p1/share/simpleprj

But if I use install with tags, the man file (sample.4) is ignored:

$ meson install --tags xf86-plugin
ninja: Entering directory `/home/as/proj/simpleprj/build'
[4/4] Linking target simpleprj
Installing simplelib.so to /tmp/p1/lib64
Installing /home/as/proj/simpleprj/sample.conf to /tmp/p1/share/simpleprj

Expected behavior
meson install --tags xf86-plugins or similar install tagged man files, for example:

$ meson install --tags xf86-plugin
ninja: Entering directory `/home/as/proj/simpleprj/build'
[4/4] Linking target simpleprj
Installing simplelib.so to /tmp/p1/lib64
Installing /home/as/proj/simpleprj/build/sample.4 to /tmp/p1/share/man/man4 << !!! expectation !!!
Installing /home/as/proj/simpleprj/sample.conf to /tmp/p1/share/simpleprj


system parameters

  • Is this a cross build or just a plain native build (for the same computer)? Just native
  • what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.) Gentoo
  • what Python version are you using e.g. 3.8.0 : 3.12.11
  • what meson --version 1.9.2
  • what ninja --version if it's a Ninja build 1.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions