Comments (5)
Thanks for reporting. This is indeed not correct, but fortunately easy to fix
from zz.
@sternenseemann as for your actual issue with zz referencing the build dir, i believe this also needs to be addressed.
How about we just add a super long string to the default list which you can sed replace?
Odd that there's no tool for replacing strings in binaries properly.
Or could you patch the source if we added all the distro specific stuff to a single file?
from zz.
Since we need to generate a shell wrapper anyways for z3
, patching out the CARGO_MANIFEST_DIR
thing is actually enough. Also /nix/store/modules
remaining in the search path is not pretty, but no problem at all since that directory will never exist.
I'm not sure which search path entry you are referring to exactly with your proposal, but I'd prefer it to patch the source rather than the binary. It doesn't need to be sed-able, I can also just vendor in a patch, but it'd be nice if that wouldn't require updating at every version bump.
from zz.
specifically would it help if we moved this
Line 120 in 9b4bfa0
to a separate file that only contains something like
const vendor_modules = vec![std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("modules"))];
so you can replace it here
since the file will just contain vendor paths, patches will probably apply for a long time
from zz.
Yes that would work!
Also I'm wondering if we could make this bit a configuration option or something while we're at it:
Lines 107 to 119 in 9b4bfa0
from zz.
Related Issues (20)
- Self hosting version HOT 2
- Taint example allows 2 opens HOT 6
- negative literals are unconstrained HOT 3
- uninterpreted theories don't check argument types
- attached type parameters HOT 4
- new constructor from instance method HOT 6
- only store tail needed in containers HOT 1
- Mixing callsite assign and callsite source HOT 1
- Pointers to locals can escape, allowing UB HOT 1
- cast of function pointer should not be allowed HOT 1
- discord vs zulip HOT 2
- Move vim support to separate repository HOT 2
- Trying to run any example gives me "expected file" error HOT 13
- catch bad project name
- closures can't be assigned to local variables HOT 3
- changing syntax of member functions HOT 3
- zz shouldn't try to create an index in read only directory HOT 3
- `zz` leaves zombie process of `z3` HOT 7
- implement async on win32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zz.