Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow install and link of both fc_bundle_py312 and fc_bundle_py312_qt6 #669

Open
ipatch opened this issue Jan 12, 2025 · 0 comments
Open

Comments

@ipatch
Copy link
Collaborator

ipatch commented Jan 12, 2025

presently only of the formula can be linked due to the same variable / filename in the formula ie. freecad-py-modules.pth both formula use the same name for the file, thus the below error will be encountered,

╰─λ brew install fc_bundle_py312 -v                                                                                     0 (0.587s)
==> Downloading https://ghcr.io/v2/freecad/freecad/fc_bundle_py312/manifests/0.9.2_2-1
/usr/bin/env /Users/chris/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15-75-g6b1c54d\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.0.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --retry 3 --header Accept:\ application/vnd.oci.image.index.v1+json --header Authorization:\ Bearer\ QQ== --remote-time --output /Users/chris/homebrew/cache/downloads/4d97e14ccdd40a47e0f326add19e57dba98d1e340fa37a403725690f0969022a--fc_bundle_py312-0.9.2_2-1.bottle_manifest.json.incomplete --location https://ghcr.io/v2/freecad/freecad/fc_bundle_py312/manifests/0.9.2_2-1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 41951  100 41951    0     0  67834      0 --:--:-- --:--:-- --:--:-- 67772
==> Fetching freecad/freecad/fc_bundle_py312
==> Downloading https://ghcr.io/v2/freecad/freecad/fc_bundle_py312/blobs/sha256:102dfe1ca4edbc6f8cc76d870736803f5473476f76fcdc0abc1f88dc12b3f56b
/usr/bin/env /Users/chris/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15-75-g6b1c54d\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.0.1\)\ curl/8.7.1 --header Accept-Language:\ en --fail --retry 3 --header Authorization:\ Bearer\ QQ== --remote-time --output /Users/chris/homebrew/cache/downloads/c233fc2d810d4ccb94ca416486b23235c097d5c801bf8f0c46112dbeed2ce394--fc_bundle_py312--0.9.2_2.arm64_sequoia.bottle.1.tar.gz.incomplete --location https://ghcr.io/v2/freecad/freecad/fc_bundle_py312/blobs/sha256:102dfe1ca4edbc6f8cc76d870736803f5473476f76fcdc0abc1f88dc12b3f56b
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19.8M  100 19.8M    0     0  9888k      0  0:00:02  0:00:02 --:--:-- 17.2M
==> Verifying checksum for 'c233fc2d810d4ccb94ca416486b23235c097d5c801bf8f0c46112dbeed2ce394--fc_bundle_py312--0.9.2_2.arm64_sequoia.bottle.1.tar.gz'
==> Installing fc_bundle_py312 from freecad/freecad
==> Pouring fc_bundle_py312--0.9.2_2.arm64_sequoia.bottle.1.tar.gz
/usr/bin/env tar --extract --no-same-owner --file /Users/chris/homebrew/cache/downloads/c233fc2d810d4ccb94ca416486b23235c097d5c801bf8f0c46112dbeed2ce394--fc_bundle_py312--0.9.2_2.arm64_sequoia.bottle.1.tar.gz --directory /Users/chris/tmp/homebrew/homebrew-unpack-20250112-57709-esxgda
mv /Users/chris/tmp/homebrew/homebrew-unpack-20250112-57709-esxgda/fc_bundle_py312 /Users/chris/homebrew/Cellar/fc_bundle_py312
==> Finishing up
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /Users/chris/homebrew
Could not symlink lib/python3.12/site-packages/freecad-py-modules.pth
Target /Users/chris/homebrew/lib/python3.12/site-packages/freecad-py-modules.pth
is a symlink belonging to fc_bundle_py312_qt6. You can unlink it:
  brew unlink fc_bundle_py312_qt6

To force the link and overwrite all conflicting files:
  brew link --overwrite fc_bundle_py312

To list all files that would be deleted:
  brew link --overwrite fc_bundle_py312 --dry-run

Possible conflicting files are:
/Users/chris/homebrew/lib/python3.12/site-packages/freecad-py-modules.pth -> /Users/chris/homebrew/Cellar/fc_bundle_py312_qt6/0.9.2/lib/python3.12/site-packages/freecad-py-modules.pth
==> Caveats
    this formula is required to get necessary python runtime deps
    working with freecad
==> Summary
🍺  /Users/chris/homebrew/Cellar/fc_bundle_py312/0.9.2_2: 2,494 files, 66.8MB
Warning: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated
dependents or dependents with broken linkage!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant