Skip to content

Swappy fails to configure and therefore build when using source tarball #211

@ceres-sees-all

Description

@ceres-sees-all

When compiling from source using a tarball from any release since 1.5.1, the meson configuration fails due to the tarball not containing a git repo:

$ meson setup build

The Meson build system
Version: 1.9.1
Source dir: /home/ceres/Downloads/swappy-1.8.0
Build dir: /home/ceres/Downloads/swappy-1.8.0/build
Build type: native build
Project name: swappy
Project version: 1.8.0
C compiler for the host machine: cc (gcc 15.2.0 "cc (Gentoo 15.2.0 p5) 15.2.0")
C linker for the host machine: cc ld.bfd 2.45
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/usr/bin/git)

meson.build:17:14: ERROR: Command `/usr/bin/git rev-parse --short HEAD` failed with status 128.

This makes packaging for a from source distribution like gentoo largely impossible for any version past 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions