Opened 3 years ago

Last modified 6 months ago

#65085 assigned defect

devel/fossil should not set the --with-exec-rel-paths configuration flag

Reported by: mdurian Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: fossil

Description

Setting this flag breaks diffs in project subdirectories. When set, fossil does not adjust the relative path based on the current working directory and the diff fails (diffs against a non-existent file).

See discussion with the fossil developers here: https://fossil-scm.org/forum/forumpost/cf0d79d469

Change History (3)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to ci42
Port: fossil added
Status: newassigned

comment:2 Changed 2 years ago by lifepillar (Lifepillar)

To reproduce:

fossil init myrepo.fossil
fossil open myrepo.fossil --workdir myrepo
cd myrepo
echo "hello" >foo.txt
fossil add foo.txt
fossil commit -m "Add foo." foo.txt
echo "bonjour" >>foo.txt
mkdir bar
cd bar
fossil diff

At that point, instead of the expected diff, you should get MISSING foo.txt. This does not happen with the official Fossil binary in the same environment (in my case, macOS 12.4 on a MacBook Pro M1), so it is clearly an issue with the MacPorts build.

See also this other discussion: https://fossil-scm.org/forum/forumpost/5d88aa7d67

comment:3 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

A patch for this was submitted in #69920.

Note: See TracTickets for help on using tickets.