Opened 4 months ago

Last modified 4 months ago

#69055 new defect

port: non-root local port build hardcodes rsync path

Reported by: lukaso (Lukas Oberhuber) Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc: mascguy (Christopher Nielsen)
Port:

Description

The locally built port command fails because it is looking for rsync in a standard port install location.

$ ~/macports-gimp3-arm64/bin/port -v selfupdate                                                                    (master *$%=)
--->  Updating MacPorts base sources using rsync
sh: /opt/local/bin/rsync: No such file or directory
Command failed: /opt/local/bin/rsync -rtzvl --delete-after --include=/base.tar --include=/base.tar.rmd160 --exclude=* rsync://rsync.macports.org/macports/release/tarballs/ /Users/lukasoberhuber/macports-gimp3-arm64/var/macports/sources/rsync.macports.org/macports/release/tarballs
Exit code: 127
Error: Error synchronizing MacPorts sources: command execution failed
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: /Users/lukasoberhuber/macports-gimp3-arm64/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

Change History (3)

comment:1 Changed 4 months ago by lukaso (Lukas Oberhuber)

Apparently related are #69056 and #69057 where they are looking for /opt/local/bin/ginstall

These problems started when I deleted my global port installation because it was conflicting with another program (can't remember the exact conflict now).

I was expecting my local built base install to work without it as they shouldn't be connected.

comment:2 Changed 4 months ago by jmroot (Joshua Root)

All builds hardcode the rsync path as found at configure time, along with lots of other commands. If you don't want to use the one in /opt/local, use --with-rsync=/path/to/the/right/rsync or (easier) configure without /opt/local/bin in the PATH.

comment:3 Changed 4 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.