arch1t3cht / Aegisub

Cross-platform advanced subtitle editor, with new feature branches. Read the README on the feature branch.
http://www.aegisub.org
Other
755 stars 34 forks source link

Fix python script can't be runed in Non-FHS build environment #121

Closed Hobr closed 5 months ago

Hobr commented 6 months ago

I'm trying to run the program in NixOS, when I run the build it reports:

[36/328] Generating src/libresrc/bitmap.{cpp,h} with a custom command
FAILED: src/libresrc/bitmap.cpp src/libresrc/bitmap.h 
/build/source/tools/respack.py ../src/libresrc/../bitmaps/manifest.respack src/libresrc/bitmap.cpp src/libresrc/bitmap.h
/bin/sh: /build/source/tools/respack.py: not found
[37/328] Generating src/libresrc/default_config.{cpp,h} with a custom command
FAILED: src/libresrc/default_config.cpp src/libresrc/default_config.h 
/build/source/tools/respack.py ../src/libresrc/manifest.respack src/libresrc/default_config.cpp src/libresrc/default_config.h
/bin/sh: /build/source/tools/respack.py: not found

20240404_23h34m39s_grim

After I edit the related meson.build, this part runs well.

Maybe other people haven't face this problem because they build the program in a FHS env? Maybe because NixOS is not a FHS system so meson can't find python normally? I think this PR's change will not break in other OS and is helpful to other Non-FHS build env.