Subject: bug#44780: freecad (@0.18.4) fails to build

From: raingloom <[email-masked]>
Date: Sat, 21 Nov 2020 21:35:49 +0100

On Sat, 21 Nov 2020 18:36:33 +0100
Fulbert <[email-masked]> wrote:

> 
> Hello!
> 
> freecad ([email-masked]) fails to build with attached log file.
> 
> Thanks and best regards,
> Fulbert

Looks like some dependencies aren't found, even though they are
included in the input list. Nix seems to explicitly pass them to CMake.
Missing pkg-config files maybe?
https://github.com/NixOS/nixpkgs/blob/7caa81d8a23f0278e868adf9054ec5409cd81f93/pkgs/applications/graphics/freecad/default.nix

Slightly edited relevant parts of the log:

```
shiboken2 not found.
PySide2 not found.
PySide2Tools not found.
...

[  2%] Generating Material_rc.py
cd /tmp/guix-build-freecad-0.18.4.drv-0/build/src/Mod/Material &&
PYSIDE2RCCBINARY-NOTFOUND
/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Mod/Material/Resources/Material.qrc
-o
/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Mod/Material/Material_rc.py
cd /tmp/guix-build-freecad-0.18.4.drv-0/build/src/Base &&
/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/gcc
-DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK
-DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK
-DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFreeCADBase_EXPORTS
-DHAVE_CONFIG_H -DHAVE_SWIG=1 -DHAVE_TBB -DOCC_CONVERT_SIGNALS
-DQT_CORE_LIB -DQT_NO_DEBUG -D_OCC64
-I/tmp/guix-build-freecad-0.18.4.drv-0/build
-I/tmp/guix-build-freecad-0.18.4.drv-0/build/src
-I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src
-I/tmp/guix-build-freecad-0.18.4.drv-0/build/src/Base
-I/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/Base
-I/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/include/python3.8
-isystem
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5
-isystem
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtCore
-isystem
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/lib/qt5/mkspecs/linux-g++
 -O2 -g -DNDEBUG -fPIC   -pthread -fPIC -o
CMakeFiles/FreeCADBase.dir/__/CXX/cxxextensions.c.o   -c
/tmp/guix-build-freecad-0.18.4.drv-0/freecad-0.18.4-checkout/src/CXX/cxxextensions.c
/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh:
PYSIDE2RCCBINARY-NOTFOUND: command not found m
```