Re: How to expand environment variable in compilation command?
Thomas Leonard <[email protected]> Wed, 9 Sep 2015 19:05:44 +0100
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy8j50W1+fE0ryqzNoYDd-JxGUpXG+q9Os31+Ri+pd6aLg@mail.gmail.com> |
On 9 September 2015 at 17:23, Ilja Honkonen <[email protected]> wrote: >> Works for me, after two minor changes (my version attached): >> - I used the original bash URL, not your local path (it should work >> for you now you've downloaded bash with the OCaml version). > > Thanks, it's trying to run win-bash.exe: > > 0compile autocompile test2.xml > ... > CPPFLAGS=/Users/iljah/.local/share/0install.net/site-packages/file/Users__iljah__0inst-test__boost__boost.xml/1.59.0-x86_64/include > Executing: > [u'/Users/iljah/.cache/0install.net/implementations/sha1new=624fe11b4b9f88c1087ed915e2c66b07edaf62dd/win-bash.exe', > u'-c', u'"$@"', u'-', u'c++', u'/Users/iljah/0inst-test/test/test.cpp', > u'-o', > u'/private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-LEhq1A/test2-any-any/test'] > [Errno 13] Permission denied Ah. I had a look and there's a note in the feed: <!-- Warning: we don't give any arch here, even though it's a Windows-x86 binary. That's because 0compile depends on it and old versions of 0install don't understand Windows-only dependencies and might therefore insist on downloading a version (if the <package-implementation> above doesn't find anything). It's better to download it and ignore it than to fail to run 0compile. That's not much use for running it directly. I've modified it to use the if-0install-version attribute to avoid the hack on modern systems. Where is bash on OS X? /bin/bash? Could we provide a binary here? > Also note for-each hasn't done anything, I tried replacing your local > 0compile feed with my boost feed and > http://repo.roscidus.com/games/openttd, same result. > >> - I used a different interface (0compile) for the dependency, since >> you used a local path. >> Executing: [u'/bin/bash', u'-c', u'"$@"', u'-', u'c++', >> u'/tmp/test.cpp', u'-o', u'/tmp/0compile-iA0bJX/test-any-any/test', >> u'-I /home/tal/Projects/zero-install/0compile/include'] > > I only changed back to my local boost feed and local bash feed and got: > > Executing: > [u'/Users/iljah/.local/share/0install.net/site-packages/file/Users__iljah__0inst-test__lfs__bash__bash.xml/4.3.30-x86_64/bin/bash', > u'-c', u'"$@"', u'-', u'c++', u'/Users/iljah/0inst-test/test/test.cpp', > u'-o', > u'/private/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/0compile-5E6dEA/test2-any-any/test'] > > I'm using 0compile (zero-install) 1.0. Running with --verbose didn't > give additional clues as to why for-each seems to be ignored. Any idea why it's using version 1.0? What does this say? 0install select --version 1.4 http://0install.net/2006/interfaces/0compile.xml -- Dr Thomas Leonard http://roscidus.com/blog/ GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140