firefoxpwa: use openssl@3, bzip2: add pkgconfig file#113581
firefoxpwa: use openssl@3, bzip2: add pkgconfig file#113581cho-m wants to merge 2 commits intoHomebrew:masterfrom
openssl@3, bzip2: add pkgconfig file#113581Conversation
e3e5883 to
dff2458
Compare
Formula/bzip2.rb
Outdated
There was a problem hiding this comment.
Can we not add this as a patch?
There was a problem hiding this comment.
The 1.1.x repo is separate work from 1.0.x repo (ref: https://sourceware.org/bzip2/downloads.html) and uses different build tools (previously autotools and now cmake/meson) rather than 1.0.x Makefile.
Some Linux distros have been maintaining their own copies of the pkgconfig file, e.g.:
- Alpine - https://git.alpinelinux.org/aports/tree/main/bzip2/bzip2.pc.in
- Arch - https://github.com/archlinux/svntogit-packages/blob/packages/bzip2/trunk/bzip2.pc
- Fedora - https://src.fedoraproject.org/rpms/bzip2/blob/rawhide/f/bzip2.pc
Was mainly testing that this worked. It looks like the rust bindings did dynamically link now (ref: https://github.com/alexcrichton/bzip2-rs/blob/bzip2-sys-0.1.10+1.0.8/bzip2-sys/build.rs#L16-L22)
dff2458 to
c1d0451
Compare
c1d0451 to
a462b43
Compare
openssl@3openssl@3, bzip2: add pkgconfig file
|
Linux errors are unrelated:
|
|
Merged the emscripten patch PR |
a462b43 to
921aec5
Compare
|
macOS has rpath issues with Linux:
|
921aec5 to
ee65754
Compare
ee65754 to
4fad972
Compare
|
Looks ready to me now but would like some feedback. Linux linkage for As I mentioned in file changes, these are Linux-only. Can see this via: ❯ cargo tree --target x86_64-apple-darwin --invert bzip2-sys
❯ cargo tree --target x86_64-apple-darwin --invert openssl-sys
❯ cargo tree --target x86_64-unknown-linux-gnu --invert bzip2-sys
bzip2-sys v0.1.11+1.0.8
└── bzip2 v0.4.3
└── firefoxpwa v0.0.0 (/Users/cho-m/Code/PWAsForFirefox-2.3.0/native)
❯ cargo tree --target x86_64-unknown-linux-gnu --invert openssl-sys
openssl-sys v0.9.80
├── native-tls v0.2.11
│ ├── hyper-tls v0.5.0
│ │ └── reqwest v0.11.13
│ │ └── firefoxpwa v0.0.0 (/Users/cho-m/Code/PWAsForFirefox-2.3.0/native)
│ ├── reqwest v0.11.13 (*)
│ └── tokio-native-tls v0.3.0
│ ├── hyper-tls v0.5.0 (*)
│ └── reqwest v0.11.13 (*)
└── openssl v0.10.45
└── native-tls v0.2.11 (*)And manually adding pkg-config file is similar to other Linux distros. I restricted this to Linux as we only build a static library on macOS and we highly prefer system copy of |
|
🤖 A scheduled task has triggered a merge. |
brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingbrew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?