AlynxZhou / flipclock

A flip clock screensaver supported by SDL2.
https://flipclock.alynx.one/
Apache License 2.0
138 stars 25 forks source link

Linux - unable to install due python.bytecompile error #16

Closed sebastian-65 closed 1 year ago

sebastian-65 commented 1 year ago

Installation of flipclock package fails on Arch linux due to this Meson error:

The Meson build system
Version: 1.1.1
Source dir: /home/sebastian/.cache/yay/flipclock/src/flipclock-2.10.0
Build dir: /home/sebastian/.cache/yay/flipclock/src/flipclock-2.10.0/build
Build type: native build

../meson.build:8:0: ERROR: Unknown options: "python.bytecompile"

A full log can be found at /home/sebastian/.cache/yay/flipclock/src/flipclock-2.10.0/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: flipclock-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
flipclock - exit status 4

meson-log.txt content:

Main binary: /usr/bin/python
Build Options: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuildtype=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 1.1.1
Source dir: /home/sebastian/.cache/yay/flipclock/src/flipclock-2.10.0
Build dir: /home/sebastian/.cache/yay/flipclock/src/flipclock-2.10.0/build
Build type: native build

../meson.build:8:0: ERROR: Unknown options: "python.bytecompile"
AlynxZhou commented 1 year ago

I think that option is added by the arch-meson wrapper, which needs Meson 1.2.0 or higher, try update your Arch Linux first, we have 1.2.1 in the official repo.

sebastian-65 commented 1 year ago

That would be make sense, however I've had meson 1.2.1-1 already installed.

AlynxZhou commented 1 year ago

Your output shows you are using Meson 1.1.1:

The Meson build system
Version: 1.1.1

Check your installation.

sebastian-65 commented 1 year ago

Is it possible that although meson 1.2.1-1 is indeed installed, the process of building flipclock package somehow use / require old 1.1.1 version?

Something is wrong about my install but what could it be?

AlynxZhou commented 1 year ago

@sebastian-65 Try to remove your build dir and regenerate it?

sebastian-65 commented 1 year ago

I removed ~/.cache/yay/flipclock but to no avail. However, I tried managed to successfully install the package dodging yay and manually adding repo / signing key and installed the package via pacman.

Thank you for your help @AlynxZhou!