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

Update boost package source #2332

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

Update boost package source #2332

a1re1 opened this issue Jan 12, 2025 · 0 comments

Comments

@a1re1
Copy link

a1re1 commented Jan 12, 2025

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.


While running npx react-native-macos-init on a new project, I was running into issues installing boost. There error was as follows:

Installing boost (1.76.0)

[!] Error installing boost
Verification checksum was incorrect, expected f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41, got af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89

After some more investigation, it looks like the boost source url has been updated as JFrog was only temporarily donating bandwidth to host the package. To solve this issue for my project, I've patched this podspec to include the new source per the boost recommendations

There's more details here: boostorg/boost#843 (comment)


Here is the diff that solved my problem:

diff --git a/node_modules/react-native-macos/third-party-podspecs/boost.podspec b/node_modules/react-native-macos/third-party-podspecs/boost.podspec
index 8d89353..c82c3a9 100644
--- a/node_modules/react-native-macos/third-party-podspecs/boost.podspec
+++ b/node_modules/react-native-macos/third-party-podspecs/boost.podspec
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
   spec.homepage = 'http://www.boost.org'
   spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
   spec.authors = 'Rene Rivera'
-  spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
+  spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2',
                   :sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
 
   # Pinning to the same version as React.podspec.

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant