Giter Club home page Giter Club logo

Comments (4)

memsharded avatar memsharded commented on August 16, 2024

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.

lasote avatar lasote commented on August 16, 2024

@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.

lasote avatar lasote commented on August 16, 2024

Hi! We have the release candidate ready, please help us to try it! :)

pip install conan==0.20.0rc1

from conan-protobuf.

gasuketsu avatar gasuketsu commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.