NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.16k stars 14.18k forks source link

faust2lv2 is broken outside of nix-shell #34062

Closed magnetophon closed 4 years ago

magnetophon commented 6 years ago

Issue description

When I run:

git clone https://github.com/magnetophon/faustCompressors.git
cd faustCompressors
faust2lv2 FFcompressor.dsp

I get:

lv2.cpp:292:37: fatal error: boost/circular_buffer.hpp: No such file or directory

When I run this inside that repo:

nix-shell $NIXPKGS -A magnetophonDSP.faustCompressors
faust2lv2 FFcompressor.dsp

it just works.

It used to work outside of nix-shell too, for the last 2 years.

faust2lv2 is a wrapped shell-script. I tried to debug by adding some relevant echo statements to it, echoing the exact gcc command being called, and echoing env | grep boost. It outputs the exact same thing if I run it from normal shell or nix-shell. See: https://hastebin.com/owiyamowot.php (save to /tmp/ to work with the wrapper) The echo commands I added are from line 190 trough line 198.

In nix-shell it finishes, and in normal shell it gets till line 195. Here is the wrapper: https://hastebin.com/jirojujifa.bash

I also tried reverting the last few faust commits and rebuilding from there. No dice.

Probably related to: https://github.com/NixOS/nixpkgs/pull/33495

cc @pmahoney

Technical details

magnetophon commented 4 years ago

Closed in favor of https://github.com/NixOS/nixpkgs/issues/78610