nixpkgs/pkgs/applications/networking
Michael Weiss d932886d6e
chromium: Fix the build
The build was failing with the following error:
```
[18950/51180] SOLINK ./libvk_swiftshader.sotls_transport_interface/dtls_transport_interface.omputils.o[K.otch.oos.oKx/unbundle:default)fault)ault)
FAILED: libvk_swiftshader.so libvk_swiftshader.so.TOC
python3 "../../build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm"  --sofile="./libvk_swiftshader.so" --tocfile="./libvk_swiftshader.so.TOC" --output="./libvk_swiftshader.so" -- clang++ -shared -Wl,-soname="libvk_swiftshader.so" -Wl,-Bsymbolic -Wl,--version-script=../../third_party/swiftshader/src/Vulkan/vk_swiftshader.lds -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,--lto-O0 -fsanitize=cfi-vcall -fsanitize=cfi-icall -o "./libvk_swiftshader.so" @"./libvk_swiftshader.so.rsp"
ld.lld: error: unable to find library -l:libffi_pic.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```

This turned out to be a regression from b6b51374fc. That change was
bad/undesirable in the first place and I only applied it to quickly fix
another build error caused by incompatible wayland-protocols header
files from a newer system version (Chromium bundles version 1.21 while
we already package 1.26).

The better fix for that wayland-protocols build issue is to pull in a
patch that is already used/tested by the Arch package [0] and seems to
originate from [1] (not sure if that patch was formally submitted yet).

Alternatives to that patch would be to (we should probably first try the
first approach if need be):
1) Build with wayland-protocols 1.21 from the system (by overriding the
   Nixpkgs package).
2) Dynamically link against libffi by patching [2] to use the other
   branch (`default_toolchain == "//build/toolchain/cros:target"`).

Some additional details can be found in the GitHub PR [3].
Huge thanks to Lorenz Brun for his great analysis that enabled me to fix
the build so that we can finally merge the update to Chromium M105
(which contains many important security fixes!).

[0]: a353833a5a
[1]: https://bugs.chromium.org/p/angleproject/issues/detail?id=7582#c1
[2]: https://source.chromium.org/chromium/chromium/src/+/refs/tags/105.0.5195.52:build/config/linux/libffi/BUILD.gn
[3]: https://github.com/NixOS/nixpkgs/pull/189033

