Search Criteria
Package Details: firefox-pwa 2.13.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/firefox-pwa.git (read-only, click to copy) |
---|---|
Package Base: | firefox-pwa |
Description: | A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox (native component) |
Upstream URL: | https://pwasforfirefox.filips.si/ |
Keywords: | firefox firefoxpwa pwa pwas-for-firefox |
Licenses: | MPL2 |
Submitter: | petercxy |
Maintainer: | petercxy (filips) |
Last Packager: | filips |
Votes: | 20 |
Popularity: | 0.54 |
First Submitted: | 2021-07-07 09:05 (UTC) |
Last Updated: | 2024-11-06 17:53 (UTC) |
Dependencies (3)
- cargo (rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rust, rustup) (make)
- rust (rust-nightlyAUR, rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rustup) (make)
- firefox (cachy-browser-firefox-shimAUR, librewolf-firefox-shimAUR, firefox-kde-opensuse-no-telemetryAUR, firefox-developer-edition-firefox-symlink-latestAUR, firefox-kde-opensuseAUR, firefox-opensuse-binAUR, firefox-esr-binAUR, firefox-vaapiAUR, firefox-globalmenuAUR, firefox-binAUR, firefox-beta-bin-all-localizationsAUR, firefox-beta-binAUR) (optional) – Support for browser extension
Latest Comments
1 2 Next › Last »
Antiz commented on 2024-09-30 13:18 (UTC)
@filips, seems to work indeed! It built fine on my side :)
filips commented on 2024-09-30 12:59 (UTC)
I tried adding:
to the
build()
function (before callingcargo build
), and it seems to build and function correctly, even with LTO and ZSTD enabled. Can you please check if doing this (and re-enabling LTO and ZSTD) works for you?But I'm still not sure why this actually works. Because based on the zstd issue, GCC cannot be used for LTO with Rust, but adding this flag still worked appearently...
filips commented on 2024-05-03 10:11 (UTC)
Well, but I would still like LTO to work :)
Appearently, this might be because
CC
is set togcc
instead ofclang
. So, maybe it's possible to detect when LTO is requested and set the correctCC
andRUSTFLAGS
to make it build properly.zstd
crate also hasfat-lto
andthin-lto
features, so maybe they also need to be set correctly, but I haven't tested this yet.Also, I'm still curious why this happens only on Arch, and specifically with
zstd
crate, as other dependencies (even the ones that are also bindings to C libraries) seem to work fine without any additional configuration...Antiz commented on 2024-05-02 09:09 (UTC) (edited on 2024-05-02 09:45 (UTC) by Antiz)
Nice find! So you can actually just disable the LTO option in the PKGBUILD instead:
Tested successfully on my side ;)
filips commented on 2024-05-02 08:47 (UTC) (edited on 2024-05-02 08:47 (UTC) by filips)
Thanks, I've added these lines to PKGBUILD in
2.12.0-2
. It seems Rustzstd
crate sometimes has linking problems (issues), often caused by LTO, but I don't know why it happens here specifically on Arch.So, I'm not sure how to fix this properly. I will try to test it locally on Arch, but I probably won't have time soon.
Antiz commented on 2024-05-02 07:23 (UTC)
Hi, thanks for the info!
Installing
zstd
didn't helped, so I added the following to theprepare()
function in the PKGBUILD in the mean time:filips commented on 2024-05-01 21:39 (UTC)
It looks like
zstd
failed to link for some reason. It has been added as a dependency in 2.12.0 because I enabled zstd support for the HTTP client.I don't know why it happens, as
zstd-sys
crate should statically link the vendoredzstd
library. It works fine for me locally (on Ubuntu) and on CI, so it appears to be an Arch-specific issue. Unfortunately, I currently can't test it on Arch...You can try to install
zstd
libraries and buildfirefoxpwa
again, maybe that will help link the library correctly. Or, you can also removezstd
feature fromCargo.toml
(in line 42) to disable it.Antiz commented on 2024-05-01 20:17 (UTC)
Version
2.12.0-1
fails to build with:Full build log: https://bpa.st/VWZA
filips commented on 2024-02-03 20:29 (UTC)
ali.molaei, do
firefoxpwa
andfirefoxpwa-connector
themselves depend ondbus-glib
, or does only Firefox runtime? Because I think these executables do not directly use any D-Bus functionalities, but Firefox does use D-Bus.So, I'm not sure if it's appropriate to add D-Bus (and other Firefox-specific dependencies) to the
firefox-pwa
(andfirefox-pwa-bin
) package, because users might also use a different browser for runtime (like WaterFox, LibreWolf, etc.), which might have different dependencies. So, maybe adding them as optional dependencies would be better, but considering that Firefox is already listed as an optional dependency, I don't think that's really needed.ali.molaei commented on 2024-02-03 14:01 (UTC)
Looks like this package now needs
dbus-glib
1 2 Next › Last »