Hello,

Thank you for the report.

The issue is that Syncthing now uses fontawesome v5 but it is not yet
available in Debian. (See #902981)

It isn't as easy as forcing the use of v4 because Syncthing has switched
to using the "fas" prefix that was introduced in fontawesome v5.

I have worked on a patch that adds the "fas" prefix to fontawesome v4.

However, I am facing other incompatibilities as there are many icons
that have changed name.

I don't really know what is the best solution here, maybe I can merge my
patch until something better is available.

Cheers,

-- 
Alexandre Viau
av...@debian.org
From 398194645b97b8fb9e24f576653781aa1afce9f1 Mon Sep 17 00:00:00 2001
From: aviau <av...@debian.org>
Date: Sat, 18 Aug 2018 16:40:07 -0400
Subject: [PATCH] Work around fontawesome v5 dependency. (Closes: #905562)

---
 debian/changelog | 6 ++++++
 debian/rules     | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 636ef36..d083e8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+syncthing (0.14.49+ds1-2) UNRELEASED; urgency=medium
+
+  * Work around fontawesome v5 dependency. (Closes: #905562)
+
+ -- Alexandre Viau <av...@debian.org>  Sat, 18 Aug 2018 16:38:43 -0400
+
 syncthing (0.14.49+ds1-1) unstable; urgency=medium
 
   * New upstream version.
diff --git a/debian/rules b/debian/rules
index e7f1bd0..b917e11 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,13 @@ override_dh_auto_configure:
 	mkdir _build/src/$(PKG)/gui/default/vendor/font-awesome
 	cp --dereference -v -r /usr/share/fonts-font-awesome/css _build/src/$(PKG)/gui/default/vendor/font-awesome/css
 	cp --dereference -v -r /usr/share/fonts-font-awesome/fonts _build/src/$(PKG)/gui/default/vendor/font-awesome/fonts
+
+	## Use fontawesome v4 as if it was fontawesome v5.
+	## We should switch to v5 when #902981 is fixed.
+	## Use sed to support both the fa and the fas prefix.
+	cp --dereference -v /usr/share/fonts-font-awesome/css/font-awesome.css _build/src/$(PKG)/gui/default/vendor/font-awesome/css/fontawesome-all.css
+	sed -i 's|\.fa\ {|.fa, .fas {|' _build/src/$(PKG)/gui/default/vendor/font-awesome/css/fontawesome-all.css
+
 	# build assets
 	cd _build/src/$(PKG) && go run script/genassets.go gui > lib/auto/gui.files.go
 	#cd _build/src/$(PKG) && \
-- 
2.18.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to