Git Product home page Git Product logo

Comments (7)

bjorn3 avatar bjorn3 commented on July 19, 2024 1

wow, how did you even find that?

Once you mentioned that the error happened while compiling paru (I originally assumed that you were using paru to build something else and hit an error there), I saw the installation instructions mention makepkg. I then went to the pacman repo (which contains makepkg) and searched around a bit until searching for the literal string remap-path-prefix got a match at the linked location.

from rust.

bjorn3 avatar bjorn3 commented on July 19, 2024

Are you using RUSTFLAGS to set --remap-path-prefix? If so, you are actually passing two separate args --remap-path-prefix=/home/stereomato/Documents/Software and Development/Repositories/AUR/paru/src=/usr/src/debug/paru as RUSTFLAGS splits on whitespace. Try using CARGO_ENCODED_RUSTFLAGS instead which instead splits the arguments by the 0x1f (ASCII Unit Separator) character.

from rust.

stereomato avatar stereomato commented on July 19, 2024

I'm on arch linux. I don't modify anything, I just try to install paru, but fail with that error. My /etc/makepkg.conf doesn't have that flag on RUSTFLAGS. I wonder what could it be...

from rust.

bjorn3 avatar bjorn3 commented on July 19, 2024

The package you are trying to build may be setting RUSTFLAGS to pass `--remap-path-prefix. Which package did you try to build?

from rust.

stereomato avatar stereomato commented on July 19, 2024

https://github.com/Morganamilo/paru

from rust.

bjorn3 avatar bjorn3 commented on July 19, 2024

Looks like it originates from https://gitlab.archlinux.org/pacman/pacman/-/blob/d55b47e5512808b67bc944feb20c2bcc6c1a4c45/scripts/libmakepkg/buildenv/rust.sh.in#L34, which indeed doesn't handle spaces inside the source path. Disabling the "debug" option may help. I have no clue how to though. Never used makepkg myself.

from rust.

stereomato avatar stereomato commented on July 19, 2024

wow, how did you even find that? 🤔 I guess suggesting the change you mentioned would be a good idea right?

from rust.

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.