Co-Authored-By: Lorenz Brun <lorenz@brun.one>
2022-09-02 23:34:18 +02:00
..
3proxy _3proxy: fix cross-compilation 2022-05-24 00:14:28 +03:00
aether treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
alpnpass alpnpass: init at 0.1 2022-04-21 16:17:43 +02:00
apache-directory-studio treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
appgate-sdp treewide: inject xdg-open into wrappers as $PATH suffix 2022-08-19 13:11:27 -05:00
asn asn: init at 0.72.1 2022-08-21 19:49:35 +01:00
bee treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
blocky blocky: 0.18 -> 0.19 2022-06-24 16:11:40 -04:00
breitbandmessung breitbandmessung: mark meta.sourceProvenance 2022-06-13 18:55:15 +08:00
brig brig: use buildGoModule 2022-06-12 02:19:46 +03:00
browsers chromium: Fix the build 2022-09-02 23:34:18 +02:00
calls calls: 41.1 -> 42.0 2022-07-23 00:34:18 +10:00
cawbird cawbird: 1.4.2 -> 1.5 2022-03-20 09:13:35 +00:00
charles treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
cisco-packet-tracer treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
cloudflare-dyndns python310Packages.cloudflare-dyndns: update description 2022-08-20 16:38:04 +02:00
cloudflared cloudflared: 2022.7.1 -> 2022.8.2 2022-08-27 20:05:42 -05:00
cluster Merge pull request #180485 from r-ryantm/auto-update/driftctl 2022-08-30 11:07:34 +02:00
compactor compactor: 1.2.0 -> 1.2.2 2022-07-29 08:53:16 +00:00
cozy-drive cozy-drive: 3.30.1 -> 3.32.0 2022-03-06 22:13:45 +08:00
datovka
davmail davmail: 5.5.1 -> 6.0.1 2022-06-30 21:36:20 +08:00
dnscontrol dnscontrol: 3.19.0 -> 3.20.0 2022-08-26 23:14:18 +02:00
drive
droopy
dropbox dropbox-cli: update nautilus-dropbox url 2022-08-25 11:25:58 -03:00
dsvpn
dyndns
enhanced-ctorrent treewide: pkgs/applications: mark broken for darwin 2022-05-29 10:56:04 +02:00
errbot treewide: remove myself as maintainer from some pkgs 2022-08-03 14:17:51 +02:00
expressvpn expressvpn: init at 3.25.0.13 2022-06-11 17:10:33 +05:30
feedreaders rss2email: 3.13.1 -> 3.14 2022-08-27 17:17:37 +00:00
firehol
firewalld firewalld: 1.1.1 -> 1.2.0 2022-07-07 12:04:59 +00:00
flent
flexget flexget: 3.3.22 -> 3.3.24 2022-08-12 04:20:00 +00:00
ftp filezilla: 3.60.1 -> 3.60.2 2022-08-06 21:45:17 +00:00
gdrive
giara giara: 0.3 -> 1.0 2022-01-23 08:19:08 +01:00
gmailctl gmailctl: 0.10.3 -> 0.10.4 2022-05-31 22:51:38 +02:00
gnome-network-displays
gns3 gns3: 2.2.29 -> 2.2.31 2022-04-24 14:44:49 +02:00
go-graft go-graft: 0.2.8 -> 0.2.9 2022-08-28 17:20:08 +00:00
google-drive-ocamlfuse google-drive-ocamlfuse: 0.7.28 -> 0.7.30 2022-08-14 10:44:15 +00:00
gopher geomyidae: 0.50.1 -> 0.51 2022-08-07 15:54:50 -04:00
hpmyroom treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
hydroxide hydroxide: 0.2.21 -> 0.2.23 2022-06-08 20:49:11 -04:00
hyprspace hyprspace: 0.1.7 -> 0.2.2 2022-02-12 10:35:47 +00:00
icemon
ids suricata: 6.0.4 -> 6.0.6 2022-08-02 03:51:10 +00:00
ike treewide: pkgs/applications: mark broken for aarch64-linux 2022-05-30 13:42:58 +02:00
instant-messengers Merge pull request #188721 from r-ryantm/auto-update/rocketchat-desktop 2022-08-30 11:16:23 +02:00
insync treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
ipfs ipfs: 0.14.0 -> 0.15.0 2022-08-30 16:44:19 +02:00
ipfs-cluster ipfs-cluster: 1.0.1 -> 1.0.2 2022-07-24 19:27:05 +02:00
ipfs-migrator ipfs-migrator: 1.7.1 -> 2.0.2 2022-02-25 11:12:19 -08:00
ipget ipget: 0.8.1->0.9.1 2022-06-30 08:43:46 +03:00
iptraf-ng
irc communi: fix on Darwin 2022-08-14 00:47:24 +02:00
jmeter jmeter: 5.4.3 -> 5.5 2022-06-17 01:36:43 -03:00
jnetmap treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
juju juju: 2.9.31 -> 2.9.33 2022-08-14 11:39:52 +00:00
libcoap
lieer treewide: remove meta.repositories 2022-03-24 23:56:14 +02:00
linssid libsForQt5.qwt: 6.1.6 -> 6.2.0 2022-03-26 13:35:18 -04:00
listadmin
maestral-qt maestral(-qt): add myself as maintainer 2022-08-02 16:22:29 +08:00
mailreaders Merge pull request #186564 from Artturin/crossevalfixes 2022-08-27 17:49:00 +03:00
mhost
misc/zammad zammad: 5.1.0 -> 5.1.1 2022-05-11 15:22:42 +02:00
mkchromecast
modem-manager-gui modem-manager-gui: fix segfault on launch 2022-05-24 23:37:23 +02:00
mpop mpop: 1.4.16 -> 1.4.17 2022-08-11 07:22:00 +00:00
msmtp msmtp: we always provide a path to msmtp 2022-08-25 10:50:36 +08:00
mujmap mujmap: 0.1.1 -> 0.2.0 (#176648) 2022-06-07 20:49:39 +02:00
mullvad mullvad: 2022.2 -> 2022.4 2022-08-19 16:35:13 +02:00
mullvad-vpn mullvad-vpn: 2022.2 -> 2022.4 2022-08-19 16:35:21 +02:00
mumble maintainers: remove petabyteboy 2022-06-29 00:52:12 +02:00
n8n n8n: 0.191.0 → 0.192.0 2022-08-25 07:37:51 +00:00
nali nali: 0.5.0 -> 0.5.3 2022-08-15 12:07:08 +00:00
ncgopher ncgopher: 0.3.0 -> 0.4.0 2022-07-29 02:04:41 +00:00
ndppd
netperf netperf: pull patch pending upstream inclusion for -fno-common toolchain support 2022-05-22 17:39:07 +01:00
newsreaders raven-reader: 1.0.73 -> 1.0.74 2022-07-30 23:36:52 +02:00
nextcloud-client treewide: inject xdg-open into wrappers as $PATH suffix 2022-08-19 13:11:27 -05:00
nextdns Merge pull request #167428 from superherointj/package-nextdns-enable-tests 2022-04-06 04:37:57 +03:00
ngadmin ngadmin: fix typo (enableParallelBuild) 2022-02-10 16:39:02 -03:00
nload
nntp-proxy
novnc
nym
offrss offrss: add -fcommon workaround 2022-06-06 19:10:37 +01:00
omping treewide: pkgs/applications: mark broken for darwin 2022-05-29 10:56:04 +02:00
onionshare onionshare-gui: add pysocks dependency 2022-06-21 12:14:14 +02:00
opsdroid treewide: remove myself as maintainer from some pkgs 2022-08-03 14:17:51 +02:00
ostinato ostinato: fix desktop file 2022-05-25 20:46:56 +00:00
owamp treewide: move autoconf, automake to nativeBuildInputs 2022-03-30 20:17:24 -05:00
owncloud-client owncloud-client: 2.10.1.7187 -> 2.11.0.8354 2022-08-20 23:33:32 +00:00
p2p soulseekqt: add main program 2022-08-27 00:05:06 +02:00
pcloud pcloud: 1.9.7 -> 1.9.9 2022-07-11 13:35:25 +02:00
pjsip treewide: pkgs/applications: mark broken for darwin 2022-05-29 10:56:04 +02:00
powerdns-admin Merge #182953: fetchurl: disallow specifying both sha256 and hash 2022-08-24 17:05:37 +02:00
protocol protocol: fix build 2022-05-19 13:02:46 +02:00
protonmail-bridge protonmail-bridge: 2.1.1 -> 2.1.3 2022-07-29 17:56:18 +00:00
protonvpn-cli protonvpn-cli: 3.11.1 -> 3.12.0 2022-05-27 10:31:38 -06:00
protonvpn-gui protonvpn-gui: add glib-networking dependency 2022-06-30 18:57:36 +02:00
ps2client
qv2ray
r53-ddns r53-ddns: 1.0.1 -> 1.1.0 2022-08-01 20:12:08 +00:00
remote waypipe: 0.8.2 -> 0.8.3 2022-08-12 03:32:04 +00:00
resilio-sync treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
rofi-vpn
scaleft treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
seafile-client seafile-client: build v8.0.7 from proper commit 2022-05-04 00:27:31 +02:00
seahub python3Packages.django-compressor: rename from django_compressor 2022-08-06 00:21:16 +02:00
seaweedfs seaweedfs: 3.15 -> 3.23 2022-08-24 00:22:17 +00:00
shellhub-agent shellhub-agent: 0.9.5 -> 0.9.6 2022-08-21 20:45:36 +00:00
sieve-connect
siproxd siproxd: 0.8.2 -> 0.8.3 2022-05-29 07:48:44 +01:00
sniffers treewide: Remove now-unneeded LD_LIBRARY_PATH in cmake derivations 2022-07-04 03:49:01 +03:00
sniproxy sniproxy: pull upstream fix for -fno-common toolchain support 2022-05-29 07:52:16 +01:00
soapui treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
soju soju: 0.3.0 -> 0.4.0 2022-03-15 11:54:05 +00:00
soulseek/nicotine-plus nicotine-plus: 3.2.2 -> 3.2.4 2022-08-21 11:48:49 +00:00
spideroak treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
ssb-patchwork treewide: switch all desktop file generators to new API 2022-02-25 13:40:38 -08:00
station maintainers: remove lattfein 2022-06-29 00:52:13 +02:00
Sylk treewide: remove unecessary XDG_DATA_DIRS from appimage wrapType2 2022-05-15 05:19:23 +03:00
sync Merge master into staging-next 2022-08-12 00:02:30 +00:00
syncplay treewide: migrate python packages to optional-dependencies 2022-05-22 16:31:53 +02:00
syncthing syncthing: 1.20.3 -> 1.20.4 2022-08-02 20:38:12 +08:00
synology-drive-client Merge pull request #184214 from MoritzBoehme/synology-drive-client 2022-08-02 15:28:15 +02:00
taler taler-merchant: fix git source 2022-08-29 11:42:23 -07:00
tcping-go tcping-go: init at unstable-2022-05-28 2022-07-28 14:56:59 -04:00
tcpkali
termius treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
testssl testssl: 3.0.6 -> 3.0.7 2022-02-23 04:20:50 +00:00
tetrd treewide/applications: add sourceType binaryNativeCode for many packages 2022-06-23 18:38:19 +01:00
tmpmail tmpmail: 1.1.9 -> 1.2.3 2022-05-10 20:22:46 -06:00
tsung
twtxt twtxt: disable test_tweet_relative_datetime 2022-05-13 13:13:44 -05:00
umurmur
utahfs utahfs: mark as broken 2022-05-22 13:47:14 +00:00
versus
vnstat vnstat: 2.8 -> 2.9 2022-01-24 13:37:33 +00:00
warp warp: 0.2.0 -> 0.2.1 2022-06-30 22:36:48 +00:00
wayback_machine_downloader wayback_machine_downloader: 2.2.1 -> 2.3.1 2022-02-13 23:06:32 -08:00
weather/meteo
websocketd
wg-bond
wgcf wgcf: init at 2.2.14 2022-05-26 20:09:36 +05:30
zerobin zerobin: raise version bounds for bleach to <6 2022-05-04 22:47:27 +02:00
znc