Code Monkey home page Code Monkey logo

Comments (6)

ximon18 avatar ximon18 commented on September 17, 2024 1

Unless I'm missing something this is an annoyance but easily solved, e.g. in my case I modified the following generated Cargo.toml lines and then cargo rpm build worked and the produced RPM file installed cleanly in a CentOS-8 Docker container:

Generated by cargo rpm init

[package.metadata.rpm.targets]
./src/bin/somebinary = { path = "/usr/bin/./src/bin/somebinary" }
./src/bin/someotherbinary = { path = "/usr/bin/./src/bin/someotherbinary" }

Fixed by hand:

[package.metadata.rpm.targets]
somebinary = { path = "/usr/bin/somebinary" }
someotherbinary = { path = "/usr/bin/someotherbinary" }

from cargo-rpm.

tarcieri avatar tarcieri commented on September 17, 2024

Hrmm, I thought we had the case of --bin apps with their main.rs located in src/bin covered (it's one we actually use quite frequently) but after reviewing the apps we package as RPMs I see the ones we deploy are presently all src/main.rs.

So, sorry about that, this is definitely a case we need to support and one which will impact our own apps soon!

from cargo-rpm.

mikart143 avatar mikart143 commented on September 17, 2024

How about this fix ? Will we get this ?

from cargo-rpm.

tarcieri avatar tarcieri commented on September 17, 2024

We'll get it whenever someone has time to contribute it.

from cargo-rpm.

tarcieri avatar tarcieri commented on September 17, 2024

Yeah, this seems like a minor bug in terms of how the paths are computed for the TargetType::MultiBin case

from cargo-rpm.

tony-iqlusion avatar tony-iqlusion commented on September 17, 2024

cargo-rpm is unmaintained: #96

from cargo-rpm.

Related Issues (20)

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.