On my system, emerge sci-electronics/pulseview-0.4.2-r1:0 fails with this error: -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success CMake Error: File //mnt/Work/Files/linux.git/.git/worktrees/root/packed-refs does not exist. CMake Error at /var/tmp/portage/sci-electronics/pulseview-0.4.2-r1/work/pulseview-0.4.2_build/CMakeFiles/git-data/grabRef.cmake:27 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMake/GetGitRevisionDescription.cmake:77 (include) CMake/GetGitRevisionDescription.cmake:87 (get_git_head_revision) CMakeLists.txt:202 (git_describe) //mnt/Work/Files/linux.git is a git repo where I keep my gentoo configuration files (mostly /etc files, not a portage repo!). The root mount is a worktree of that. This is not just a bug, but an invasion of privacy too. Reproducible: Always Steps to Reproduce: (I didn't test these steps, but they reflect how my system is set up.) It may work by simply creating "/.git" file (not dir!) with this contents: gitdir: /some/private/dir If it doesn't: 1. Init a git repo in a private location such as "/mnt/something...". 2. Commit some config files from /etc to it, including the path starting with "etc/" 3. Make a new branch. 4. Checkout a worktree of that branch in a new location. Git will not allow creating a worktree in an existing dir such as root (/), so the worktree must be manually moved. 5. Move the worktree from it's checkout location to the root of Gentoo system. This means: 5a. Move the ".git" file from the worktree original dir to / (root dir) and check it's contents to match the git repo path (fix it in case it's a relative path). 5b. In the git repo, edit ".git/worktrees/<name>/gitdir" to match "/" (root dir of Gentoo). 6. There shouldn't be any "packed-refs" file in ".git/worktrees/<name>/". 7. Try to emerge pulseview. Actual Results: Error accessing the private git repo. Expected Results: Not try to read my private files!!!
Created attachment 897743 [details] build log
Created attachment 897744 [details] emerge --info
It seems like you have really gone out of your way to create this situation. Please do not put git artifacts in /.