Comments (4)
Hi @gasuketsu !
This is quite right. New conan version will have huge improvements with the environment variables management, so it could be a good approach to define env-vars for making tools available via PATHs, instead of relying on consumers importing
files. Actually, the protobuf package protoc
app might have some issues when using shared libraries due to relocation, so the LD_LIBRARY_PATH might be quite good. Especially because now the environment variables are set per package, so this reduce the risks of trouble of excessive polluting the environment.
The behavior you describe with the imports
when the package is being built by conan (in the conan local cache), could be that the imported files are removed after build(). We had the issue of packages doing imports (like protoc), they were re-packaging those artifacts, which was not intended by the users. So the default is that they are removed after the build command. If someone wants to re-package them for any reason, it is simple: just copy them in the build step to a different folder.
from conan-protobuf.
@gasuketsu Nice to see that you are trying development versions. Be little careful with that version, it has some known bugs. We hope to publish a release candidate today, I'll write you then.
from conan-protobuf.
Hi! We have the release candidate ready, please help us to try it! :)
pip install conan==0.20.0rc1
from conan-protobuf.
@lasote @memsharded Thank you for your information.
Now I am trying 0.20.0rc1 and it gets easier to apply existing autotools based projects. Thanks!
One thing I found is, as I have commented on conan.io's issue 1015 env val PATH definition in activate.sh generated in consumer package gets increased like below by performing conan install for consumer package.
(in this example, package_info() in recipe for Protobuf/2.6.1@gasuketsu/testing appends path to package bin directory)
PATH="/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":"/home/tharada/.conan/data/Protobuf/2.6.1/gasuketsu/testing/package/81a2fd4ff2b1309c415a72710e1b7fcb494ee7e6/bin":$PATH
export PATH
from conan-protobuf.
Related Issues (10)
- MacOS Error HOT 5
- pwd is breaking my package build HOT 3
- FindProtobuf.cmake HOT 18
- Build fails on ubuntu 16.04 with gcc 5.4 HOT 3
- Can I upload a linux version? HOT 1
- Upload fails on Linux when shared is true HOT 2
- Possibility to build without zlib HOT 2
- zlib too old version HOT 1
- ConanException: First argument of CMake() has to be ConanFile. Use CMake(self) HOT 4
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 conan-protobuf.